pi-sentry-mcp

extensionmaintained

Sentry MCP for Pi. Connects to https://mcp.sentry.dev/mcp with OAuth.

by — · v0.2.0 · published 1w ago

$ pi install npm:pi-sentry-mcp
downloads/mo
171
stars
0
last push
1w ago
open issues
0

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

No downloads in the last 12 weeks.

README

pi-sentry-mcp

CI

Talk to Sentry from Pi. After you sign in, the agent can search issues, events, and traces on Sentry's MCP at https://mcp.sentry.dev/mcp.

You need Pi, pi-mcp-adapter, and a Sentry account.

Install

pi install npm:pi-mcp-adapter
pi install git:github.com/hempun10/pi-sentry-mcp@v0.2.0

Restart Pi or run /reload, then run /mcp-auth sentry and sign in in the browser.

pi-mcp-adapter stores the OAuth token. This repo never sees it.

If Pi says pi-mcp-adapter is not installed, install that package and reload.

Limit to one org or project

The default URL is https://mcp.sentry.dev/mcp. That can reach every org your account can access.

Put sentryMcp in .pi/settings.json for this project, or in ~/.pi/agent/settings.json for every project. .pi/settings.json overrides the user file.

FieldRequiredSourceWhat it does
urlnosettingsFull MCP URL. Ignores organization and project.
organizationnosettings or SENTRY_ORGUses https://mcp.sentry.dev/mcp/{org}
projectnosettings or SENTRY_PROJECTNeeds organization. Uses https://mcp.sentry.dev/mcp/{org}/{project}
experimentalnosettings or SENTRY_MCP_EXPERIMENTAL=1Adds ?experimental=1 to the built URL
{
  "sentryMcp": {
    "organization": "my-org",
    "project": "my-project"
  }
}

If you set project, you must also set organization.

Call it

The server name is sentry.

mcp({ search: "unresolved issues", server: "sentry" })
mcp({ tool: "search_issues", args: { organizationSlug: "my-org", query: "is:unresolved" } })

Paste Sentry issue URLs as they are. Write org/project as organizationSlug/projectSlug.

Sentry lists tools at mcp.sentry.dev. Sentry can add or remove tools without a change in this repo.

What this repo does not do

It does not implement search_issues or other Sentry tools. Those run on Sentry's server.

It is not sentry-cli. It is not a self-hosted MCP. For self-hosted Sentry, set sentryMcp.url to your MCP endpoint.

Develop

npm install
npm run check
npm test

See CONTRIBUTING.md.

License

MIT