← Home
How to distribute and register MCP servers built from the Template-NPM template.
Users clone the repo and build locally:
git clone git@git.mokoconsulting.tech:MokoConsulting/my-mcp.git
cd my-mcp
npm install
npm run build
npm run setup # Configure API connections
Download a pre-built release from MokoGIT:
tar xzf my-mcp-1.0.0.tar.gz
cd my-mcp
npm install --production
npm run setup
.mcp.json)Register in the project's .mcp.json for project-specific MCP servers:
{
"mcpServers": {
"my-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/my-mcp/dist/index.js"]
}
}
}
~/.claude.json)Register in ~/.claude.json for globally available MCP servers:
{
"mcpServers": {
"my-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/my-mcp/dist/index.js"]
}
}
}
Restart Claude Code after changing MCP configuration.
Merging to main triggers auto-release.yml:
Push to dev triggers pre-release.yml:
v1.1.0-dev.1)Update version in:
| File | Field |
|---|---|
package.json |
"version" |
CHANGELOG.md |
Move [Unreleased] to version header |
When a new version is released, users update their installation:
cd /path/to/my-mcp
git pull
npm install
npm run build
No config changes needed -- the config file is separate from the server code.
Restart Claude Code to pick up the updated server.
For teams sharing an MCP server:
npm run setup to create their own config with their own API credentials~/.<project>.json) and never sharedMCP server repos follow this naming convention:
| Pattern | Example |
|---|---|
mcp_moko{service} |
mcp_mokosuite, mcp_mokocrm |
mcp_moko{function} |
mcp_mokossh, mcp_mokodeploy |
| Workflow | Trigger | Purpose |
|---|---|---|
auto-release.yml |
Merge to main | Full release pipeline |
pre-release.yml |
Push to dev | Pre-release builds |
pr-check.yml |
Pull request | Build and lint validation |
security-audit.yml |
Schedule | npm dependency audit |
repo-health.yml |
Schedule | MokoCLI compliance |
cleanup.yml |
Schedule | Prune old artifacts |
notify.yml |
Release/failure | Event notifications |
Repo: Template-NPM · MokoCLI
| Field | Value |
|---|---|
| Minimum Version | 04.07.00 |
| Platform | mcp-server |
| Applies To | MCP server repositories |
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-19 | Moko Consulting | Initial version |
Printed from wiki · deployment