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
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
project required | integer | The ID or slug of the project to configure. |
repository required | string | The repository name as it appears in Sentry. |
mappings required | array | One or more stack-root and source-root mappings (maximum 300). |
provider | string | Optional repository provider used to disambiguate or find the repository. If… |
default_branch | string | The 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:
{
"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:
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 ….