DeepSource MCP Server

by sapientpants

deepsource_quality_metrics

Analyze code quality metrics for DeepSource projects, including coverage, duplication, and thresholds, with filtering options. Provides detailed insights for individual languages and repository-wide aggregation.

Instructions

Get quality metrics from a DeepSource project with optional filtering by metric type.

Metrics include code coverage, duplicate code percentage, and more, along with their:

  • Current values
  • Threshold settings
  • Pass/fail status
  • Configuration status (reporting and enforcement)

For each metric, detailed information is provided for different programming languages and the aggregated metrics for the entire repository.

Input Schema

NameRequiredDescriptionDefault
projectKeyYesThe unique identifier for the DeepSource project
shortcodeInNoFilter metrics by specific shortcodes (e.g., ["LCV", "BCV"])

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "projectKey": { "description": "The unique identifier for the DeepSource project", "type": "string" }, "shortcodeIn": { "description": "Filter metrics by specific shortcodes (e.g., [\"LCV\", \"BCV\"])", "items": { "enum": [ "LCV", "BCV", "DCV", "DDP", "SCV", "TCV", "CMP" ], "type": "string" }, "type": "array" } }, "required": [ "projectKey" ], "type": "object" }

You must be authenticated.

Other Tools from DeepSource MCP Server

Related Tools

ID: u4wlvmu5z8