mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-20 12:55:21 +02:00
more readme changes
This commit is contained in:
@@ -1,63 +1,131 @@
|
|||||||
# sentry MCP server
|
# mcp-server-sentry: A Sentry MCP server
|
||||||
|
|
||||||
MCP server for retrieving issues from sentry.io
|
## Overview
|
||||||
|
|
||||||
## Components
|
A Model Context Protocol server for retrieving and analyzing issues from Sentry.io. This server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.
|
||||||
|
|
||||||
### Resources
|
|
||||||
|
|
||||||
This server does not implement any resources.
|
|
||||||
|
|
||||||
### Prompts
|
|
||||||
|
|
||||||
The server provides a single prompt:
|
|
||||||
- sentry-issue: Retrieves a Sentry issue by ID or URL
|
|
||||||
- Required "issue_id_or_url" argument to specify the issue
|
|
||||||
- Returns issue details including title, status, level, timestamps and stacktrace
|
|
||||||
|
|
||||||
### Tools
|
### Tools
|
||||||
|
|
||||||
The server implements one tool:
|
1. `get-sentry-issue`
|
||||||
- get-sentry-issue: Retrieves and analyzes Sentry issues
|
- Retrieve and analyze a Sentry issue by ID or URL
|
||||||
- Takes "issue_id_or_url" as required string argument
|
- Input:
|
||||||
- Used for investigating production errors and crashes
|
- `issue_id_or_url` (string): Sentry issue ID or URL to analyze
|
||||||
- Provides access to detailed stacktraces
|
- Returns: Issue details including:
|
||||||
- Shows error patterns and frequencies
|
- Title
|
||||||
- Includes first/last occurrence timestamps
|
- Issue ID
|
||||||
- Displays error counts and status
|
- Status
|
||||||
|
- Level
|
||||||
|
- First seen timestamp
|
||||||
|
- Last seen timestamp
|
||||||
|
- Event count
|
||||||
|
- Full stacktrace
|
||||||
|
|
||||||
## Install
|
### Prompts
|
||||||
|
|
||||||
### Claude Desktop
|
1. `sentry-issue`
|
||||||
|
- Retrieve issue details from Sentry
|
||||||
|
- Input:
|
||||||
|
- `issue_id_or_url` (string): Sentry issue ID or URL
|
||||||
|
- Returns: Formatted issue details as conversation context
|
||||||
|
|
||||||
On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
|
## Installation
|
||||||
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
|
|
||||||
|
### Using uv (recommended)
|
||||||
|
|
||||||
|
When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
|
||||||
|
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-server-sentry*.
|
||||||
|
|
||||||
|
### Using PIP
|
||||||
|
|
||||||
|
Alternatively you can install `mcp-server-sentry` via pip:
|
||||||
|
|
||||||
```
|
```
|
||||||
"mcpServers": {
|
pip install mcp-server-sentry
|
||||||
"sentry": {
|
```
|
||||||
"command": "uv",
|
|
||||||
"args": [
|
After installation, you can run it as a script using:
|
||||||
"--directory",
|
|
||||||
"/Users/davidsp/code/mcp/servers/src/sentry",
|
```
|
||||||
"run",
|
python -m mcp_server_sentry
|
||||||
"sentry"
|
```
|
||||||
]
|
|
||||||
}
|
## Configuration
|
||||||
|
|
||||||
|
### Usage with Claude Desktop
|
||||||
|
|
||||||
|
Add this to your `claude_desktop_config.json`:
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Using uvx</summary>
|
||||||
|
|
||||||
|
```json
|
||||||
|
"mcpServers": {
|
||||||
|
"sentry": {
|
||||||
|
"command": "uvx",
|
||||||
|
"args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Using pip installation</summary>
|
||||||
|
|
||||||
|
```json
|
||||||
|
"mcpServers": {
|
||||||
|
"sentry": {
|
||||||
|
"command": "python",
|
||||||
|
"args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Usage with [Zed](https://github.com/zed-industries/zed)
|
||||||
|
|
||||||
|
Add to your Zed settings.json:
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Using uvx</summary>
|
||||||
|
|
||||||
|
```json
|
||||||
|
"context_servers": [
|
||||||
|
"mcp-server-sentry": {
|
||||||
|
"command": "uvx",
|
||||||
|
"args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Using pip installation</summary>
|
||||||
|
|
||||||
|
```json
|
||||||
|
"context_servers": {
|
||||||
|
"mcp-server-sentry": {
|
||||||
|
"command": "python",
|
||||||
|
"args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Debugging
|
||||||
|
|
||||||
|
You can use the MCP inspector to debug the server. For uvx installations:
|
||||||
|
|
||||||
|
```
|
||||||
|
npx @modelcontextprotocol/inspector uvx mcp-server-sentry --auth-token YOUR_SENTRY_TOKEN
|
||||||
```
|
```
|
||||||
|
|
||||||
## Develop and Debug
|
Or if you've installed the package in a specific directory or are developing on it:
|
||||||
|
|
||||||
Since MCP servers run over stdio, debugging can be challenging. For the best debugging
|
```
|
||||||
experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).
|
cd path/to/servers/src/sentry
|
||||||
|
npx @modelcontextprotocol/inspector uv run mcp-server-sentry --auth-token YOUR_SENTRY_TOKEN
|
||||||
|
|
||||||
You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npx @modelcontextprotocol/inspector uv --directory /Users/davidsp/code/mcp/servers/src/sentry run sentry
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
|
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
|
||||||
|
|||||||
Reference in New Issue
Block a user