@tetsuo-ai/docs-mcp
v0.1.0
Published
MCP server serving AgenC documentation, contract artifacts, and issue context to AI agents
Maintainers
Readme
@tetsuo-ai/docs-mcp
MCP server serving AgenC documentation, architecture references, and contract artifacts to AI agents.
Overview
This server indexes repo documentation and selected machine-readable contract artifacts as MCP tools, resources, and prompts. It enables AI agents to:
- Search repo docs, planning docs, runtime docs, and contract artifacts
- Get implementation context for specific roadmap issues
- View phase dependency graphs and implementation orders
- Get runtime module templates and coding conventions
Indexed corpus:
docs/**/*.mddocs/**/*.jsonruntime/docs/**/*.mdruntime/idl/**/*.jsonruntime/benchmarks/**/*.jsonscripts/idl/**/*.json- package-local docs and changelogs under top-level packages, apps, platforms, programs, migrations, and
examples/**when present - root docs:
README.md,AGENTS.md,CODEX.md, andREFACTOR-MASTER-PROGRAM.mdwhen present
Important limits:
- This server indexes documentation and contract artifacts, not source code.
docs_get_issue_contextanddocs_get_phase_graphstill derive fromdocs/architecture/issue-map.jsonanddocs/ROADMAP.md, and currently expose only the legacy runtime-roadmap issue/phase model.docs_get_module_templateanddocs_get_module_infoare runtime-module helpers, not whole-repository architecture tools.
Usage
# Build
cd docs-mcp && npm install && npm run build
# Add to Claude Code
claude mcp add agenc-docs -- node /path/to/AgenC/docs-mcp/dist/index.cjs
# Or with custom docs root
claude mcp add agenc-docs -e DOCS_ROOT=/path/to/AgenC -- node /path/to/AgenC/docs-mcp/dist/index.cjsTools
| Tool | Description |
|------|-------------|
| docs_search | Full-text search across repo docs, planning docs, runtime docs, and contract artifacts |
| docs_get_issue_context | Implementation context for a specific legacy runtime-roadmap issue (#1051-#1110) |
| docs_get_phase_graph | Dependency graph + implementation order for a legacy runtime-roadmap phase (1-10) |
| docs_get_module_template | Boilerplate template for creating a new runtime module |
| docs_get_module_info | Architecture details about an existing runtime module |
| docs_get_conventions | Type, testing, and error handling conventions |
Prompts
| Prompt | Description |
|--------|-------------|
| implement-issue | 10-step guided implementation workflow for a specific issue |
| explore-phase | Phase exploration before starting implementation |
Resources
Indexed docs and contract artifacts are exposed as MCP resources. Resource prefixes include:
agenc-docs://architecture/...fordocs/architecture/**agenc-docs://docs/...for otherdocs/**contentagenc-docs://runtime-docs/...forruntime/docs/**agenc-docs://repo/...for indexed repo-root docs and other indexed non-docs/surfaces
Special aggregate resources:
agenc-docs://issue-map— full issue-map.jsonagenc-docs://roadmap— full ROADMAP.mdagenc-docs://conventions— all guide docs concatenatedagenc-docs://scope— indexed scope manifest and current limits
Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| DOCS_ROOT | Auto-detected (walks up to Anchor.toml) | Path to repo root |
Dependencies
@modelcontextprotocol/sdk— MCP server frameworkzod— Input validationnode:fs,node:path— File system access (zero external deps beyond MCP SDK)
