Skip to content

Unwrap update-a-block payload before forwarding - #352

Open
ayyYoSam wants to merge 1 commit into
makenotion:mainfrom
ayyYoSam:fix/342-unwrap-update-block-payload
Open

Unwrap update-a-block payload before forwarding#352
ayyYoSam wants to merge 1 commit into
makenotion:mainfrom
ayyYoSam:fix/342-unwrap-update-block-payload

Conversation

@ayyYoSam

@ayyYoSam ayyYoSam commented Sep 5, 2026

Copy link
Copy Markdown

Description

Fixes #342.

This updates the HTTP client to unwrap the type payload for the update-a-block operation before forwarding the request to the Notion API.

The Notion API expects block-type properties (such as paragraph and to_do) at the root of the request body, while the current MCP request shape nests them under type. The proxy now preserves the existing tool interface while sending the API-compatible request body.

Screenshot With Test

Commands:

$env:NODE_ENV="test"; npx vitest run
npx tsc --noEmit
npx prettier --write src/openapi-mcp-server/client/http-client.ts
image

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.

API-update-a-block 400s for every block type: block-type key nested under type instead of body root

1 participant