连接能力
Zzzccs123 mcp sentry 为 AI Agent 提供什么
- `get_sentry_issue` Tool
- Retrieves and analyzes Sentry issues by ID or URL
- Input:
- `issue_id_or_url` (string): Sentry issue ID or URL to analyze
- Returns: Issue details including:
- Title
- Issue ID
- Status
- Level
- First seen timestamp
- Last seen timestamp
- Event count
- Complete stack trace
- `sentry-issue` Prompt Template
- Retrieves issue details from Sentry
- Input:
- `issue_id_or_url` (string): Sentry issue ID or URL
- Returns: Formatted issue details as conversation context
- `SENTRY_AUTH_TOKEN` (required): Your Sentry API access token
- `SENTRY_PROJECT_SLUG` (optional): The slug of your Sentry project
- `SENTRY_ORGANIZATION_SLUG` (optional): The slug of your Sentry organization
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
This is a Model Context Protocol (MCP) server implemented in TypeScript for connecting to the Sentry error tracking service. This server allows AI models to query and analyze error reports and events on Sentry.
-
get_sentry_issueTool- Retrieves and analyzes Sentry issues by ID or URL
- Input:
issue_id_or_url(string): Sentry issue ID or URL to analyze
- Returns: Issue details including:
- Title
- Issue ID
- Status
- Level
- First seen timestamp
- Last seen timestamp
- Event count
- Complete stack trace
-
sentry-issuePrompt Template- Retrieves issue details from Sentry
- Input:
issue_id_or_url(string): Sentry issue ID or URL
- Returns: Formatted issue details as conversation context
# Install dependencies
npm install
# Build the project
npm run buildThe server is configured using environment variables. Create a .env file in the project root directory:
# Required: Sentry authentication token
SENTRY_AUTH_TOKEN=your_sentry_auth_token
# Optional: Sentry organization name
SENTRY_ORGANIZATION_SLUG=your_organization_slug
# Optional: Sentry project name
SENTRY_PROJECT_SLUG=your_project_slug
# Optional: Sentry base url
SENTRY_BASE_URL=https://sentry.com/api/0
Alternatively, you can set these environment variables at runtime.
Run the server via standard IO:
node dist/index.jsDebug with MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.jsSENTRY_AUTH_TOKEN(required): Your Sentry API access tokenSENTRY_PROJECT_SLUG(optional): The slug of your Sentry projectSENTRY_ORGANIZATION_SLUG(optional): The slug of your Sentry organization
The latter two variables can be omitted if project and organization information are provided in the URL.
This project is licensed under the MIT License.
社区
收藏、评分与讨论
正在载入社区数据…