-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Add MCP registry publishing to this project:
-
Add to package.json:
- "mcpName": "io.github.spences10/[PROJECT-NAME]"
- Scripts:
- "sync-server-json": "node -e "const pkg = require('./package.json'); const server =
require('./server.json'); server.version = pkg.version; server.packages[0].version = pkg.version;
require('fs').writeFileSync('./server.json', JSON.stringify(server, null, 2));"" - "publish-mcp": "pnpm run sync-server-json && mcp-publisher publish"
- "sync-server-json": "node -e "const pkg = require('./package.json'); const server =
-
Add to .gitignore: ".mcpregistry_*"
-
Run: mcp-publisher init
-
Update server.json to match package version and remove any dummy environment variables
-
Authenticate once: mcp-publisher login github
-
Publish: pnpm run publish-mcp
Future workflow: After publishing to npm, just run pnpm run publish-mcp
Replace [PROJECT-NAME] with each tool's name. The authentication persists across projects so you only need step 5
once.
Metadata
Metadata
Assignees
Labels
No labels