PipedreamHQ / PipedreamHQ/pipedream

[BUG] MCP Notion create-page tool fails with 'Not in configuration mode: TOOL_CONFIGURATION_COMPLETED' error

Open
#19,708 0 comments 0 reactions 0 assignees View on GitHub
bug mcp triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
101

Description

**Describe the bug**

When using the Notion MCP integration, the `notion-create-page` tool fails with an internal configuration error. Other Notion tools like `notion-search` and `notion-append-block` work correctly.

**To Reproduce**

1. Connect Notion via Pipedream MCP
2. Call the `notion-create-page` tool with an instruction parameter
3. Example input:
```json
{
"instruction": "Create a new page titled \"test\" in the user's Notion workspace. The page should be created as a standalone page in the workspace (not as a child of another page). Use simple formatting with just the title \"test\"."
}
```
4. Receive error:
```
AI_ToolExecutionError: Error executing tool configure_props_notion-create-page_props: Not in configuration mode: TOOL_CONFIGURATION_COMPLETED
```

**Expected behavior**

The page should be created successfully in Notion.

**Technical Details**

- The error suggests Pipedream's internal tool configuration state machine has an issue
- The tool seems to be trying to configure properties when configuration is already completed
- Other Notion tools work correctly:
- `notion-search` ✅
- `notion-append-block` ✅
- `notion-create-page` ❌

**Test Results**

```bash
# This works:
curl -X POST "https://remote.mcp.pipedream.net" \
-d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"notion-append-block","arguments":{"instruction":"Append a paragraph to page X"}},"id":1}'
# Response: Success

# This fails:
curl -X POST "https://remote.mcp.pipedream.net" \
-d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"notion-create-page","arguments":{"instruction":"Create a page titled test"}},"id":1}'
# Response: AI_ToolExecutionError: Not in configuration mode: TOOL_CONFIGURATION_COMPLETED
```

**Environment**

- MCP Client: `@langchain/mcp-adapters` v0.6.0
- Transport: HTTP (Streamable HTTP)
- Affected integration: `notion`
- Affected tools: `notion-create-page` (possibly other creation tools)

**Related Issues**

- #19690 - Similar MCP integration issue with Microsoft Outlook Calendar

**Additional context**

The error originates from within Pipedream's MCP server infrastructure during the tool property configuration phase. The internal tool `configure_props_notion-create-page_props` seems to be called when it shouldn't be.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce the failure against https://remote.mcp.pipedream.net with the provided notion-create-page request, then trace the MCP server's tool property configuration phase and compare it with notion-search and notion-append-block. Done means standalone page creation succeeds without the TOOL_CONFIGURATION_COMPLETED error while the other tools remain functional.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.