Skip to content

Incompatible with Notion Agent: strict schema validation rejects unknown fields (nonce, notion_user_id, prompt) #226

@darkangelpraha

Description

@darkangelpraha

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

  1. In Notion Agent, add a custom MCP server: https://mcp.supabase.com/mcp?project_ref=<your_ref>
  2. Attempt to connect
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions