DA

digma-ai/digma-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 3 forks 品質 46 トレンド 8

A Model Context Protocol (MCP) server implementation for enabling agents to access observability insights using Digma for code observability and dynamic code analysis

概要

A Model Context Protocol (MCP) server implementation for enabling agents to access observability insights using Digma for code observability and dynamic code analysis * Check the PR branch for any issues discovered by pre-prod observability. * Identify issues in the code/queries that are slowing the app down * Check for breaking changes or generated relevant tests * help me review the code changes in this branch by looking at related runtime issues * I want to improve the performance of this app. What are the three most severe issues I can fix? * I'm making changes to this function, based on runtime data. What other services and code would be affected? * Are there any new issues in this code based on the Staging environment? * Which database queries have the most impact on the application performance? Digma pre-processes your observability data to identify issues, track code performance and runtime data - for dynamic code analysis.

README

以下は原文 README の抜粋です。原文を見る。

Digma Code Observability MCP Server

A Model Context Protocol (MCP) server implementation for enabling agents to access observability insights using Digma for code observability and dynamic code analysis

Key Features 🚀

  • 🗣️ Observability-assisted code reviews: Check the PR branch for any issues discovered by pre-prod observability.
  • 🔎 Find code inefficiencies with dynamic code analysis: Identify issues in the code/queries that are slowing the app down
  • 🔭 Utilize code runtime usage data from distributed tracing: Check for breaking changes or generated relevant tests

Example prompts 💬

  • help me review the code changes in this branch by looking at related runtime issues
  • I want to improve the performance of this app. What are the three most severe issues I can fix?
  • I'm making changes to this function, based on runtime data. What other services and code would be affected?
  • Are there any new issues in this code based on the Staging environment?
  • Which database queries have the most impact on the application performance?

See it in action 📺


Get early access 👀

Digma pre-processes your observability data to identify issues, track code performance and runtime data - for dynamic code analysis. Visit our MCP page to sign up for early access to our MCP server.

Installation ⚙️

Configure your MCP Client (Claude, Cursor, etc.) to include the Digma MCP. The Digma deployment includes the MCP SSE server. You can configure it using its URL in your client, or use an MCP tool such as SuperGateway to run it as a command tool. The MCP URL path is composed of the Digma API Key as follows: https:///mcp/>/sse

Example MCP XML

If your client supports SSE servers, you can use the following syntax:

{
  "mcpServers": {
    "digma": {
    "url": "https:///mcp/DIGMA_API_TOKEN>/sse",
   
      }
    // ... other servers might be here ...
  }
}

To use the MCP server as a command tool, use the SuperGateway tool to bridge to the URL as seen below:

{
  "digma": {
    "command": "npx",
    "args": [
      "-y",
      "supergateway",
      "--sse",
      "https:///mcp/DIGMA_API_TOKEN>/sse"
    ]
  }
}

Using rules 👨‍💼

The agent is autonomous and selects when to use the data provided by Digma as needed, however, some clients allow setting rules and policies to set a more structured process. Here is an example rules file which you can add to your cursor .cursor/rules directory

# Digma Memory File - Code Review Instructions

## Runtime Analysis Settings
- Environment: TEST
GitHub で README 全文を見る

インストール

npx -y supergateway --sse https://<DIGMA_API_URL>/mcp/DIGMA_API_TOKEN>/sse
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "digma": { "url": "https://<DIGMA_API_URL>/mcp/DIGMA_API_TOKEN>/sse", } // ... other servers might be here ... } }