Sentry MCP by usefulapi

Read issues, events, releases and queries; resolve or assign issues in Sentry.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
99%
命名质量
80%
投毒风险
80%
权限匹配度
100%
协议合规性
100%

发现(2)

  • HIGHTool poisoning patterns detected
  • LOWTool description contains role marker that could confuse chat models在 sentry_update_issue 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~2,605token 数(工具定义)
~1.8 KB典型响应大小
对注意力有显著影响(占 128k 上下文窗口的 2.04%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "sentry": {
      "url": "https://sentry.usefulapi.io/mcp"
    }
  }
}

远程端点

https://sentry.usefulapi.io/mcpstreamable-http

它能做什么

工具清单

工具(12)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢sentry_list_organizations(cursor, per_page)

List the organizations this token can access, with their slugs. Start here to get the organization slug the other tools need. Sentry API: GET /organizations/.

输入模式

{
  "type": "object",
  "properties": {
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_list_projects(org, cursor, per_page, query)

List the projects of an organization, with slug, id, platform and team. Sentry API: GET /organizations/{org}/projects/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "query": {
      "description": "Filter by name or slug.",
      "type": "string"
    }
  },
  "required": [
    "org"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_get_project(org, project)

Get one project with its platform, teams and settings. Sentry API: GET /projects/{org}/{project}/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "project": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Project slug or numeric id, from sentry_list_projects."
    }
  },
  "required": [
    "org",
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_list_teams(org, cursor, per_page, query)

List the teams of an organization. Sentry API: GET /organizations/{org}/teams/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "query": {
      "description": "Filter by name or slug.",
      "type": "string"
    }
  },
  "required": [
    "org"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_list_issues(org, query, project, environment, statsPeriod, ...)

List the issues (grouped errors) of an organization. Filter with the Sentry search query, for example is:unresolved. Sort: date (default), new, freq, user, trends or inbox. Sentry API: GET /organizations/{org}/issues/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "query": {
      "description": "Sentry search query, for example 'is:unresolved level:error'.",
      "type": "string"
    },
    "project": {
      "description": "Numeric project ids to include, from sentry_list_projects.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "environment": {
      "description": "Environment name, for example production.",
      "type": "string"
    },
    "statsPeriod": {
      "description": "Relative time window, for example 24h or 14d.",
      "type": "string"
    },
    "sort": {
      "description": "Sort order: date, new, freq, user, trends or inbox.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "org"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_get_issue(org, issue_id, environment)

Get one issue with its title, culprit, status, assignee, counts and first and last seen times. Sentry API: GET /organizations/{org}/issues/{issue_id}/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "issue_id": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Issue id (numeric), from sentry_list_issues."
    },
    "environment": {
      "description": "Environment name, for example production.",
      "type": "string"
    }
  },
  "required": [
    "org",
    "issue_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_list_issue_events(org, issue_id, full, environment, statsPeriod, ...)

List the events (single occurrences) of one issue. Set full to true to include the stack trace and tags. Sentry API: GET /organizations/{org}/issues/{issue_id}/events/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "issue_id": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Issue id (numeric), from sentry_list_issues."
    },
    "full": {
      "description": "Include the full event payload (stack trace, tags, context).",
      "type": "boolean"
    },
    "environment": {
      "description": "Environment name, for example production.",
      "type": "string"
    },
    "statsPeriod": {
      "description": "Relative time window, for example 24h or 14d.",
      "type": "string"
    },
    "query": {
      "description": "Sentry search query, for example 'is:unresolved level:error'.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "org",
    "issue_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_get_event(org, project, event_id)

Get one event by id with its stack trace, tags, contexts and breadcrumbs. Sentry API: GET /projects/{org}/{project}/events/{event_id}/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "project": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Project slug or numeric id, from sentry_list_projects."
    },
    "event_id": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{32}$",
      "description": "Event id (32 hex characters), from sentry_list_issue_events."
    }
  },
  "required": [
    "org",
    "project",
    "event_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_query_events(org, field, dataset, query, project, ...)

Run an explore query that returns a table of aggregated events, for example count per issue or p95 duration per transaction. dataset: errors (default), logs, spans, profile_functions, tracemetrics or uptime_results. Sentry API: GET /organizations/{org}/events/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "field": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Columns, for example issue, count(), p95(span.duration)."
    },
    "dataset": {
      "description": "Data set to query (default errors).",
      "type": "string",
      "enum": [
        "errors",
        "logs",
        "spans",
        "profile_functions",
        "tracemetrics",
        "uptime_results"
      ]
    },
    "query": {
      "description": "Sentry search query, for example 'is:unresolved level:error'.",
      "type": "string"
    },
    "project": {
      "description": "Numeric project ids to include.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "environment": {
      "description": "Environment name, for example production.",
      "type": "string"
    },
    "statsPeriod": {
      "description": "Relative time window, for example 24h or 14d.",
      "type": "string"
    },
    "sort": {
      "description": "A column from field, prefixed with - for descending.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "org",
    "field"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_list_releases(org, project, environment, query, per_page, ...)

List releases of an organization, newest first, with version, dates, commit count and new issues. Sentry API: GET /organizations/{org}/releases/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "project": {
      "description": "Numeric project id to filter by, from sentry_list_projects.",
      "type": "string"
    },
    "environment": {
      "description": "Environment name, for example production.",
      "type": "string"
    },
    "query": {
      "description": "Case-insensitive substring of the release version, for example 1.4.2.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "next_cursor from the previous page; omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "org"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢sentry_get_release(org, version)

Get one release by version with its commit count and new issue count. Sentry API: GET /organizations/{org}/releases/{version}/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "version": {
      "type": "string",
      "minLength": 1,
      "description": "Release version string, from sentry_list_releases."
    }
  },
  "required": [
    "org",
    "version"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡sentry_update_issue(org, issue_id, status, assigned_to, is_bookmarked)

Change an issue's status (resolved, unresolved, ignored, resolvedInNextRelease or muted), its assignee (for example user:123 or team:45) or its bookmark. Only the fields you pass change. Sentry API: PUT /organizations/{org}/issues/{issue_id}/.

输入模式

{
  "type": "object",
  "properties": {
    "org": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Organization slug, from sentry_list_organizations."
    },
    "issue_id": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Issue id (numeric), from sentry_list_issues."
    },
    "status": {
      "description": "New status.",
      "type": "string",
      "enum": [
        "resolved",
        "unresolved",
        "ignored",
        "resolvedInNextRelease",
        "muted"
      ]
    },
    "assigned_to": {
      "description": "Actor to assign, for example user:123 or team:45.",
      "type": "string"
    },
    "is_bookmarked": {
      "description": "Bookmark the issue or remove the bookmark.",
      "type": "boolean"
    }
  },
  "required": [
    "org",
    "issue_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本12 个工具