MCP server that provides AI coding agents with synthesized engineering context from SDLC tools
Project description
DevsContext
MCP server that gives AI coding agents synthesized engineering context — requirements, decisions, architecture, and standards — from your actual tools.
The Problem
AI coding agents lack context. They don't know your team's decisions, architecture patterns, or coding standards. Connecting raw MCP servers floods them with irrelevant data they can't prioritize. Large companies build internal context infrastructure. DevsContext brings that to everyone.
What You Get
When you say "work on PROJ-123" in Claude Code, DevsContext fetches from Jira, meeting transcripts, and your docs, then synthesizes it into this:
## Task: PROJ-123 — Add retry logic to payment webhook handler
### Requirements
1. Implement exponential backoff for failed webhook deliveries
2. Max 5 retry attempts over 24 hours
3. Dead-letter queue for permanently failed webhooks
4. Metrics for retry success/failure rates
Acceptance criteria: [Jira PROJ-123]
- [ ] Webhooks retry with exponential backoff (1min, 5min, 30min, 2hr, 12hr)
- [ ] Failed webhooks move to DLQ after 5 attempts
- [ ] Dashboard shows retry metrics
### Key Decisions
- **Use SQS with visibility timeout** for retry scheduling, not cron jobs.
Decided by @sarah in March 15 sprint planning. Rationale: SQS handles
timing natively, reduces operational overhead. [Meeting: Sprint 23 Planning]
- **Exponential backoff schedule**: 1min → 5min → 30min → 2hr → 12hr.
Based on payment processor rate limits. [Comment by @mike, Mar 16]
### Architecture Context
Webhook flow: `PaymentController` → `WebhookService.dispatch()` → SQS queue
→ `WebhookWorker.process()` → external endpoint.
Add retry logic in `WebhookWorker.process()` at:
`src/workers/webhook_worker.ts:45-80`
DLQ table schema in `migrations/004_webhook_dlq.sql`. [Architecture: payments-service.md]
### Coding Standards
- Use `Result<T, WebhookError>` pattern, don't throw exceptions
- Retry delays: use `calculateBackoff(attempt)` helper from `src/utils/retry.ts`
- Tests: mock SQS with `@aws-sdk/client-sqs-mock`, see `tests/workers/` for examples
[Standards: typescript.md, testing.md]
### Related Work
- PROJ-456: "Payment webhook initial implementation" (Done) — base implementation
- PROJ-789: "Add webhook monitoring dashboard" (In Progress) — will consume the metrics
One synthesized block. Everything the AI needs to write correct code.
Quick Start
pip install devscontext
devscontext init
Set your credentials:
export JIRA_EMAIL="you@company.com"
export JIRA_API_TOKEN="your-token"
export ANTHROPIC_API_KEY="your-key" # for synthesis
Connect to Claude Code:
claude mcp add devscontext -- devscontext serve
Then in Claude Code:
> work on PROJ-123
Supported Sources
| Source | What's Fetched | Status |
|---|---|---|
| Jira | Ticket details, comments, linked issues, acceptance criteria | Stable |
| Fireflies | Meeting transcripts, decisions, action items | Stable |
| Local Docs | Architecture docs, coding standards, ADRs | Stable |
| Slack | Channel discussions, threads, decisions | New |
| Gmail | Email threads related to tickets | New |
Coming soon: Linear, Notion, Confluence
Pre-processing Agent
Build context proactively before developers pick up tickets:
# Start the agent (polls Jira for ready tickets)
devscontext agent start
# Single run for CI/cron
devscontext agent run-once
# Check pre-built context status
devscontext agent status
Configure in .devscontext.yaml:
agents:
preprocessor:
enabled: true
jira_status: "Ready for Development"
jira_project: "PROJ"
See docs/pre-processing.md for the full guide.
Plugin System
DevsContext uses a plugin architecture for adapters and synthesis:
- Adapters: Fetch context from sources (Jira, Slack, docs, etc.)
- Synthesis Plugins: Combine context (LLM, template, passthrough)
See docs/plugins.md for creating custom plugins.
Configuration
DevsContext uses .devscontext.yaml in your project root:
sources:
jira:
enabled: true
base_url: "https://your-company.atlassian.net"
email: "${JIRA_EMAIL}"
api_token: "${JIRA_API_TOKEN}"
docs:
enabled: true
paths:
- "./docs"
- "./CLAUDE.md"
slack:
enabled: true
bot_token: "${SLACK_BOT_TOKEN}"
channels: ["engineering", "payments-team"]
synthesis:
provider: "anthropic"
model: "claude-haiku-4-5"
Full configuration reference: docs/configuration.md
How It Works
- Fetch: When you mention a ticket, DevsContext fetches from all configured sources in parallel
- Extract: It finds relevant content — ticket matches docs by component/label, searches meeting transcripts for keywords
- Synthesize: An LLM combines raw data into a structured context block with sources cited
No background processes. No vector database. Just on-demand fetching and synthesis.
MCP Tools
| Tool | When to Use | Example |
|---|---|---|
get_task_context |
Starting work on a ticket | "work on PROJ-123" |
search_context |
Questions about architecture or past decisions | "how do we handle payment retries?" |
get_standards |
Checking coding conventions | "what are our testing standards?" |
Development
git clone https://github.com/Pro0f/devscontext.git
cd devscontext
pip install -e ".[dev]"
# Run tests
pytest
# Lint
ruff check . && mypy src/
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Ideas for contributions:
- New adapters (Linear, Notion, Confluence)
- Better keyword extraction
- Caching improvements
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devscontext-0.1.0.tar.gz.
File metadata
- Download URL: devscontext-0.1.0.tar.gz
- Upload date:
- Size: 141.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
177710198a193732e11d0dbb32a65441fd713da97fb255f50e6837d9287afd93
|
|
| MD5 |
087aec8d4e3ebfb5e3c3e50d0c3529e5
|
|
| BLAKE2b-256 |
af23b8bcf80b8eb7741f9f041572a3eb34fe9ea4d628d6f84788aef2ae1a381b
|
Provenance
The following attestation bundles were made for devscontext-0.1.0.tar.gz:
Publisher:
publish.yml on Pro0f/devscontext
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devscontext-0.1.0.tar.gz -
Subject digest:
177710198a193732e11d0dbb32a65441fd713da97fb255f50e6837d9287afd93 - Sigstore transparency entry: 997258460
- Sigstore integration time:
-
Permalink:
Pro0f/devscontext@15c8dbafedefcb4c39734e41bc0a968478c72e3d -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Pro0f
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@15c8dbafedefcb4c39734e41bc0a968478c72e3d -
Trigger Event:
release
-
Statement type:
File details
Details for the file devscontext-0.1.0-py3-none-any.whl.
File metadata
- Download URL: devscontext-0.1.0-py3-none-any.whl
- Upload date:
- Size: 103.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cde83075201c92d743b7bad67d8cca59c8673cb0bfb674e173f529cb0ede1e2
|
|
| MD5 |
69bf4624fc71b2319fb3f646211e3605
|
|
| BLAKE2b-256 |
bb3bf8d21227db2008f1daea66a58bcfe810d7b29e11352f88f5654ccdcb2ace
|
Provenance
The following attestation bundles were made for devscontext-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Pro0f/devscontext
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devscontext-0.1.0-py3-none-any.whl -
Subject digest:
9cde83075201c92d743b7bad67d8cca59c8673cb0bfb674e173f529cb0ede1e2 - Sigstore transparency entry: 997258466
- Sigstore integration time:
-
Permalink:
Pro0f/devscontext@15c8dbafedefcb4c39734e41bc0a968478c72e3d -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Pro0f
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@15c8dbafedefcb4c39734e41bc0a968478c72e3d -
Trigger Event:
release
-
Statement type: