Goal
Publish the MCP server packages to npm registry so users can easily install and run the server using:
# STDIO mode (Claude Desktop, MCP Inspector, etc.)
npx -y @mcp-typescript-simple/example-mcp
# Or install globally
npm install -g @mcp-typescript-simple/example-mcp
example-mcp # Run from anywhere
Current State
- ✅ Package already configured:
@mcp-typescript-simple/example-mcp
- ✅ Binary entry point set:
bin/example-mcp → dist/index.js
- ✅ Shebang present:
#!/usr/bin/env node
- ✅ Default mode: STDIO (no MCP_MODE env var needed)
- ❌ Not yet published to npm registry
- ⚠️ Documentation references this command before it's available
How STDIO Mode Works
The server automatically defaults to STDIO mode when no MCP_MODE environment variable is set:
// packages/config/src/environment.ts
static getTransportMode(): TransportMode {
const mode = this.get().MCP_MODE;
switch (mode) {
case 'streamable_http':
return TransportMode.STREAMABLE_HTTP;
default:
return TransportMode.STDIO; // Default mode
}
}
This means npx -y @mcp-typescript-simple/example-mcp will:
- Download and execute the package
- Run
dist/index.js (the binary entry point)
- Automatically use STDIO transport (default)
- Work seamlessly with Claude Desktop, MCP Inspector, etc.
Required Tasks
1. Package Configuration
2. Build and Bundle Verification
3. NPM Authentication Setup
4. Versioning Strategy
5. CI/CD Publishing Workflow
6. Testing Installation
After publishing, test:
7. Documentation Updates
Example Claude Desktop Configuration
After publishing, users will be able to use:
{
"mcpServers": {
"typescript-simple": {
"command": "npx",
"args": ["-y", "@mcp-typescript-simple/example-mcp"]
}
}
}
This is already documented in docs/homepage.md lines 28-37.
Priority
Medium - Currently blocks simplified user onboarding, but project is functional through hosted deployment
Related Files
packages/example-mcp/package.json (main package to publish)
packages/example-mcp/src/index.ts (entry point with shebang)
packages/config/src/environment.ts (transport mode logic)
docs/homepage.md (already has correct instructions)
README.md (needs npm installation docs)
.github/workflows/ (for automated publishing)
Goal
Publish the MCP server packages to npm registry so users can easily install and run the server using:
Current State
@mcp-typescript-simple/example-mcpbin/example-mcp→dist/index.js#!/usr/bin/env nodeHow STDIO Mode Works
The server automatically defaults to STDIO mode when no
MCP_MODEenvironment variable is set:This means
npx -y @mcp-typescript-simple/example-mcpwill:dist/index.js(the binary entry point)Required Tasks
1. Package Configuration
@mcp-typescript-simple/example-mcp(already correct)filesarray includes all necessary built assetspublishConfig.accessto "public" for scoped package2. Build and Bundle Verification
npm run buildin packages/example-mcpdist/directory contains all necessary filesnode dist/index.js(should run in STDIO mode)3. NPM Authentication Setup
NPM_TOKENto GitHub repository secrets4. Versioning Strategy
.changesetconfiguration for automated versioning (optional)npm versioncommands5. CI/CD Publishing Workflow
.github/workflows/publish-npm.ymlv1.0.0)6. Testing Installation
After publishing, test:
npx -y @mcp-typescript-simple/example-mcpworksnpm i -g @mcp-typescript-simple/example-mcp && example-mcp7. Documentation Updates
docs/homepage.md(already has correct command)README.mdwith npm installation instructionsCLAUDE.mddeveloper docsnpm versionshieldExample Claude Desktop Configuration
After publishing, users will be able to use:
{ "mcpServers": { "typescript-simple": { "command": "npx", "args": ["-y", "@mcp-typescript-simple/example-mcp"] } } }This is already documented in
docs/homepage.mdlines 28-37.Priority
Medium - Currently blocks simplified user onboarding, but project is functional through hosted deployment
Related Files
packages/example-mcp/package.json(main package to publish)packages/example-mcp/src/index.ts(entry point with shebang)packages/config/src/environment.ts(transport mode logic)docs/homepage.md(already has correct instructions)README.md(needs npm installation docs).github/workflows/(for automated publishing)