Expose sentry api and sentry schema through the MCP

Open
#1,893 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
api, cli

Research direction

Start with the linked cli-first-mcp design and tasks, then inspect the command exposure and permission handling for sentry api and sentry schema. Check how #1807's shared matcher is used for hosted path validation. Done means tests cover a raw read, a raw write refused under --read-only, and an unpublished path refused on hosted.

Written by the indexing model from the issue text.

Description

api CLI enhancement MCP

Part of #1357. Plan: cli-first-mcp task 4.1 (design, tasks). Depends on #1890.

Why

This is how agents reach every published API route with no extra tools: sentry schema to search the API, sentry api to call it.

Scope

  • Mark both commands exposed.
  • A sentry api call's permission class comes from its HTTP method, so GET goes through the read tool and anything else through the write tool.
  • Hosted checks the path against the published operation list with #1807's shared matcher.

Related: #1803 (route sentry api by org), #1476.

Done when

  • Tests for a raw read, a raw write refused under --read-only, and an unpublished path refused on hosted.

via @BYK.

--

View Session in Sentry

Dominant language
TypeScript
Stars
961
Forks
179
Avg merge
15h 33m
Merged PRs (30d)
476

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/toolkit

All issues in getsentry/toolkit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.