https://github.com/digma-ai/digma-mcp-server
https://github.com/digma-ai/digma-mcp-server
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/digma-ai/digma-mcp-server
- Owner: digma-ai
- Created: 2025-04-21T08:38:45.000Z (21 days ago)
- Default Branch: main
- Last Pushed: 2025-04-29T19:21:11.000Z (12 days ago)
- Last Synced: 2025-04-29T20:28:35.874Z (12 days ago)
- Language: C#
- Size: 56.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mcp-servers - Digma - A code observability MCP enabling dynamic code analysis based on OTEL/APM data to assist in code reviews, issues identification and fix, highlighting risky code etc. (Official Servers)
README
# Digma Code Observability MCP Server
A Model Context Protocol (MCP) server implementation for enabling agents to access observability insights using [Digma](https://digma.ai) 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?`---
## How It Works 🔧
Digma is an application that pre-processes your observability data to identify issues and track code performance and runtime data.
Check out our [MCP page](https://digma.ai/mcp/) to get started.
---## 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](https://github.com/supercorp-ai/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:
```json
{
"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](https://github.com/supercorp-ai/supergateway) tool to bridge to the URL as seen below:
```json
{
"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
```markdown
# 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.
```## License 📜
MIT License. See [LICENSE](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fjustinpbarnett%2Funity-mcp%2Fblob%2Fmaster%2FLICENSE) file.