mcp_publish
Publish MCP servers to PyPI or npm with dry-run and test-pypi options for safe releases.
Instructions
Publish an MCP server to PyPI (Python) or npm (Node).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_dir": "<project_dir>"
},
"name": "mcp_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | If True, publish to TestPyPI (Python only). | |
| dry_run | No | If True, do not actually upload (default: True for safety). | |
| registry | No | Optional npm registry URL (Node only). | |
| template | No | One of `python-fastmcp`, `node-mcp`, `go-mcp`. | python-fastmcp |
| project_dir | Yes | Path to the project root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |