GAIA MCP Docs Server - Implementation Plan
Status: Planning
Priority: Medium
View full plan on GitHub β’ Vote with π
Executive Summary
Create an MCP Documentation Server that gives AI coding assistants (Claude Code, Cursor, GitHub Copilot, etc.) intelligent access to GAIA SDK documentation. Instead of web fetches or static context files, the MCP server provides semantic search, code examples on demand, and version-aware documentation. Goal: Make AI assistants expert GAIA developers out of the box.The Problem
When developers use AI coding assistants to build GAIA agents, the AI lacks context about:- SDK patterns and best practices
- Available tools, mixins, and base classes
- Correct usage examples
- Version-specific APIs
| Approach | Limitation |
|---|---|
| Web fetch | Slow, one page at a time, requires network |
| Static CLAUDE.md | Gets outdated, limited coverage |
| Copy-paste docs | Manual, context window bloat |
The Solution
An MCP server that exposes GAIA documentation as tools that AI assistants can call:Semantic Search
Find relevant docs across all pages
βHow do I handle errors in tools?β
Code Examples
Get working snippets for any pattern
βShow me MCPAgent usageβ
Version Aware
Returns docs matching installed version
Compatible with GAIA 0.15+
MCP Tools
search_docs
Semantic search across all GAIA documentation.
get_page
Retrieve a specific documentation page.
get_code_example
Get working code examples for specific patterns.
basic-agent- Minimal agent with one tooltool-decorator- @tool usage with parameterstool-error-handling- Error return patternsllm-client-local- Lemonade client setupllm-client-claude- Claude API setupllm-client-openai- OpenAI API setupmcp-agent- MCPAgent mixin usageapi-agent- ApiAgent mixin usagerag-basic- RAG SDK initializationrag-query- Document querying
list_components
List available GAIA components with descriptions.
Architecture
Components
| Component | Purpose | Implementation |
|---|---|---|
| Doc Index | Preprocessed docs for fast search | MDX files β JSON chunks at build time |
| Embedding Store | Semantic similarity search | sentence-transformers + FAISS |
| Code Templates | Working examples | Jinja2 templates with version tags |
| Version Registry | API compatibility | Semver matching |
Integration
Claude Code
Add to~/.claude/claude_code_config.json:
VSCode (with MCP extension)
Add to.vscode/settings.json:
Cursor
Add to Cursor MCP settings:CLI Commands
Start the docs server
Manage the index
Data Flow
On First Run
On Query
Implementation Plan
Success Metrics
| Metric | Target |
|---|---|
| Search latency | < 100ms |
| Index build time | < 30 seconds |
| Index size | < 50 MB |
| Query relevance (top-3 hit rate) | > 80% |
| Code example accuracy | 100% (validated at build) |
Comparison
| Feature | WebFetch | Static CLAUDE.md | MCP Docs Server |
|---|---|---|---|
| Setup required | None | Download file | Start server |
| Search capability | Single page | None | Semantic across all |
| Speed | Slow (network) | Instant | Fast (local) |
| Offline support | No | Yes | Yes |
| Always current | Yes | No | Yes (with gaia update) |
| Code examples | Manual extraction | Limited | On-demand |
| Version aware | No | No | Yes |
Why Q2 2026?
This milestone is timed to follow the Lightweight Installer and Chat Desktop UI:- Foundation ready - By Q2, GAIA will have stable installation and core UI, making it easier for new developers to get started
- Documentation mature - The SDK docs will be comprehensive and battle-tested
- AI assistants mainstream - Claude Code, Cursor, and GitHub Copilot adoption continues to grow
- MCP ecosystem expanding - More tools supporting MCP means broader reach
Future Enhancements
- Source code search - Search GAIA source, not just docs
- Interactive examples - Run code snippets and return results
- Custom docs - Index userβs own agent documentation
- Multi-language - Support non-Python examples (TypeScript, etc.)
Related
- Roadmap - High-level feature timeline
- MCP Client - MCP protocol documentation
- Claude Code Setup - IDE integration guides
Full Implementation Plan
View the complete technical specification on GitHub