MCP server exposing Factory.ai CLI documentation search and markdown tools.
searchFactoryDocs– Search the Factory.ai CLI documentation sitemap.fetchFactoryDocMarkdown– Fetch markdown content for a specific Factory.ai documentation page.
- Caches sitemap entries with configurable TTL and retries.
- Scores search results with recency and title relevance.
- Validates requests with Zod schemas to keep tool usage predictable.
Install dependencies:
npm installBuild compiled outputs:
npm run buildRun the test suite:
npm testType-check the codebase:
npm run typecheckUse /mcp add to register the server (see https://docs.factory.ai/factory-cli/configuration/mcp.md):
/mcp add factory-cli-docs "npx -y factory-mcp"Include environment variables when needed:
/mcp add factory-cli-docs "npx -y factory-mcp" -e FACTORY_DOCS_CACHE_TTL_MS=60000 -e FACTORY_DOCS_LOG_LEVEL=debug