Cover image
Try Now
2025-04-07

Modellkontext -Protokollserver (MCP) für DeepSource

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

DeepSource MCP Server

CI DeepSource DeepSource DeepSource npm version npm downloads License

A Model Context Protocol (MCP) server that integrates with DeepSource to provide AI assistants with access to code quality metrics, issues, and analysis results.

Overview

The DeepSource MCP Server enables AI assistants to interact with DeepSource's code quality analysis capabilities through the Model Context Protocol. This integration allows AI assistants to:

  • Retrieve code metrics and analysis results
  • Access and filter issues
  • Check quality status
  • Analyze project quality over time

Features

  • DeepSource API Integration: Connects to DeepSource via GraphQL API
  • MCP Protocol Support: Implements the Model Context Protocol for AI assistant integration
  • TypeScript/Node.js: Built with TypeScript for type safety and modern JavaScript features
  • Cross-Platform: Works on Linux, macOS, and Windows
  • Robust Error Handling: Comprehensive error handling for network, authentication, and parsing issues

Usage with Claude Desktop

  1. Edit claude_desktop_config.json:

    • Open Claude Desktop
    • Go to Settings -> Developer -> Edit Config
    • Add the one of the configurations below to the mcpServers section
  2. Restart Claude Desktop to apply the changes

Docker

{
  "mcpServers": {
    "deepsource": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DEEPSOURCE_API_KEY",
        "sapientpants/deepsource-mcp-server"
      ],
      "env": {
        "DEEPSOURCE_API_KEY": "your-deepsource-api-key"
      }
    }
  }
}

NPX

{
  "mcpServers": {
    "deepsource": {
      "command": "npx",
      "args": [
        "-y",
        "deepsource-mcp-server@1.0.2"
      ],
      "env": {
        "DEEPSOURCE_API_KEY": "your-deepsource-api-key"
      }
    }
  }
}

Available Tools

The DeepSource MCP Server provides the following tools:

  1. deepsource_projects: List all available DeepSource projects

    • Parameters:
      • No required parameters
  2. deepsource_project_issues: Get issues from a DeepSource project

    • Parameters:
      • projectKey (required) - The unique identifier for the DeepSource project
      • offset (optional) - Number of items to skip for pagination
      • first (optional) - Number of items to return (defaults to 10)
      • after (optional) - Cursor for forward pagination
      • before (optional) - Cursor for backward pagination

Development

  1. Clone the repository:
git clone https://github.com/sapientpants/deepsource-mcp-server.git
cd deepsource-mcp-server
  1. Install dependencies:
pnpm install
  1. Build the project:
pnpm run build
  1. Configure Claude Desktop
{
  "mcpServers": {
    "deepsource": {
      "command": "node",
      "args": [
        "/path/to/deepsource-mcp-server/dist/index.js"
      ],
      "env": {
        "DEEPSOURCE_API_KEY": "your-deepsource-api-key"
      }
    }
  }
}

Prerequisites

  • Node.js 20 or higher
  • pnpm 10.7.0 or higher
  • Docker (for container builds)

Scripts

  • pnpm run build - Build the TypeScript code
  • pnpm run start - Start the server
  • pnpm run dev - Start the server in development mode
  • pnpm run test - Run tests
  • pnpm run lint - Run ESLint
  • pnpm run format - Format code with Prettier

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

    Reviews

    1 (1)
    Avatar
    user_X9LvzodD
    2025-04-17

    As a dedicated user of deepsource-mcp-server, I am thoroughly impressed with the seamless integration and robust performance it offers. The server is well-crafted, showcasing sapientpants' expertise in delivering a top-notch product. The comprehensive documentation and welcoming start URL make setting up and using the server a breeze. Highly recommended for anyone seeking an efficient and reliable MCP application!