1.5 KiB
1.5 KiB
MCP Server Reference
Overview
- Purpose: local-only MCP server that exposes repository maintenance helpers to Codex CLI.
- Transport: JSON-RPC over stdio; no network listeners; enforced local-only guard.
- Source:
scripts/mcp-server/; connect viapython -m mcp_server.server.
Tool Catalog
show-constitution: Displaydocs/constitution.mdto confirm authoritative rules.list-playbooks: List available playbooks underdocs/playbooks/for common tasks.show-reference: Showdocs/reference/index.mdto navigate repo guidance.search-docs: Search the docs set for a query (param:query).list-mcp-tasks: Show MCP feature task list fromspecs/001-mcp-server/tasks.md.
Invocation
- Start server:
python -m mcp_server.server(from repo root, stdio mode). - Codex CLI: configure MCP endpoint as local stdio, then call
listToolsto verify catalog. - Invoke:
invokeToolwithnameandargsas defined above. - Drift check: call
syncDocsto report mismatches between tool catalog and documented anchors.
Local-Only Expectations
- Remote access is blocked by guard clauses; unset
SSH_CONNECTIONapplies local-only behavior. - If
MCP_ALLOW_REMOTEis set totrue/1/yes, guard is relaxed (not recommended).
Maintenance
- Update tool definitions in
scripts/mcp-server/src/mcp_server/tools.pywith doc anchors. - Keep docs aligned by updating this reference and running
syncDocs. - CI:
.gitea/workflows/mcp-tests.ymlruns lint/format/mypy/pytest with a 60s budget onscripts/**anddocs/**changes.