Home / Servers / Sentry API / get_project_stacktrace_link
Get a Source Code Link for a Stack Trace Frame
An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.
Get a Source Code Link for a Stack Trace Frame Resolve a stack trace filename to its linked source file using the project's code mappings and connected source code integrations. [GET /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/stacktrace-link/]
Name on the gateway: sentry_api__get_project_stacktrace_link · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
project_id_or_slug required | string | The ID or slug of the project the resource belongs to.… |
file required | string | The file path from the stack trace frame. |
platform | string | The platform associated with the frame. |
absPath | string | The absolute path of the stack frame, if known. |
commitId | string | The commit ID associated with the event. |
sdkName | string | The SDK name associated with the event. |
module | string | The module name, if known. |
package | string | The package name, if known. |
lineNo | string | The source line number, if known. |
groupId | string | The issue ID, if known. |
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__get_project_stacktrace_link",
"arguments": {
"organization_id_or_slug": "…",
"project_id_or_slug": "…",
"file": "…"
}
}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 get a source code link for a stack trace frame tool with organization_id_or_slug set to ….