MCP Integration

DevLens in Your IDE

Get quality scores, blast radius analysis, review history, and pre-PR reviews directly inside Cursor, VS Code, or any MCP-compatible editor.

Setup

Add the DevLens MCP server to your IDE — no install needed

Add this to your IDE config:

Cursor: .cursor/mcp.json

{
  "mcpServers": {
    "devlens": {
      "url": "https://api.devlens.xyz/mcp",
      "headers": {
        "X-API-Key": "dlk_your_key_here"
      }
    }
  }
}
No installation required. Works in Cursor, VS Code, and any IDE that supports remote MCP servers.

Getting your API key

Go to Settings → API Keys in your DevLens dashboard and create a new key. Keys start with dlk_ and inherit your organization's permissions.

Available Tools

13 tools covering quality, reviews, analytics, and 3 IDE-exclusive capabilities no other code review platform offers.

IDE-Only Tools

File History

What issues have past reviews found in a specific file — know what to watch out for while editing

Try: "What issues have been found in src/auth.py before?"

devlens_file_history

Pre-Review

Review changes before opening a PR — instant AI feedback on security, bugs, and style

Try: "Pre-review my staged changes before I push"

devlens_pre_review

Blast Radius Preview

Compute blast radius of local changes to see production risk before you commit

Try: "What's the blast radius if I change the authenticate() function?"

devlens_blast_radius_preview
Quality Intelligence

Quality Score

Get the quality score (0-100) for a repo or the whole org

Try: "What's the quality score for our payments repo?"

devlens_quality_score

Score Explain

Why the quality score is what it is — contributing factors and trends

Try: "Why did our quality score drop this week?"

devlens_score_explain

Quality Drift

Detect repos where quality is improving or degrading

Try: "Which repos are getting worse?"

devlens_quality_drift
Review Data

Review History

List recent PR reviews with risk scores and status

Try: "Show me the last 10 reviews for our API repo"

devlens_review_history

Review Detail

Full PR review with all comments, blast radius, and risk assessment

Try: "Show me the review for PR #142"

devlens_review_detail

Findings Summary

Findings breakdown by status: open, fixed, ignored, false positive

Try: "How many open findings do we have?"

devlens_findings_summary
Analytics & Insights

Dashboard Stats

High-level overview: PRs reviewed, risk, feedback, top categories

Try: "Give me a dashboard overview for the last 30 days"

devlens_dashboard_stats

Benchmarks

Compare repo quality against other repos in the org

Try: "How does our frontend repo compare to the rest?"

devlens_benchmarks

Team Patterns

Recurring violation patterns across the team

Try: "What patterns does our team keep getting flagged for?"

devlens_team_patterns

Hotspots

Riskiest files ranked by finding frequency

Try: "Which files have the most issues?"

devlens_hotspots

What makes this different

Pre-PR feedback — other platforms only kick in after you push. DevLens reviews your code while you're still writing it.
Blast radius in IDE — see production risk before you commit, not after merge.
File-level memory — know what past reviews found in the file you're editing so you don't repeat mistakes.
Zero context switching — quality scores, benchmarks, and team patterns without leaving your editor.