Skip to content

Penpot MCP calls hang in Codex App, while the same server works via direct MCP HTTP client #16086

Open

Description

@aitormendez

What version of the Codex App are you using (From “About Codex” dialog)?

Versión 26.325.31654 (1272)

What subscription do you have?

Plus

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

When using the official Penpot MCP server from the official Penpot repository, MCP tool calls from the Codex App often hang indefinitely, even for the smallest possible call.

The setup appears to be correct:

  • Penpot MCP is started from the official penpot/mcp directory with pnpm run bootstrap
  • the plugin server is available on http://localhost:4400
  • the MCP server exposes:
    • http://localhost:4401/mcp
    • http://localhost:4401/sse
  • the Penpot plugin UI shows Connected to MCP server

However, Codex App MCP calls to Penpot freeze or never return, including a minimal call equivalent to:

return { ok: true };

By contrast, the same Penpot MCP server works correctly when called through a direct Node client using @modelcontextprotocol/sdk against http://localhost:4401/mcp.

This suggests the problem is in Codex App’s MCP integration path, not in Penpot itself.

What steps can reproduce the bug?

  1. Use the official Penpot MCP from the official Penpot repo.

  2. Start it with:

    cd /Users/aitor/penpot/mcp
    pnpm run bootstrap

  3. Open a Penpot file in the browser.

  4. Load the Penpot MCP plugin from:

    http://localhost:4400/manifest.json

  5. Click Connect to MCP server in the plugin UI.

  6. Configure Codex App to use Penpot MCP through mcp-remote, for example:

    [mcp_servers.penpot]
    command = "npx"
    args = ["-y", "mcp-remote", "http://localhost:4401/sse", "--allow-http"]
    startup_timeout_sec = 30.0

  7. Restart Codex App.

  8. Trigger a minimal Penpot MCP call from Codex App, such as execute_code with:

    return { ok: true };

  9. Observe that the call hangs or never returns.

As a control test, run a direct MCP HTTP client against http://localhost:4401/mcp; the same minimal execute_code call succeeds immediately.

What is the expected behavior?

Codex App should successfully execute Penpot MCP tool calls, including minimal execute_code calls, without hanging.

If the direct MCP client works against the same Penpot server and connected plugin instance, Codex App should also be able to complete the same call reliably.

Additional information

Relevant observations:

  • This was tested with the official Penpot MCP, not a third-party implementation.
  • The Penpot server starts cleanly and logs the MCP endpoints correctly.
  • The Penpot plugin reports Connected to MCP server.
  • A direct client using @modelcontextprotocol/sdk and StreamableHTTPClientTransport against http://localhost:4401/mcp succeeds.
  • The failure appears specific to Codex App’s integrated MCP call path.

If useful, I can also provide:

  • the exact direct client test script
  • Penpot MCP server logs
  • the Codex MCP config used for reproduction

Activity

  1. added
    app
    on Mar 28, 2026
  2. added
    bug
    mcp
    tool-calls
    on Mar 28, 2026
  3. aitormendez commented on Mar 28, 2026

    @aitormendez
    Author

    This may be related to #15365.

    In my case, the failing MCP server is the official Penpot MCP. The important detail is that the same server works correctly through a direct MCP HTTP client on the same machine, but Codex App hangs on the integrated MCP call path.

  4. removed
    tool-calls
    app
    on Mar 28, 2026
  5. farhantawfeeq56 commented on Jun 22, 2026

    @farhantawfeeq56

    Somebody please fix this!

  6. klmvira1-ux commented on Jul 21, 2026

    @klmvira1-ux

    I can reproduce a very similar issue on Windows using a different Streamable HTTP MCP server (MP Manager).

    The behavior is different in one important detail:

    • initialize succeeds;
    • the server advertises the tools capability;
    • tools/list never completes;
    • has_cached_tools always remains false;
    • no mcp__... tools ever appear;
    • every MCP startup task is cancelled when startup_timeout_sec expires.

    Increasing the startup timeout from 30 seconds to 120 seconds only delays the cancellation to approximately 120 seconds.

    The same server works correctly in MCP Inspector using the same URL, headers and network.

    There are no HTTP, TLS or transport errors in the logs.

    This looks related because both issues affect Streamable HTTP MCP servers where direct clients work correctly but Codex's integrated MCP path does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmcpperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions