Skip to main content
Glama

Sentry MCP

Official
by getsentry
search-issues.eval.ts2.66 kB
import { describeEval } from "vitest-evals"; import { FIXTURES, NoOpTaskRunner, ToolPredictionScorer } from "./utils"; // Note: This eval requires OPENAI_API_KEY to be set in the environment // The search_issues tool uses the AI SDK to translate natural language queries describeEval("search-issues", { data: async () => { return [ // Core test: Basic issue search { input: `Show me unresolved issues in ${FIXTURES.organizationSlug}`, expectedTools: [ { name: "find_organizations", arguments: {}, }, { name: "search_issues", arguments: { organizationSlug: FIXTURES.organizationSlug, naturalLanguageQuery: "unresolved issues", }, }, ], }, // Core test: Search with 'me' reference (tests whoami integration) { input: `Find issues assigned to me in ${FIXTURES.organizationSlug}`, expectedTools: [ { name: "find_organizations", arguments: {}, }, { name: "whoami", arguments: {}, }, { name: "search_issues", arguments: { organizationSlug: FIXTURES.organizationSlug, naturalLanguageQuery: "issues assigned to me", }, }, ], }, // Core test: Project-specific search { input: `Search for database errors in ${FIXTURES.organizationSlug}/${FIXTURES.projectSlug}`, expectedTools: [ { name: "find_organizations", arguments: {}, }, { name: "search_issues", arguments: { organizationSlug: FIXTURES.organizationSlug, projectSlugOrId: FIXTURES.projectSlug, naturalLanguageQuery: "database errors", }, }, ], }, // Core test: Complex natural language query { input: `Find critical production errors affecting more than 100 users in ${FIXTURES.organizationSlug}`, expectedTools: [ { name: "find_organizations", arguments: {}, }, { name: "search_issues", arguments: { organizationSlug: FIXTURES.organizationSlug, naturalLanguageQuery: "critical production errors affecting more than 100 users", }, }, ], }, ]; }, task: NoOpTaskRunner(), scorers: [ToolPredictionScorer()], threshold: 0.6, timeout: 30000, });

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