Skip to main content
Glama

Sentry MCP

Official
by getsentry
constants.ts3.38 kB
/** * Constants for Sentry MCP server. * * Defines platform and framework combinations available in Sentry documentation. */ /** * MCP Server identification */ export const MCP_SERVER_NAME = "Sentry MCP" as const; /** * Allowed region domains for sentry.io * Only these specific domains are permitted when using Sentry's cloud service * This is used to prevent SSRF attacks by restricting regionUrl to known domains */ export const SENTRY_ALLOWED_REGION_DOMAINS = new Set([ "sentry.io", "us.sentry.io", "de.sentry.io", ]); /** * Common Sentry platforms that have documentation available */ export const SENTRY_PLATFORMS_BASE = [ "javascript", "python", "java", "dotnet", "go", "php", "ruby", "android", "apple", "unity", "unreal", "rust", "elixir", "kotlin", "native", "dart", "godot", "nintendo-switch", "playstation", "powershell", "react-native", "xbox", ] as const; /** * Platform-specific frameworks that have Sentry guides */ export const SENTRY_FRAMEWORKS: Record<string, string[]> = { javascript: [ "nextjs", "react", "gatsby", "remix", "vue", "angular", "hono", "svelte", "express", "fastify", "astro", "bun", "capacitor", "cloudflare", "connect", "cordova", "deno", "electron", "ember", "nuxt", "solid", "solidstart", "sveltekit", "tanstack-react", "wasm", "node", "koa", "nestjs", "hapi", ], python: [ "django", "flask", "fastapi", "celery", "tornado", "pyramid", "aiohttp", "anthropic", "airflow", "aws-lambda", "boto3", "bottle", "chalice", "dramatiq", "falcon", "langchain", "litestar", "logging", "loguru", "openai", "quart", "ray", "redis", "rq", "sanic", "sqlalchemy", "starlette", ], dart: ["flutter"], dotnet: [ "aspnetcore", "maui", "wpf", "winforms", "aspnet", "aws-lambda", "azure-functions", "blazor-webassembly", "entityframework", "google-cloud-functions", "extensions-logging", "log4net", "nlog", "serilog", "uwp", "xamarin", ], java: [ "spring", "spring-boot", "android", "jul", "log4j2", "logback", "servlet", ], go: [ "echo", "fasthttp", "fiber", "gin", "http", "iris", "logrus", "negroni", "slog", "zerolog", ], php: ["laravel", "symfony"], ruby: ["delayed_job", "rack", "rails", "resque", "sidekiq"], android: ["kotlin"], apple: ["ios", "macos", "watchos", "tvos", "visionos"], kotlin: ["multiplatform"], } as const; /** * All valid guides for Sentry docs search filtering. * A guide can be either a platform (e.g., 'javascript') or a platform/framework combination (e.g., 'javascript/nextjs'). */ export const SENTRY_GUIDES = [ // Base platforms ...SENTRY_PLATFORMS_BASE, // Platform/guide combinations ...Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, guides]) => guides.map((guide) => `${platform}/${guide}`), ), ] as const; export const DEFAULT_SCOPES = [ "org:read", "project:read", "team:read", "event:read", ] as const; // Note: All scopes are now exported from permissions.ts to avoid pulling this // heavy constants module into scope-only consumers.

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