Home / Servers / Sentry API / update_organization_code_mapping
Update an Organization Code Mapping
An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.
Update an Organization Code Mapping Update the repository, project, or path settings for a code mapping. [PUT /api/0/organizations/{organization_id_or_slug}/code-mappings/{config_id}/]
Name on the gateway: sentry_api__update_organization_code_mapping · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
config_id required | integer | The ID of the code mapping to update. |
repository_id required | integer | The ID of a repository belonging to the installed integration. |
project_id required | integer | The ID of the project to associate with the code mapping. |
stack_root required | string | The path prefix to replace in stack trace filenames. |
source_root required | string | The repository path prefix to substitute for the stack trace prefix. |
default_branch | string | The default branch to use when resolving source files. May be empty for… |
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__update_organization_code_mapping",
"arguments": {
"organization_id_or_slug": "…",
"config_id": 0,
"repository_id": 0,
"project_id": 0,
"stack_root": "…",
"source_root": "…"
}
}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 update an organization code mapping tool with organization_id_or_slug set to ….