Merged
Conversation
commit: |
mattrossman
approved these changes
May 1, 2026
Collaborator
mattrossman
left a comment
There was a problem hiding this comment.
Preview build tested working on my end 👍
Merged
gregnr
pushed a commit
that referenced
this pull request
May 1, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>mcp-server-supabase: 0.8.1</summary> ## [0.8.1](mcp-server-supabase-v0.8.0...mcp-server-supabase-v0.8.1) (2026-05-01) ### Bug Fixes * tools not loading on stdio server ([#269](#269)) ([29acd6c](29acd6c)), closes [#261](#261) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: supabase-community-releaser[bot] <266066903+supabase-community-releaser[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The docs Content API GraphQL response schema (used for the
search_docstool) used a discriminated union withz.undefined()to model success/error branches. There were 2 issues:z.undefined()on object properties requires the key to be explicitly present (and set asundefined). Absent keys failed validation, which broke tool loadingdataanderrorsat the same time (partial results)Fix
This PR replaces the union with a flat schema.
datauses.nullish()because the spec allows it to be either absent (validation errors before execution) ornull(resolver errors on non-nullable fields).errorsuses.optional()since it's simply absent on success.How to test
Configure Claude Code with the following MCP server config:
{ "mcpServers": { "supabase-stdio": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase@https://pkg.pr.new/supabase-community/supabase-mcp/@supabase/mcp-server-supabase@bbbe8ba" ], "env": { "SUPABASE_ACCESS_TOKEN": "<pat>" } } } }Run the
claudeCLI, enter/mcp, selectsupabase-stdio.Resolves #261