Home / Servers / Sentry API / bulk_upsert_organization_code_mappings

Create or Update Organization Code Mappings in Bulk

An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.

Create or Update Organization Code Mappings in Bulk Create or update multiple repository path mappings for a project. Mappings with matching project, stack root, and source root are updated. [POST /api/0/organizations/{organization_id_or_slug}/code-mappings/bulk/]

Name on the gateway: sentry_api__bulk_upsert_organization_code_mappings · may change things.

Parameters

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the resource belongs to.
project requiredintegerThe ID or slug of the project to configure.
repository requiredstringThe repository name as it appears in Sentry.
mappings requiredarrayOne or more stack-root and source-root mappings (maximum 300).
providerstringOptional repository provider used to disambiguate or find the repository. If…
default_branchstringThe repository branch to use; inferred from the integration when omitted.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "sentry_api__bulk_upsert_organization_code_mappings",
  "arguments": {
    "organization_id_or_slug": "…",
    "project": 0,
    "repository": "…",
    "mappings": []
  }
}

Or connect the Sentry API server directly, which lists 272 tools including this one:

Run in your terminal
claude mcp add --transport http hj-sentry-api https://mcp.hjlabs.in/mcp/sentry-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create or update organization code mappings in bulk tool with organization_id_or_slug set to ….

More from Sentry API