Skip to content

fix(api, tools): Add 'array' to TraceItemAttributeType enum - #1273

Open
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/add-array-attribute-type
Open

fix(api, tools): Add 'array' to TraceItemAttributeType enum#1273
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/add-array-attribute-type

Conversation

@sentry

@sentry sentry Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

This PR addresses a ZodError that occurred when sentry-mcp attempted to validate trace item attributes fetched from the Sentry API. The Sentry API recently expanded its ColumnType enum to include 'array', but the corresponding Zod schemas and TypeScript types in sentry-mcp were not updated.

Specifically, the following changes were made:

  1. packages/mcp-core/src/api-client/client.ts: Updated TraceItemAttributeTypeSchema (line 349) to include 'array' in its z.enum definition.
  2. packages/mcp-core/src/tools/support/search-events/utils.ts: Updated the local traceItemAttributeTypeSchema (line 953) to include 'array' in its z.enum definition.
  3. packages/mcp-core/src/api-client/client.ts: Updated the TypeScript type TraceItemAttributeType (line 293) to include 'array' as a valid literal type.

These changes ensure that sentry-mcp correctly validates and type-checks trace item attributes, preventing ZodError when the Sentry API returns attributes of type 'array', and resolves the CI type-checking failure.

Fixes MCP-SERVER-G89

Comment @sentry <feedback> on this PR to have Autofix iterate on the changes.

This PR was automatically generated by Sentry. You can adjust this setting at any time.

Comment thread packages/mcp-core/src/tools/support/search-events/utils.ts
@sentry sentry Bot changed the title fix(api): Add 'array' to TraceItemAttributeTypeSchema fix(api, tools): Add 'array' to TraceItemAttributeType enum Aug 27, 2026
@sentry
sentry Bot marked this pull request as ready for review August 27, 2026 22:55
@sentry
sentry Bot requested a review from dcramer August 27, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants