From 14ace12c56c686ee84f6f996be3aaca8e98e8b33 Mon Sep 17 00:00:00 2001 From: n8tron450 <256865342+n8tron450@users.noreply.github.com> Date: Wed, 17 Jun 2026 14:46:41 +0000 Subject: [PATCH] fix(schema): accept relative permalinks from self-hosted Sentry IssueSchema.permalink used z.string().url(), which rejects the relative permalinks (e.g. "/organizations//issues//") that self-hosted Sentry returns. This makes search_issues / get_issue fail with "Invalid url" on self-hosted instances. permalink is display-only and never parsed as a URL, so relax it to z.string(). Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/mcp-core/src/api-client/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mcp-core/src/api-client/schema.ts b/packages/mcp-core/src/api-client/schema.ts index ca2392a0..647621e1 100644 --- a/packages/mcp-core/src/api-client/schema.ts +++ b/packages/mcp-core/src/api-client/schema.ts @@ -702,7 +702,7 @@ export const IssueSchema = z lastSeen: z.string().datetime().nullable(), count: z.union([z.string(), z.number()]), userCount: z.union([z.string(), z.number()]), - permalink: z.string().url(), + permalink: z.string(), // relative on self-hosted Sentry; .url() rejects it (permalink is display-only) project: ProjectSchema, platform: z.string().nullable().optional(), status: z.string(),