使用说明
MCP Architect
Expert guide for creating, configuring, troubleshooting, and managing MCP (Model Context Protocol) servers
🎯 Why This Exists
Antigravity has excellent MCP marketplace integration, but creating custom MCPs is challenging due to:
- ❌ Sparse documentation on MCP creation
- ❌ Cryptic error messages
- ❌ No troubleshooting guides
- ❌ Complex authentication setup
- ❌ No diagnostic tools
This skill solves these problems with real-world examples from actual troubleshooting sessions.
✨ What's Included
📚 Comprehensive Documentation
- SKILL.md: Complete guide (10.8 KB) covering:
- Common issues & solutions
- Configuration patterns
- Python & Node.js templates
- Testing strategies
- Best practices
🔧 Diagnostic Tools
- diagnostic.sh: Automated testing script that:
- ✅ Validates JSON configuration
- ✅ Checks if commands exist
- ✅ Verifies npm packages
- ✅ Tests Python scripts and venvs
- ✅ Validates environment variables
💡 Real-World Examples
- examples/README.md: Based on actual troubleshooting:
- Google Drive MCP (OAuth authentication)
- Apple Mail MCP (Python virtual environment)
- GitHub MCP (Docker container)
- Master registry pattern
🚀 Quick Start
Use as Antigravity Skill
# Reference the skill when working with MCPs
@mcp-architect I need to create a new MCP for Slack
@mcp-architect My Google Drive MCP is not working
@mcp-architect How do I configure OAuth for an MCP?
Use Diagnostic Tool
# Test your MCP configuration
./examples/diagnostic.sh /path/to/mcp_config.json
Create a New MCP
- Choose a template from SKILL.md (Python or Node.js)
- Implement your service integration
- Test with the diagnostic script
- Add to your configuration
📖 Documentation
- SKILL.md - Main documentation with troubleshooting guides
- examples/README.md - Real-world examples
- CONTRIBUTING.md - How to contribute
- ANTIGRAVITY_FEEDBACK.md - Feedback for Antigravity team
🎓 Common Use Cases
Troubleshooting a Broken MCP
# Run diagnostic
./examples/diagnostic.sh ~/.gemini/antigravity/mcp_config.json
# Check common issues in SKILL.md
# Apply the fix
# Verify with testing checklist
Creating a Custom MCP
See templates in SKILL.md:
- Python MCP template (async implementation)
- Node.js MCP template (TypeScript-based)
Managing Multiple MCPs
Use the master registry pattern from examples/README.md to manage MCPs across multiple tools.
🔑 Key Learnings
Based on real troubleshooting experience:
- ✅ Always use absolute paths - Relative paths cause issues
- ✅ Verify package names - Check npm/PyPI before configuring
- ✅ Use dedicated venvs - Isolate Python MCP dependencies
- ✅ Environment variables for credentials - Never hardcode secrets
- ✅ Test manually first - Verify MCPs work before adding to config
- ✅ Validate JSON - Use
jqto catch syntax errors - ✅ Document authentication - OAuth flows need clear instructions
- ✅ Master registry pattern - Manage MCPs across multiple tools
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Ways to contribute:
- 🐛 Report issues you've encountered
- 💡 Share your MCP examples
- 📝 Improve documentation
- 🔧 Enhance diagnostic tools
📜 License
MIT License - See LICENSE.txt for details
🙏 Acknowledgments
Created from real-world experience troubleshooting MCPs for:
- Google Drive (OAuth authentication)
- Apple Mail (Python venv setup)
- Apple Photos (Python implementation)
- Brave Search (API key management)
- CloudRun (GCP integration)
- GitHub (Docker container)
- Google Docs (Python venv)
- File Systems (Node.js)
📞 Support
- 📖 Read the SKILL.md documentation
- 🔍 Check examples/README.md for real-world cases
- 🐛 Open an issue for bugs or questions
- 💬 Start a discussion for general questions
Made with ❤️ to help the MCP community
