Digma

आधिकारिक

एक कोड ऑब्ज़र्वेबिलिटी MCP जो OTEL/APM डेटा के आधार पर डायनामिक कोड विश्लेषण सक्षम करता है, कोड समीक्षा, समस्याओं की पहचान और समाधान, जोखिमपूर्ण कोड को हाइलाइट करने आदि में सहायता करता है।

Digma MCP के साथ आप क्या कर सकते हैं?

  • Review PR branches for runtime issues — ask the assistant to check your branch’s code changes against issues found in pre-production observability.
  • Surface top performance problems — request the most severe inefficiencies detected by dynamic code analysis across your application.
  • Assess impact of changing a function — identify which other services and code are affected based on runtime usage data from distributed tracing.
  • Check for new issues in a specific environment — query whether recent code introduced any issues in environments like Staging.
  • Find high-impact database queries — ask which database queries have the greatest effect on application performance.

दस्तावेज़

Digma कोड ऑब्ज़र्वेबिलिटी MCP सर्वर

एक मॉडल कॉन्टेक्स्ट प्रोटोकॉल (MCP) सर्वर कार्यान्वयन, जो एजेंटों को Digma का उपयोग करके कोड ऑब्ज़र्वेबिलिटी और डायनामिक कोड विश्लेषण की अंतर्दृष्टि तक पहुँचने में सक्षम बनाता है

मुख्य विशेषताएँ 🚀

  • 🗣️ ऑब्ज़र्वेबिलिटी-सहायता प्राप्त कोड समीक्षाएँ: प्री-प्रॉड ऑब्ज़र्वेबिलिटी द्वारा खोजी गई किसी भी समस्या के लिए PR शाखा की जाँच करें।
  • 🔎 डायनामिक कोड विश्लेषण के साथ कोड अक्षमताएँ खोजें: कोड/क्वेरीज़ में उन समस्याओं की पहचान करें जो ऐप को धीमा कर रही हैं
  • 🔭 वितरित ट्रेसिंग से कोड रनटाइम उपयोग डेटा का उपयोग करें: ब्रेकिंग चेंजेस की जाँच करें या प्रासंगिक परीक्षण जनरेट करें

उदाहरण प्रॉम्प्ट 💬

  • 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?

इसे कार्य करते हुए देखें 📺

Code review with Digma MCP


शीघ्र पहुँच प्राप्त करें 👀

Digma डायनामिक कोड विश्लेषण के लिए मुद्दों की पहचान करने, कोड प्रदर्शन और रनटाइम डेटा को ट्रैक करने हेतु आपके ऑब्ज़र्वेबिलिटी डेटा को प्री-प्रोसेस करता है। हमारे MCP सर्वर की शीघ्र पहुँच के लिए साइन अप करने हेतु हमारे MCP पेज पर जाएँ।

इंस्टॉलेशन ⚙️

Digma MCP को शामिल करने के लिए अपने MCP क्लाइंट (Claude, Cursor, आदि) को कॉन्फ़िगर करें। Digma परिनियोजन में MCP SSE सर्वर शामिल है। आप इसे अपने क्लाइंट में इसके URL का उपयोग करके कॉन्फ़िगर कर सकते हैं, या इसे कमांड टूल के रूप में चलाने के लिए SuperGateway जैसे MCP टूल का उपयोग कर सकते हैं। MCP URL पथ निम्नानुसार Digma API कुंजी से बना होता है: https://<DIGMA_API_URL>/mcp/<DIGMA_API_TOKEN>>/sse

उदाहरण MCP XML

यदि आपका क्लाइंट SSE सर्वर का समर्थन करता है, तो आप निम्नलिखित सिंटैक्स का उपयोग कर सकते हैं:

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

MCP सर्वर को कमांड टूल के रूप में उपयोग करने के लिए, नीचे दिखाए अनुसार URL से जुड़ने के लिए SuperGateway टूल का उपयोग करें:

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

नियमों का उपयोग 👨‍💼

एजेंट स्वायत्त है और आवश्यकतानुसार Digma द्वारा प्रदान किए गए डेटा का उपयोग कब करना है, इसका चयन करता है, हालाँकि, कुछ क्लाइंट अधिक संरचित प्रक्रिया निर्धारित करने के लिए नियम और नीतियाँ सेट करने की अनुमति देते हैं। यहाँ एक उदाहरण नियम फ़ाइल है जिसे आप अपनी cursor .cursor/rules निर्देशिका में जोड़ सकते हैं

# Digma Memory File - Code Review Instructions

## Runtime Analysis Settings
- Environment: TEST

## Code Review Protocol
1. For any code or branch review request:
   - Get the list of changed files and methods in the current branch using `git diff`
   - Check for ALL runtime issues in TEST environment (not just for the method in context)
   - Check if any runtime issue may be related to the changed code
   - Check the runtime usage of the changed methods (based on the `git diff`)
   - Check if any of the changed methods (based on the `git diff`) have a high risk based on their performance impact 
   - Synthesize the data with standard code review analysis


## Note
This file is used by the AI assistant to maintain consistent review protocols across sessions. 

लाइसेंस 📜

MIT लाइसेंस। LICENSE फ़ाइल देखें।