mirror of
https://github.com/getsentry/sentry-for-ai.git
synced 2026-09-14 14:28:22 +08:00
d92fa58fca
Add official Sentry integration plugin for Claude Code with: - /seer command for natural language queries about Sentry environment - /getIssues command for fetching recent issues by project - issue-summarizer agent for parallel issue analysis - sentry-pr-resolver skill for automated PR comment resolution - Automatic MCP server configuration for Sentry API access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| getIssues | Fetch the most recent 10 issues from Sentry, optionally filtered by project name |
Get Recent Sentry Issues
Retrieve and display the 10 most recent issues from Sentry.
Usage
/getIssues- Get the 10 most recent issues across all projects/getIssues <projectName>- Get the 10 most recent issues for a specific project
Instructions
You are tasked with fetching recent Sentry issues using the Sentry MCP server.
-
Parse the command arguments:
- Extract the project name if provided (e.g.,
/getIssues sentryvibeshould extract "sentryvibe") - If no project name is provided, fetch issues across all projects
- Extract the project name if provided (e.g.,
-
Use the Sentry MCP tools to fetch issues:
- Query for the 10 most recent issues
- If a project name was provided, filter results to only that project
- Sort by most recent first
-
Display the results in a clear format:
## Recent Sentry Issues [for <project>] ### Issue 1: [Title] - **ID:** [issue-id] - **Project:** [project-name] - **Status:** [status] - **First Seen:** [timestamp] - **Last Seen:** [timestamp] - **Event Count:** [count] - **Users Affected:** [count] - **Link:** [sentry-url] [Repeat for each issue] -
Error handling:
- If the Sentry MCP server is not available, inform the user and suggest checking their MCP configuration
- If no issues are found, inform the user
- If the specified project doesn't exist, list available projects
Tips
- Use the MCP tools provided by the Sentry MCP server at https://mcp.sentry.dev/mcp
- The project name argument is case-sensitive
- You can suggest using the issue-summarizer agent for deeper analysis of multiple issues