Tools

Reference for all tools available through the DeepSource MCP server.

MCP clients automatically discover available tools when they connect to the server. This page is a reference for all 30 tools, their parameters, and what they return.

Common patterns

Identifying repositories

Most tools require you to identify a repository using three fields:

FieldDescription
accountThe account login (organization or username) that owns the repository
nameThe repository name
vcs_providerThe VCS provider (see below)

VCS providers

Where a tool accepts a vcs_provider parameter, use one of these values:

ValueProvider
GITHUBGitHub Cloud
GITHUB_SELF_HOSTEDGitHub Enterprise Server
GITLABGitLab Cloud
GITLAB_SELF_HOSTEDGitLab Self-Managed
BITBUCKETBitbucket Cloud
BITBUCKET_DATA_CENTERBitbucket Data Center

Pagination

List tools return paginated results. Use these parameters to navigate pages:

ParameterTypeDescription
cursorstringCursor for the next page (returned as next_cursor in responses)
limitintegerResults per page. Default: 50, max: 250

User & Accounts

get_current_user

Identify the authenticated user. Returns name, email address, and avatar.

Parameters: None


list_accounts

Find organizations and teams you have access to. Use this to find an account's login for use with other tools.

ParameterTypeRequiredDescription
vcs_providerstringNoFilter by VCS provider
cursorstringNoPagination cursor
limitintegerNoResults per page

get_account

Get detailed information about a specific organization or team, including member count, repository count, and whether Autofix is enabled.

ParameterTypeRequiredDescription
loginstringYesAccount login
vcs_providerstringYesVCS provider

get_usage_summary

Get usage summary for an organization — credit balance, PRs reviewed, commits analyzed, and monitored dependency targets.

ParameterTypeRequiredDescription
loginstringYesAccount login
vcs_providerstringYesVCS provider

Repositories

list_repositories

List repositories activated on DeepSource for an account.

ParameterTypeRequiredDescription
accountstringYesAccount login
vcs_providerstringYesVCS provider
cursorstringNoPagination cursor
limitintegerNoResults per page

get_repository

Get detailed information about a repository — activation status, enabled analyzers, issue statistics, and configuration. A good starting point for exploring a repository's code quality.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider

Analysis Runs

list_runs

List analysis scans for a repository. Each run represents a code analysis triggered by a commit or pull request.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
statusstringNoFilter by status: PENDING, SUCCESS, FAILURE, TIMEOUT, CANCELLED, READY, SKIPPED
branchstringNoFilter by branch name
cursorstringNoPagination cursor
limitintegerNoResults per page

get_run

Get details of a specific analysis scan. Look up by run ID or by commit SHA (with repository info).

ParameterTypeRequiredDescription
run_idstringNoRun UUID
commit_oidstringNoCommit SHA
namestringNoRepository name (required with commit_oid)
accountstringNoAccount login (required with commit_oid)
vcs_providerstringNoVCS provider (required with commit_oid)

Provide either run_id or commit_oid with repository info. When using commit_oid, name, account, and vcs_provider are required.


get_run_report

Get the quality grade card for a scan — letter grades (A-D) and scores across five dimensions: security, reliability, complexity, code hygiene, and test coverage.

ParameterTypeRequiredDescription
run_idstringYesRun UUID

list_checks

List per-analyzer results within an analysis scan. Each check shows what a single analyzer found — its status, issues raised, and issues resolved.

ParameterTypeRequiredDescription
run_idstringYesRun UUID
analyzerstringNoFilter by analyzer shortcode
statusstringNoFilter by status: WAITING, PENDING, SUCCESS, FAILURE, TIMEOUT, CANCELLED, READY, NEUTRAL, SKIPPED
cursorstringNoPagination cursor
limitintegerNoResults per page

get_check

Get detailed results from a specific analyzer check, including issue counts, reported metrics, and errors encountered during analysis.

ParameterTypeRequiredDescription
check_idintegerYesCheck ID

Pull Requests

list_pull_requests

List pull requests that DeepSource has reviewed for a repository.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
statestringNoFilter by state: OPEN, CLOSED
branchstringNoFilter by branch name
cursorstringNoPagination cursor
limitintegerNoResults per page

get_pull_request

Get DeepSource's code review results for a specific pull request — issues raised, resolved, and the latest analysis run.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
pr_numberintegerYesPull request number

Code Issues

list_analysis_issues

List code issues found by DeepSource's static analyzers and AI code review. Look up by pull request, run, or check. Use this to see what DeepSource found in a PR or analysis scan.

ParameterTypeRequiredDescription
check_idintegerNoCheck ID
run_idstringNoRun UUID
pr_numberintegerNoPull request number
namestringNoRepository name (required with pr_number)
accountstringNoAccount login (required with pr_number)
vcs_providerstringNoVCS provider (required with pr_number)
sourcestringNoFilter by source: STATIC, AI
categorystringNoFilter by category (see below)
severitystringNoFilter by severity: CRITICAL, MAJOR, MINOR
is_suppressedbooleanNoFilter by suppression status
occurrence_typestringNoFilter by type: NEW, EXISTING
pathstringNoFilter by file path (prefix match)
cursorstringNoPagination cursor
limitintegerNoResults per page

Provide one of check_id, run_id, or pr_number (with repository info) to scope the results.

Issue categories: BUG_RISK, ANTIPATTERN, SECURITY, STYLE, PERFORMANCE, DOCUMENTATION, TYPECHECK, COVERAGE, SECRETS


get_occurrence

Get full details of a specific code issue, including the source code snippet with surrounding context, the rule that was violated, exact file location, and whether an autofix is available.

ParameterTypeRequiredDescription
occurrence_idintegerYesOccurrence ID (from list_analysis_issues)

list_repository_issues

List all issues currently present in a repository's default branch. This is the overall health view — aggregated issues across all past scans. Use this to see what issues exist in the codebase right now.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
categorystringNoFilter by category
severitystringNoFilter by severity: CRITICAL, MAJOR, MINOR
analyzerstringNoFilter by analyzer shortcode
cursorstringNoPagination cursor
limitintegerNoResults per page

get_issue

Look up a DeepSource analysis rule by its shortcode (e.g., PYL-E4051, JS-0001). Returns what the rule checks for, why it matters, its severity, and category.

ParameterTypeRequiredDescription
shortcodestringYesIssue shortcode

This returns the rule definition, not a specific code location. To see where issues were found in code, use list_analysis_issues or list_repository_issues.


search_issues

Search DeepSource's catalog of analysis rules by shortcode or keyword. Use this when you don't know the exact shortcode — for example, search "unused import" to find PYL-W0611.

ParameterTypeRequiredDescription
querystringYesSearch query
analyzerstringNoFilter by analyzer shortcode
categorystringNoFilter by category
cursorstringNoPagination cursor
limitintegerNoResults per page

Metrics

list_metrics

List code quality metrics tracked for a repository — line coverage, branch coverage, documentation coverage, and other health metrics.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
shortcodestringNoFilter by metric shortcode (e.g., LCV for line coverage)
cursorstringNoPagination cursor
limitintegerNoResults per page

get_metric

Get the current value of a specific metric, including pass/fail threshold and trend direction.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
shortcodestringYesMetric shortcode
keystringNoMetric namespace key (for analyzer-specific variants)

get_metric_history

Get historical values for a metric over time. Returns a time series for trend analysis.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
shortcodestringYesMetric shortcode
keystringNoMetric namespace key
sincestringNoStart date (ISO 8601)
untilstringNoEnd date (ISO 8601)
limitintegerNoNumber of data points (default: 50, max: 100)

Reports

list_reports

List available compliance and insight reports for a repository — OWASP Top 10, SANS Top 25, MISRA C, code coverage trends, and issue distribution.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider

get_report

Get a specific report with pass/fail status and detailed data.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
report_keystringYesReport key (from list_reports)

Dependencies & Vulnerabilities

list_vulnerabilities

List security vulnerabilities in a repository's dependencies, with CVE/GHSA identifiers, CVSS scores, and affected package info.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
severitystringNoFilter by severity: NONE, LOW, MEDIUM, HIGH, CRITICAL
fixabilitystringNoFilter: AUTO_FIXABLE, MANUALLY_FIXABLE, POSSIBLY_FIXABLE, UNFIXABLE
reachabilitystringNoFilter: REACHABLE, UNREACHABLE, UNKNOWN
is_suppressedbooleanNoFilter by suppression status
cursorstringNoPagination cursor
limitintegerNoResults per page

get_vulnerability

Get full details of a specific vulnerability — CVSS scores (v2/v3/v4), EPSS exploit probability, affected package and version, available fix versions, and reachability status.

ParameterTypeRequiredDescription
occurrence_idintegerYesVulnerability occurrence ID

list_dependency_targets

List dependency manifest and lockfiles monitored for vulnerabilities (e.g., package-lock.json, requirements.txt, go.sum).

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
cursorstringNoPagination cursor
limitintegerNoResults per page

get_dependency_target

Get details of a specific dependency target — direct and transitive dependency counts, and vulnerability breakdown by severity.

ParameterTypeRequiredDescription
target_idintegerYesTarget ID

Configuration

list_ignore_rules

List issue suppression rules for a repository. Ignore rules silence a specific issue type either globally or for a specific file.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
issue_shortcodestringNoFilter by issue shortcode
cursorstringNoPagination cursor
limitintegerNoResults per page

create_ignore_rule

Suppress a specific issue type so DeepSource stops reporting it. Can apply to the entire repository or a single file.

ParameterTypeRequiredDescription
namestringYesRepository name
accountstringYesAccount login
vcs_providerstringYesVCS provider
issue_shortcodestringYesIssue shortcode to suppress
file_pathstringNoScope to a specific file path
reasonstringYesReason for suppression

delete_ignore_rule

Remove a suppression rule so DeepSource starts reporting the issue again.

ParameterTypeRequiredDescription
rule_idintegerYesIgnore rule ID (from list_ignore_rules)

On this page