Skip to main content
Glama
teootoledo

context-router-daemon

by teootoledo

@teootoledo/context-router-daemon

A local MCP server that runs on a developer's machine and owns all filesystem access for the context-router system. It exposes a bulk_read_files tool to a coding agent: the agent asks for a batch of files by path and a query, the daemon reads their content off disk and forwards it to a remote context-router-backend instance, which condenses it into a short summary via a worker LLM. Raw file content never enters the calling agent's own context window — only the summary does.

This repo also owns the benchmark that measures the actual token savings of that round-trip against a real backend.

Install & run

npm install
npm start          # runs the MCP server over stdio
npm test           # tsx --test test/*.test.ts
npm run bench      # measures token savings against a running backend

Depends on @teootoledo/context-router-contract — see that repo for what it defines and why.

Node 22+. TypeScript runs through tsx, never node --experimental-strip-types — no Jest, no Vitest, no build step.

Known limitation: the bin entry above points at raw TypeScript with no shebang, so npx @teootoledo/context-router-daemon does not yet work as a direct executable — use npm start for now. Supporting bare npx execution needs either a build step or a compiled shim, both a deliberate non-goal while this project stays tsx-only.

Contributing

See CONTRIBUTING.md.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/teootoledo/context-router-daemon'

If you have feedback or need assistance with the MCP directory API, please join our Discord server