Skip to main content
Glama
zed.tsx2.06 kB
import CodeSnippet from "../../ui/code-snippet"; import { KeyIcon } from "../../ui/key-icon"; import { NPM_REMOTE_NAME } from "../../../../constants"; interface ZedInstructionsProps { transport: "cloud" | "stdio"; } export function ZedInstructions({ transport }: ZedInstructionsProps) { const mcpServerName = import.meta.env.DEV ? "sentry-dev" : "sentry"; if (transport === "cloud") { const endpoint = new URL("/mcp", window.location.href).href; const coreConfig = { command: "npx", args: ["-y", `${NPM_REMOTE_NAME}@latest`, endpoint], }; const zedInstructions = JSON.stringify( { context_servers: { [mcpServerName]: coreConfig, settings: {}, }, }, undefined, 2, ); return ( <> <ol> <li> <strong> <KeyIcon>⌘</KeyIcon> + <KeyIcon>,</KeyIcon> </strong>{" "} to open Zed settings. </li> <li> <CodeSnippet noMargin snippet={zedInstructions} /> </li> </ol> </> ); } // Stdio transport const defaultEnv = { SENTRY_ACCESS_TOKEN: "sentry-user-token", OPENAI_API_KEY: "your-openai-key", } as const; const coreConfig = { command: "npx", args: ["@sentry/mcp-server@latest"], env: defaultEnv, }; return ( <> <ol> <li> <strong> <KeyIcon>⌘</KeyIcon> + <KeyIcon>,</KeyIcon> </strong>{" "} to open Zed settings. </li> <li> <CodeSnippet noMargin snippet={JSON.stringify( { context_servers: { [mcpServerName]: { ...coreConfig, env: { ...coreConfig.env, }, }, settings: {}, }, }, undefined, 2, )} /> </li> </ol> </> ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/getsentry/sentry-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server