DevContext
Lets the server pull runtime observability data such as logs and health metrics from Datadog to support incident triage.
Enables using Grafana/Grafana Loki as a source of runtime log and observability data for incident triage.
Allows querying Prometheus for runtime health and observability metrics during incident triage.
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., "@DevContextRun a diagnosis on the payment service to find what caused the error spike."
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.
DevContext
DevContext is a prototype Model Context Protocol (MCP) server and CLI tool that provides AI coding assistants and engineers with runtime observability data (logs, deploys, and health metrics) to assist in incident triage.
Overview
Coding assistants can inspect source repositories and draft fixes, but they often lack visibility into what happens during runtime incidents (such as recent deployments, error rate spikes, disk saturation, or downstream API outages). DevContext is a proof-of-concept tool that exposes runtime context via a command-line interface (CLI) and standard MCP tool calls.
Related MCP server: AI Incident Monitoring RCA MCP Server
CLI & Tool Commands
DevContext can be run directly from the command line or registered as an MCP server.
1. devcontext diagnose
Runs automated incident triage against built-in datasets or custom files/folders:
# Diagnose built-in service dataset
devcontext diagnose --service order-processing
# Output raw JSON format
devcontext diagnose --service order-processing --json
# Point at custom log, deploy, and health paths (files or log directories)
devcontext diagnose --log-path /var/log/app/ --deploys-path deploys.json --health-path health.json
# Enable experimental Groq LLM extraction
devcontext diagnose --service order-processing --use-llm2. devcontext serve
Starts the stdio MCP server for connection to MCP hosts (e.g. Claude Desktop, Antigravity):
devcontext serveLog Parsing Options
Deterministic Parser (
parser.py): Uses heuristics to sample log lines and attempt structure matching (JSON-lines, CSV, key-value pairs, or basic bracketed/space-delimited timestamps).Limitation: Best suited for simple single-line logs. Complex multi-line stack traces or non-standard custom formats may fall back to basic line matching.
Experimental LLM Extraction (
extraction.py): Optionally sends log chunks to Groq's API (response_format={"type": "json_object"}) to extract structured event objects.Limitation: Incurs API latency (~200–400ms) and token costs; falls back to the deterministic parser if the API key is missing or calls time out.
Data Source Options
Built-in Mock Data: Pass a service name (e.g.
service_name="order-processing") to query the included demo data.Custom File or Directory Paths:
log_path: Path to a single log file or a directory containing split.log/.txtfiles.deploys_path: Path to a customdeploys.jsonfile.health_path: Path to a customhealth.jsonfile.
Evaluation & Test Scenarios
The repository includes an evaluation harness (eval.py) tested against 5 synthetic test scenarios:
Scenario | Service | Scenario Type | Expected Outcome | Result |
|
| Resource Limit Reduction | Identify deploy | Pass |
|
| Disk Full (No recent deploy) | Identify disk exhaustion (98%) | Pass |
|
| Memory Leak / OOM | Identify memory saturation (97%) | Pass |
|
| External API Outage | Identify SendGrid 503 errors | Pass |
|
| Failed Database Migration | Identify deploy | Pass |
Limitations & Scope
Small Test Suite: This evaluation suite contains 5 synthetic test cases created for validation. It is not an exhaustive production benchmark.
Heuristic Matching:
diagnose()uses simple rules (e.g. checking if a deploy occurred within 10 minutes of the first error). Real-world infrastructure incidents are often more complex and may involve multiple interacting factors.
Architecture
┌─────────────────────────────────────────────────────────┐
│ CLI / MCP Clients │
│ (devcontext CLI / Claude Desktop / Antigravity) │
└───────────────────────────┬─────────────────────────────┘
│ CLI Args / stdio JSON-RPC
┌───────────────────────────▼─────────────────────────────┐
│ DevContext Entry Point │
│ (cli.py / server.py) │
└───────────────────────────┬─────────────────────────────┘
│
┌───────────────────────────▼─────────────────────────────┐
│ Diagnostic Core (tools.py) │
└───────┬───────────────────┬─────────────────────┬───────┘
│ │ │
┌───────▼───────────┐ ┌─────▼─────────────┐ ┌─────▼─────────────┐
│ Structure Parser │ │ Deployment Engine │ │ Health Observer │
│ (parser.py) │ │ (deploys.json) │ │ (health.json) │
└───────┬───────────┘ └───────────────────┘ └───────────────────┘
│
┌───────┴─────────────────────────────────────────┐
│ Groq API (Optional LLM log extraction) │
└─────────────────────────────────────────────────┘Quickstart & Setup
1. Installation
git clone https://github.com/your-username/devcontext.git
cd devcontext
pip install -e .2. Diagnose a Service via CLI
devcontext diagnose --service order-processing3. Register as an MCP Server (Claude Desktop)
Add DevContext to your claude_desktop_config.json:
{
"mcpServers": {
"devcontext": {
"command": "devcontext",
"args": [
"serve"
]
}
}
}4. Run Evaluation Suite
python eval.py5. Optional API Key Setup
Copy .env.example to .env if using Groq for experimental LLM log extraction:
cp .env.example .envDependencies & Requirements
Python 3.10+
mcp(Model Context Protocol SDK)groq(Optional, for LLM extraction)
Future Extensions
Pluggable Adapters: Connect directly to CloudWatch, Datadog, Grafana Loki, or Prometheus APIs.
Probabilistic Confidence Scores: Output root-cause probability distributions (e.g.
95% confidence: bad deploy) instead of single deterministic strings.Automated Rollback Proposals: Generate validated git revert commits or Kubernetes patch specs alongside the diagnosis.
License
Distributed under the MIT License.
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.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to investigate backend incidents by executing runbooks that gather evidence from observability and storage systems.59MIT
- FlicenseNot gradedqualityBmaintenanceProvides telemetry tools for retrieving recent logs and system metrics to support root-cause analysis of infrastructure incidents. Enables autonomous incident triage with grounded verification and human-in-the-loop remediation.1
- AlicenseNot gradedqualityCmaintenanceExposes service health and log search tools for incident triage, enabling AI agents to investigate and summarize operational issues.MIT
Related MCP Connectors
AI agent run monitoring with incident replay and SLA receipts.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Verified, sourced, real-time intelligence layer for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sid-stack001/devcontext'
If you have feedback or need assistance with the MCP directory API, please join our Discord server