Loading...
Loading...
Loading...
// package.json
{
"name": "my-mcp-server",
"version": "1.0.0",
"bin": { "my-mcp-server": "./dist/index.js" },
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build"
}
}
// Then publish:
// npm publish
// Users can install and run with:
// npx my-mcp-server
// Claude Desktop config (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["my-mcp-server"]
}
}
}