817 B
817 B
Quickstart: MCP Server for Repo Maintenance
- Prereqs: Python 3.12,
uvorpip, and Codex CLI installed locally. - Install: From repo root,
cd scripts/mcp-serverand runuv pip install -e .(orpip install -e .if uv unavailable). - Run tests:
pytest --maxfail=1 --disable-warnings -q(adds lint/format checks via ruff/black in CI). - Launch MCP server:
python -m mcp_server.server(stdio mode). - Connect Codex CLI: Configure Codex to use the local MCP endpoint (stdin transport) and run
listToolsto verify catalog. - Docs alignment: If adding/updating tools, run
syncDocsto confirm docs match; updatedocs/MCP section accordingly. - CI behavior: Gitea runs lint/format/tests when
scripts/**ordocs/**change; fix failures before merging.