This guide walks you through setting up DevsContext with Cursor IDE.
- Python 3.11 or higher
- Cursor IDE (any recent version with MCP support)
pip install devscontextVerify installation:
devscontext --versionCreate .devscontext.yaml in your project root:
devscontext initOr create manually:
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"
synthesis:
provider: "anthropic"
model: "claude-haiku-4-5"Set environment variables:
export JIRA_EMAIL="you@company.com"
export JIRA_API_TOKEN="your-token"
export ANTHROPIC_API_KEY="your-key"- Open Cursor
- Go to Cursor > Settings > Cursor Settings
- Click Tools & Integrations in the sidebar
- Under MCP Tools, click New MCP Server
- Enter:
- Name:
devscontext - Command:
devscontext - Arguments:
serve
- Name:
Create or edit ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"devscontext": {
"command": "devscontext",
"args": ["serve"]
}
}
}- Open a new Cursor chat (Cmd/Ctrl + L)
- Type: "work on PROJ-123" (replace with a real ticket ID)
- Cursor should call
get_task_contextand show synthesized context
| Prompt | Tool Called |
|---|---|
| "work on PROJ-123" | get_task_context |
| "start ticket PROJ-456" | get_task_context |
| "how do we handle payment retries?" | search_context |
| "what was decided about webhooks?" | search_context |
| "what are our testing standards?" | get_standards |
Try DevsContext without any API keys:
{
"mcpServers": {
"devscontext-demo": {
"command": "devscontext",
"args": ["serve", "--demo"]
}
}
}This uses sample data for a payments webhook ticket (PROJ-123).
- Restart Cursor after adding the config
- Check that
devscontextis in your PATH:which devscontext
- Use the full path:
"command": "/path/to/devscontext" - Find the path with:
which devscontext - Or activate your virtual environment in the command
- Press Cmd/Ctrl + Shift + P
- Search for "Developer: Show Logs..."
- Look for MCP-related messages
If credentials aren't being picked up:
- Ensure variables are exported in your shell profile (
~/.zshrc,~/.bashrc) - Restart Cursor completely (not just reload)
- Or pass them directly in the config:
{
"mcpServers": {
"devscontext": {
"command": "devscontext",
"args": ["serve"],
"env": {
"JIRA_EMAIL": "you@company.com",
"JIRA_API_TOKEN": "your-token",
"ANTHROPIC_API_KEY": "your-key"
}
}
}
}- Configuration Reference - Full config options
- Plugin System - Add custom adapters
- Pre-processing Agent - Build context proactively