Development
Command
/code-mappings
```bash
Install
> /plugin marketplace add getsentry/toolkit > /plugin install sentry-mcp@sentry-mcp
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/code-mappings
Context preview
What this command does when you run it.
```bash
Command definition
code-mappings.mdExamples
# Upload code mappings from a JSON file sentry code-mappings upload mappings.json # Specify repository explicitly sentry code-mappings upload mappings.json --repo owner/repo # Specify repository and default branch sentry code-mappings upload mappings.json --repo owner/repo --default-branch develop # Output as JSON sentry code-mappings upload mappings.json --json
Input Format
The JSON file must contain an array of objects with `stackRoot` and `sourceRoot`:
[
{ "stackRoot": "com/example/module", "sourceRoot": "src/main/java/com/example/module" },
{ "stackRoot": "com/example/other", "sourceRoot": "src/main/java/com/example/other" }
]Important Notes
- Repository name and default branch are **auto-detected** from git remotes if
not provided via `--repo` and `--default-branch`.
- Requires an Organization Token with `org:ci` scope.
- Mappings are uploaded in batches of 300 per API request.
Ships withtoolkit
Sentry's MCP service is primarily designed for human-in-the-loop coding agents. Our tool selection and priorities are focused on developer workflows and debugging use cases, rather than providing a general-purpose MCP server for all Sentry functionality.
Get the whole plugin
Stats
912
Stars
159
Forks
Active
Maintenance
TypeScript
Language
1h ago
Last commit
1y ago
Created
Repo: getsentry/sentry-mcp
Other commands on toolkit.
Command
Command
Command
explore
Enter explore mode - think through ideas, investigate problems, clarify requirements
Command
propose
Propose a new change - create it and generate all artifacts in one step
Command
Command

