MCP Configuration
You can configure CiteKit to work with any MCP-compliant AI agent or IDE.
Claude Desktop
Add CiteKit to your claude_desktop_config.json:
json
{
"mcpServers": {
"citekit": {
"command": "python",
"args": ["-m", "citekit.cli", "serve"]
}
}
}Cursor / Cline / Roo Code
Most modern IDE extensions support MCP via custom command execution.
- Open the MCP settings in your IDE.
- Add a new server named CiteKit.
- Command:
python - Args:
["-m", "citekit.cli", "serve"]
CLI Options for serve
The serve command supports the following environment variables and flags through the SDK and CLI:
Storage & Output
By default, CiteKit looks for maps in .resource_maps/ and saves output to .citekit_output/. You can change these by setting up a CiteKitClient configuration, though the serve command currently uses defaults.
Remote execution (Npx)
If you don't want to install CiteKit globally, you can run the JS MCP server via npx:
bash
npx -y citekit serveTroubleshooting
- Path Errors: Ensure
pythonornodeis in your systemPATH. - Permission Errors: AI agents running MCP servers require permission to write to the
outputDir. Ensure the directory is writable by the process. - Missing Maps: If
listResourcesreturns an empty array, runcitekit ingeston some files first!