Developer Context Agent
Provides integration with OpenAI's API for using GPT models as the language model backend for the agent.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Developer Context Agentexplain how authentication works in my project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Developer Context Agent
Token-efficient, codebase-aware AI agent runtime for TypeScript/Node.js developer workflows.
Overview
Developer Context Agent is a reusable backend service that acts as a context router and coding agent for IDEs, CLIs, and automation workflows. It minimizes token waste through:
Hybrid retrieval (ripgrep + ts-morph symbols + import graph)
Prompt-prefix caching
Tool output summarization
Token-budgeted context packages
Supervised planner → executor → reviewer loop
Related MCP server: token-savior
Quick Start
Prerequisites
Node.js 20+
Docker (for Postgres + Redis)
ripgrep (
rg) on PATH
Setup
cp .env.example .env
npm install
npm run docker:up
npm run db:migrate
npm run devServer runs at http://localhost:3100.
Groq (recommended for free tier)
Get an API key from console.groq.com
Add to
.env:
GROQ_API_KEY=gsk_your_key_here
DEFAULT_MODEL=groq:llama-3.3-70b-versatile
PLANNER_MODEL=groq:llama-3.1-8b-instantModels use provider:model format — also supports openai: and anthropic: prefixes.
Health Check
curl http://localhost:3100/healthExplain a codebase (lightweight)
curl -X POST http://localhost:3100/chat \
-H "Content-Type: application/json" \
-H "X-API-Key: dev-key" \
-d '{"prompt":"What does auth do?","repoPath":"/path/to/your/repo"}'Start a full run
curl -X POST http://localhost:3100/runs \
-H "Content-Type: application/json" \
-H "X-API-Key: dev-key" \
-d '{"mode":"find","prompt":"auth middleware bug","repoPath":"/path/to/your/repo"}'API Endpoints
Method | Path | Description |
GET |
| Liveness + DB/Redis checks |
GET |
| Token, cache, latency metrics |
POST |
| Lightweight explain mode |
POST |
| Start supervised agent run |
GET |
| Get run state |
POST |
| Approve gated actions |
See docs/IDE_BRIDGE.md for IDE integration contract.
Architecture
src/
├── app/ # Fastify server + routes
├── core/ # Config, Zod schemas, types
├── orchestrator/ # Run lifecycle, planner, executor, reviewer
├── context/ # Repo map, retrieval, prompt building
├── tools/ # Sandboxed tool registry
├── memory/ # Multi-layer cache + session memory
├── models/ # OpenAI, Anthropic, local compressor
├── observability/ # Logging + metrics
└── mcp/ # MCP server for IDE integrationMCP Server
npx tsx src/mcp/server.tsTools: start_run, get_run, explain, find_files.
Testing
npm testUnit tests run without Docker. Integration tests require Postgres + Redis.
Configuration
Variable | Default | Description |
| 3100 | HTTP port |
| postgres://dca:dca@localhost:5432/developer_context_agent | Postgres |
| redis://localhost:6379 | Redis |
| — | Groq API key (recommended for free tier) |
| — | OpenAI API key |
| — | Anthropic API key |
| groq:llama-3.3-70b-versatile | Default model ( |
| groq:llama-3.1-8b-instant | Planner model ( |
| — | Optional API auth |
| 32000 | Default token budget |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/SinuxDev/developer-context-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server