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"
}
}
}
}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.
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_historyPre-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_reviewBlast 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_previewQuality 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_scoreScore Explain
Why the quality score is what it is — contributing factors and trends
Try: "Why did our quality score drop this week?"
devlens_score_explainQuality Drift
Detect repos where quality is improving or degrading
Try: "Which repos are getting worse?"
devlens_quality_driftReview History
List recent PR reviews with risk scores and status
Try: "Show me the last 10 reviews for our API repo"
devlens_review_historyReview Detail
Full PR review with all comments, blast radius, and risk assessment
Try: "Show me the review for PR #142"
devlens_review_detailFindings Summary
Findings breakdown by status: open, fixed, ignored, false positive
Try: "How many open findings do we have?"
devlens_findings_summaryDashboard Stats
High-level overview: PRs reviewed, risk, feedback, top categories
Try: "Give me a dashboard overview for the last 30 days"
devlens_dashboard_statsBenchmarks
Compare repo quality against other repos in the org
Try: "How does our frontend repo compare to the rest?"
devlens_benchmarksTeam Patterns
Recurring violation patterns across the team
Try: "What patterns does our team keep getting flagged for?"
devlens_team_patternsHotspots
Riskiest files ranked by finding frequency
Try: "Which files have the most issues?"
devlens_hotspots