Problem
When Notion Agent connects to the hosted Supabase MCP server (https://mcp.supabase.com/mcp?project_ref=...), the connection fails immediately with:
{"message": "Unrecognized key(s) in object: 'nonce', 'notion_user_id', 'prompt'"}
Notion Agent sends these extra fields during MCP initialization. The Supabase MCP server uses strict schema validation and rejects unknown keys.
Steps to Reproduce
- In Notion Agent, add a custom MCP server:
https://mcp.supabase.com/mcp?project_ref=<your_ref>
- Attempt to connect
- Error appears in the browser
Expected Behavior
The MCP server should either ignore unknown keys (strip them) or accept them gracefully, maintaining compatibility with MCP clients that send extra fields.
Actual Behavior
Connection fails immediately.
Possible Fix
Change Zod schema validation from .strict() to .strip() (or add .passthrough()) in the MCP initialization handler so that unknown fields are silently ignored rather than causing an error.
Related
This is also filed on the Notion side: makenotion/notion-mcp-server#221
Problem
When Notion Agent connects to the hosted Supabase MCP server (
https://mcp.supabase.com/mcp?project_ref=...), the connection fails immediately with:Notion Agent sends these extra fields during MCP initialization. The Supabase MCP server uses strict schema validation and rejects unknown keys.
Steps to Reproduce
https://mcp.supabase.com/mcp?project_ref=<your_ref>Expected Behavior
The MCP server should either ignore unknown keys (strip them) or accept them gracefully, maintaining compatibility with MCP clients that send extra fields.
Actual Behavior
Connection fails immediately.
Possible Fix
Change Zod schema validation from
.strict()to.strip()(or add.passthrough()) in the MCP initialization handler so that unknown fields are silently ignored rather than causing an error.Related
This is also filed on the Notion side: makenotion/notion-mcp-server#221