deepsource-mcp-server: Command for Claude Code

.claude/commands/fix-deepsource-issues.md

fix-deepsource-issues is a command for Claude Code from sapientpants/deepsource-mcp-server. It costs 0 tokens per session (2,085 once invoked), scanned A, original, MIT.

A command that uses DeepSource, a code-quality checking service, to find open issues in a project and fix them.

In plain words
What is it for?
Use it to list DeepSource issues, inspect their details and counts, check overall code-health metrics, and fix the reported problems.
Why use it?
It avoids manually searching through DeepSource reports and deciding which reported problems to address. It can also check issues for a specific branch or for the whole project.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is sapientpants/deepsource-mcp-server's own configuration. It tells Claude Code how to work on deepsource-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deepsource-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sapientpants/deepsource-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sapientpants/deepsource-mcp-server/main/.claude/commands/fix-deepsource-issues.md
Clone the repo
git clone --depth 1 https://github.com/sapientpants/deepsource-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-deepsource-issues

README.md
[![agentmods](https://agentmods.dev/badge/commands/sapientpants/deepsource-mcp-server/fix-deepsource-issues/github.svg)](https://agentmods.dev/commands/sapientpants/deepsource-mcp-server/fix-deepsource-issues)
Your own site
<a href="https://agentmods.dev/commands/sapientpants/deepsource-mcp-server/fix-deepsource-issues"><img src="https://agentmods.dev/badge/commands/sapientpants/deepsource-mcp-server/fix-deepsource-issues/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-deepsource-issues

Your own site · 80×15
<a href="https://agentmods.dev/commands/sapientpants/deepsource-mcp-server/fix-deepsource-issues"><img src="https://agentmods.dev/badge/commands/sapientpants/deepsource-mcp-server/fix-deepsource-issues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02085
Opus 5.5 $0.00000 $0.00834
Sonnet 5.5 $0.00000 $0.00417
Haiku 4.5 $0.00000 $0.00209

Measured 2mo ago against content hash 3d735ffd7c3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-deepsource-issues scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/fix-deepsource-issues.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix DeepSource Issues

Analyze and fix all open issues reported by DeepSource for this project using the DeepSource MCP server.

Steps

  1. Identify Project and Check for Issues

    • Use MCP tool projects to list available projects
    • Find the project key matching this repository
    • For branch-specific issues: Use recent_run_issues with the current branch name
    • For overall project issues: Use project_issues to query all open issues
    • Note: recent_run_issues may return very large responses - use runs to check issue counts first
    • If no issues found: Report "✅ No DeepSource issues found!" and exit
  2. Get Detailed Issue Analysis

    • When working on a specific branch (e.g., for a PR):
      • Use runs to find the latest run for your branch and check issue counts
      • Use run with the run ID to get summary information
      • Note: recent_run_issues responses can exceed token limits even with first: 1
      • If API responses are too large, check the DeepSource dashboard directly
    • For main branch or overall project:
      • Use project_issues with pagination (default branch is main)
    • Use quality_metrics to understand overall code health
    • Check dependency_vulnerabilities for security issues in dependencies
  3. Analyze Retrieved Issues

    • Group by severity: BLOCKER, CRITICAL, MAJOR, MINOR, INFO
    • Categorize by analyzer:
      • JavaScript/TypeScript: JS-* issues
      • Test Coverage: TCV-* issues
      • Security: SEC-* issues
      • Dependencies: DEP-* issues
    • Note issue occurrences (how many times each issue appears)
    • Report detailed summary with issue codes and descriptions
  4. Create Feature Branch (only if issues exist)

    git checkout -b fix/deepsource-issues-$(date +%Y%m%d)
    
  5. Fix Issues by Priority

    • Start with BLOCKER severity
    • Then CRITICAL
    • Then MAJOR
    • Then MINOR
    • Finally INFO
    • Group similar issues to fix them together efficiently

Read the full file on GitHub · 239 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 239 lines · 0 tokens per session scan A 3d735ffd7c3f

Subscribe to this mod's changes

fix-deepsource-issues is a command published in the GitHub repository sapientpants/deepsource-mcp-server (7 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,085 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

fix-deepsource-issues compared with commands from other repositories

fix-deepsource-issues next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-deepsource-issuessapientpants/deepsource-mcp-serverCommand71y agoMITA0Claude Code
ultra-agentsZoeLinUTS/MagicTeX-mcpCommand43d agoAGPL-3.0A0Claude Code
inconsistencesArenukvern/mcp_flutterCommand39520d agoMITA0Claude Code, Cursor
preflightcdeust/CortexCommand76yesterdayMITA20Claude Code
codexreviewwhiteknightonhorse/APIbaseCommand10yesterdayMITA0Claude Code
umt-doctorMarkgatcha/universal-mcp-toolkitCommand163d agoMITA16Claude Code
inventoryggemba/squad-mcpCommand43mo agoApache-2.0A0Claude Code