npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cmdforge/gen-apic-mp

v0.0.5

Published

Generate a marketplace.zip containing the contents of an expected marketplace.git repository for the given Azure API Center portal.

Readme

gen-apic-mp

Generate marketplace repository contents from an Azure API Center workspace.

This tool reads plugin and MCP assets from API Center, translates legacy v0/servers/{name} data into MCP server entries, and emits the repository structure expected by marketplace-style plugin catalogs.

What it generates

For a workspace, gen-apic-mp produces:

.github/plugin/marketplace.json
.claude-plugin/marketplace.json
.agents/plugins/marketplace.json
plugins/{pluginName}/plugin.json
plugins/{pluginName}/.codex-plugin/plugin.json
plugins/{pluginName}/.mcp.json
plugins/{pluginName}/.codex.mcp.json

The generated .mcp.json only contains normal MCP server launch configuration:

  • stdio servers: transport, command, args, env, cwd
  • remote servers: transport, url, headers

Codex-specific output uses the paths described by the Codex plugin docs and the @typeforged/codex-plugin-marketplace schema package:

  • repo marketplace: .agents/plugins/marketplace.json
  • plugin manifest: plugins/{pluginName}/.codex-plugin/plugin.json
  • plugin MCP config: plugins/{pluginName}/.codex.mcp.json

Claude/Copilot-style output is aligned to the @typeforged/claude-plugin-marketplaces schema package:

  • marketplace catalog: .claude-plugin/marketplace.json
  • plugin manifest: plugins/{pluginName}/plugin.json
  • plugin MCP config: plugins/{pluginName}/.mcp.json

Install

npm install
npm run build

To use the CLI directly from the repo during development:

node dist/server/cli.js --help

CLI

gen-apic-mp <serviceName> <region> <workspaceName> [--unpack [directory]] [--mcp-meta <key>]

Arguments:

  • serviceName: region-unique Azure API Center service name
  • region: Azure region, like eastus
  • workspaceName: API Center workspace to export

Option:

  • --unpack [directory]: write the generated marketplace tree directly into a directory instead of creating a zip
  • --mcp-meta <key>: include a specific _meta key from v0/servers/{name} in generated .mcp.json server entries

If --unpack is provided without a value, it defaults to the current working directory, but only if that directory contains a package.json.

Examples

Create a zip in the current directory:

gen-apic-mp my-api-center eastus marketplace

Unpack directly into the current repo:

gen-apic-mp my-api-center eastus marketplace --unpack

Unpack into a specific directory:

gen-apic-mp my-api-center eastus marketplace --unpack /path/to/marketplace-repo

Include OAuth-related _meta in generated .mcp.json:

gen-apic-mp my-api-center eastus marketplace --mcp-meta oauth-client-provider

Include multiple _meta keys:

gen-apic-mp my-api-center eastus marketplace --mcp-meta oauth-client-provider --mcp-meta x-ms-id

Output behavior

Without --unpack, the CLI writes:

{workspaceName}-marketplace.zip

With --unpack, the CLI does not create a zip. It syncs the generated tree directly into the target directory.

How MCP translation works

For each plugin resource with kind: "mcp", the tool:

  1. Fetches the MCP asset using the plugin resource resourceId
  2. Fetches the legacy server entry from workspaces/{workspaceName}/v0/servers/{mcp.name}
  3. Uses the server.name from that payload as the key in .mcp.json
  4. Translates the server entry into a types.McpServer

The translator supports:

  • direct stdio-style entries with command, args, and env
  • direct remote-style entries with url and remote transport
  • nested server.remotes
  • nested server.packages as fallback when remotes is empty

If --mcp-meta is used, only the requested _meta keys are copied into each generated MCP server entry.

Current limitations

  • Skill directories are not generated yet, so plugin.json only includes skills when that support is added
  • The tool expects the target API Center workspace to expose:
    • portal config at config.json
    • plugin assets in the workspace API listing
    • MCP assets reachable from plugin resource IDs
    • legacy server entries at v0/servers/{name}

Development

Build:

npm run build

Test:

npm test