Repository navigation
ref(mcp): Call shared client key, repository, and onboarding endpoints - #1834
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Moves the client key, repository, code mapping, and agentic onboarding status endpoints from SentryApiService into toolkit-core's shared API client, as is. SentryApiService calls them with its Zod schemas.
sentry-junior
Bot
force-pushed
the
ref/shared-project-settings-endpoints
branch
from
November 3, 2026 10:34
9dab7ae to
c5db98c
Compare
BYK
approved these changes
Nov 3, 2026
BYK
enabled auto-merge (squash)
November 3, 2026 10:34
BYK
pushed a commit
that referenced
this pull request
Nov 3, 2026
Task 8.4 of the shared API client plan ([#1669](#1669)). This is stacked on #1834. This moves the dashboard and release endpoints from `SentryApiService` into `toolkit-core`'s `api-client/endpoints/`. `SentryApiService` calls them with its Zod schemas. The code moves as is. - `endpoints/dashboards`: `listDashboards` (one page, with the next cursor) and `getDashboard`. - `endpoints/releases`: `listReleases`, `getRelease`, `listReleaseDeploys`, `listReleaseCommits`, and `getEventCommitters`. With a project, release reads still go to the project's endpoints, otherwise to the organization's. - `api-path` gains `withQuery`, for the path-plus-optional-query pattern the wrappers repeat. `getOrganization` and `getProject` use it too; the URLs they send don't change. `@sentry/api` has no operation for the project-scoped release details route or for event committers, so those wrappers stay hand-written. **One change in behaviour:** as with #1741, a response that fails its schema now throws the shared `ApiResponseValidationError` instead of a `ZodError`. Checked with `pnpm run tsc`, `pnpm run lint`, `pnpm run docs:check`, and the toolkit-core, mcp-core, mcp-server bundle, and mcp-cloudflare tests. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Ab061171f2ec2e6cf6f09a6828cadc9fa --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Ab061171f2ec2e6cf6f09a6828cadc9fa) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ab061171f2ec2e6cf6f09a6828cadc9fa/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 8.4 of the shared API client plan (#1669). This is stacked on #1828.
This moves the project setup endpoints from
SentryApiServiceintotoolkit-core'sapi-client/endpoints/.SentryApiServicecalls them with its Zod schemas. The code moves as is.endpoints/client-keys:listClientKeys,createClientKey, andupdateClientKey.updateClientKeystill sends only the fields that are set, and keeps an explicitrateLimit: null.SentryApiService.updateClientKeynow takes the sharedUpdateClientKeyParamstype, and its local request types are deleted.endpoints/repositories:listRepositories, which walks every page, andlinkProjectRepository, which sends the bulk code-mapping POST with one root mapping.endpoints/organizationsgainsupdateAgenticOnboardingStatus.@sentry/apihas no operation forPOST /organizations/{org}/onboarding/agent/status/, so that wrapper will stay hand-written.One change in behaviour: as with #1741, a response that fails its schema now throws the shared
ApiResponseValidationErrorinstead of aZodError.via @BYK.
--
View Session [Sentry]