inspector/cli
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nathan Heaps 9e47d7d3c1 fix: correct stdout buffering issues in spawned processes
Adds stdio inheritance to prevent Node.js from dropping console output after 8192 characters due to premature stdout pipe closure before output finishes flushing. Without this, calls like this would truncate after 8192 characters, leading to broken json output:

```
npx --node-options=--inspect -y @modelcontextprotocol/inspector --cli --config .mcp.json --server notion --method tools/list
```

```
# notion mcp server
    "notion": {
      "//": "doppler needs to expose OPENAPI_MCP_HEADERS (and NOTION_TOKEN within it)",
      "command": "bash",
      "args": [
        "-c",
        "doppler run -p 'mcp' -c \"user_${MCP_USER:-$USER}\" -- npx -y @notionhq/notion-mcp-server"
      ]
    },
```

You can see this in their [openapi spec](https://github.com/makenotion/notion-mcp-server/blob/main/scripts/notion-openapi.json), which powers their MCP server.
2025-08-20 21:06:06 -04:00
..
scripts Update test to match new server selection behavior 2025-08-07 21:02:29 +01:00
src fix: correct stdout buffering issues in spawned processes 2025-08-20 21:06:06 -04:00
package.json bump version to 0.16.5 2025-08-18 11:37:41 -04:00
tsconfig.json Add CLI and config file support 2025-03-10 20:19:23 -04:00