# fabric0de/sentry-mcp-server-zed architecture

> Architecture diagram of the GitHub repository fabric0de/sentry-mcp-server-zed, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fabric0de/sentry-mcp-server-zed
- Repository: https://github.com/fabric0de/sentry-mcp-server-zed

## Overview

This is a small Zed extension that adapts Zed’s context-server interface to the external `@sentry/mcp-server`. The workflow is: Zed requests the `sentry-mcp` command, the extension loads project settings and ensures the npm package is installed, then launches its Node entrypoint with the access token and optional host. The README documents using the server for Sentry tasks such as listing organizations and fetching unresolved issues. The server’s internal tools and Sentry API implementation are external to this repository and were not inspected.

Main entry points: [`src/lib.rs`](https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs) (Extension adapter), [`configuration`](https://github.com/fabric0de/sentry-mcp-server-zed/tree/main/configuration) (Setup configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_zed_integration["Zed integration"]
  node_extension["Extension adapter<br/>[lib.rs]"]
end

subgraph group_launch_configuration["Launch configuration"]
  node_settings["Server settings<br/>[lib.rs]"]
  node_package_setup["Package setup<br/>[lib.rs]"]
  node_configuration_resources["Setup configuration"]
end

node_user(("Agent user"))
node_zed["Zed agent"]
node_sentry_mcp["Sentry MCP server"]
node_sentry["Sentry service"]

node_user -->|"requests tools"| node_zed
node_zed -->|"starts context server"| node_extension
node_extension -->|"loads settings"| node_settings
node_extension -->|"ensures package"| node_package_setup
node_extension -->|"provides setup"| node_configuration_resources
node_extension -->|"launches Node entrypoint"| node_sentry_mcp
node_sentry_mcp -.->|"serves Sentry requests"| node_sentry

click node_extension "https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs"
click node_settings "https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs"
click node_package_setup "https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs"
click node_configuration_resources "https://github.com/fabric0de/sentry-mcp-server-zed/tree/main/configuration"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_extension,node_user toneBlue
class node_settings,node_package_setup,node_configuration_resources toneAmber
class node_zed,node_sentry toneIndigo
class node_sentry_mcp toneMint
```

## Components

### Zed integration

- [Extension adapter](https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs): `src/lib.rs`

### Launch configuration

- [Server settings](https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs): `src/lib.rs`
- [Package setup](https://github.com/fabric0de/sentry-mcp-server-zed/blob/main/src/lib.rs): `src/lib.rs`
- [Setup configuration](https://github.com/fabric0de/sentry-mcp-server-zed/tree/main/configuration): `configuration`

### Other components

- **Agent user**
- **Zed agent**
- **Sentry MCP server**
- **Sentry service**

## Connections

- Agent user → Zed agent: requests tools (evidence: `README.md`)
- Zed agent → Extension adapter: starts context server (evidence: `src/lib.rs`)
- Extension adapter → Server settings: loads settings (evidence: `src/lib.rs`)
- Extension adapter → Package setup: ensures package (evidence: `src/lib.rs`)
- Extension adapter → Setup configuration: provides setup (evidence: `src/lib.rs`)
- Extension adapter → Sentry MCP server: launches Node entrypoint (evidence: `src/lib.rs`)
- Sentry MCP server → Sentry service: serves Sentry requests (evidence: `README.md`)
