MCP
Model Context Protocol
The TypeScript package in /mcp exposes Distill tools (distill, remember, recall) and Memory tools (memory_write, memory_get, memory_search, memory_delete). It speaks stdio MCP and calls this HTTPS API with your hub key.
Cursor
- Build the package:
cd mcp && npm install && npm run build - Open Cursor Settings → MCP
- Add a server with the JSON below (path adjusted to your clone).
{
"mcpServers": {
"distill": {
"command": "node",
"args": ["./mcp/dist/index.js"],
"env": {
"DISTILL_API_URL": "https://distill.prometheus-potential.workers.dev",
"DISTILL_API_KEY": "dk_live_your_key"
}
}
}
}
From the repo root you can also run npx tsx mcp/src/index.ts during development.
Claude Desktop uses the same mcpServers object in claude_desktop_config.json.
Practical agent recipes: /docs/agents. Full notes: mcp/README.md in the repository.