This guide explains how to publish mcp-debugpy to the official MCP Registry.
-
Install MCP Publisher CLI
brew install mcp-publisher # OR download from: https://github.com/modelcontextprotocol/registry/releases -
Publish to PyPI First The MCP Registry references PyPI packages, so publish there first:
# Install build tools pip install build twine # Build distribution python -m build # Upload to PyPI twine upload dist/*
Run the init command in your project root:
cd /path/to/mcp-debugpy
mcp-publisher initThis will auto-generate a server.json file with detected values.
Customize the generated file. Here's the recommended configuration:
{
"name": "io.github.markomanninen/mcp-debugpy",
"title": "Agent Debug Tools - Python Debugging with debugpy",
"description": "MCP server for AI-assisted Python debugging using debugpy and Debug Adapter Protocol. Features breakpoint validation, enhanced error messages, and comprehensive testing tools.",
"version": "0.2.1",
"packages": {
"pypi": {
"name": "mcp-debugpy",
"version": ">=0.2.1"
}
},
"runtime": {
"python": {
"command": "mcp-debug-server",
"args": []
}
},
"capabilities": [
"debugging",
"testing",
"breakpoint-validation"
],
"metadata": {
"author": "markomanninen",
"homepage": "https://github.com/markomanninen/mcp-debugpy",
"repository": "https://github.com/markomanninen/mcp-debugpy",
"license": "MIT",
"tags": ["debugging", "python", "debugpy", "dap", "testing", "pytest"]
}
}Add this line to your README.md:
<!-- MCP Registry Metadata -->
mcp-name: io.github.markomanninen/mcp-debugpySince we're using the io.github.markomanninen/* namespace:
mcp-publisher authThis will prompt you to login with GitHub OAuth.
mcp-publisher publishThe CLI will:
- Validate your server.json
- Verify namespace ownership (GitHub authentication)
- Check that the PyPI package exists
- Publish to the MCP Registry
Visit the MCP Registry to confirm:
- https://registry.modelcontextprotocol.io
- Search for "mcp-debugpy"
Users can now install your server easily:
From MCP Registry:
# Clients can discover and install automatically
# Or manually:
pip install mcp-debugpyConfiguration Example:
{
"mcpServers": {
"agentDebug": {
"command": "mcp-debug-server",
"args": []
}
}
}When you release a new version:
- Update version in
pyproject.toml - Publish to PyPI
- Update
versioninserver.json - Run
mcp-publisher publishagain
Namespace verification failed:
- Ensure you're logged in as the correct GitHub user
- The username in the namespace must match your GitHub username
PyPI package not found:
- Publish to PyPI before the registry
- Wait a few minutes for PyPI to index
server.json validation errors:
- Check the schema at: https://github.com/modelcontextprotocol/registry/tree/main/docs/reference