Skip to content

fix(docs): Omit empty guide from searches - #1158

Merged
dcramer merged 1 commit into
mainfrom
fix/search-docs-optional-guide
Jul 15, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/search-docs-optional-guide

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Treat an omitted search_docs guide as an absent filter instead of converting it to null. This keeps the MCP tool contract aligned with /api/search, which accepts an omitted guide but rejects null.

Optional guide contract

The generated schema now exposes guide as an optional enum without a nullable default. Regression coverage verifies that calls without guide omit it from the serialized request while filtered searches remain unchanged.

Fixes #788

Requested by immutable dcramer via Junior.

--

View Junior Session in Sentry

Model an absent guide as an omitted optional parameter so search_docs no longer sends null to the documentation search API.

Fixes #788

Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: immutable dcramer <[email protected]>
@dcramer
dcramer marked this pull request as ready for review July 15, 2026 17:49
@dcramer
dcramer merged commit 3956553 into main Jul 15, 2026
21 checks passed
@dcramer
dcramer deleted the fix/search-docs-optional-guide branch July 15, 2026 17:53
BYK pushed a commit that referenced this pull request Sep 23, 2026
…1158)

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Miguel Betegón <[email protected]>
Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
BYK pushed a commit that referenced this pull request Sep 30, 2026
…1158)

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Miguel Betegón <[email protected]>
Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya pushed a commit to mr-danya/sentry-mcp that referenced this pull request Oct 6, 2026
…etsentry#1158)

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Miguel Betegón <[email protected]>
Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
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.

search_docs fails with 400 when guide parameter is omitted

1 participant