MemoryBrain › Guides › Fixing MCP errors

Your MCP server shows nothing in Codex or Claude Code because the client does not render cards

If your MCP tools tell the model the card has already been shown and nothing appears in Codex, the client does not render cards. The fix is to detect clients that do not advertise the UI extension and return them, as text, what the card would show.

By Carlos Moya. Seen and fixed on November 6, 2026 in Codex; the test uses a codex-mcp-client at version 0.165.0.

There is no error message: the symptom is that nothing appears. Our tools told the model the card had already been shown and not to say anything.

What happens

An onboarding tool returns a card (MCP Apps) and an instruction to the model like “the card has been shown, do not repeat it”. In a client that does not render cards, the user sees no card and the model says nothing either.

The cause

Our tools assumed every client renders cards. In Codex, in our tests, it does not. We treat Claude Code the same way (the same change covers it); the test only uses Codex.

The fix, step by step

  1. Detect whether the client renders cards

    In initialize, the client renders cards if it advertises io.modelcontextprotocol/ui in capabilities.extensions or it is ChatGPT (the client name contains “openai” or “chatgpt”: it may not advertise the extension).

  2. Remember the decision in the session

    If it does not render cards, return a session id with the prefix t-. On later requests, the prefix tells you how to answer without repeating the handshake.

  3. Return the content as text

    In the onboarding tools, if the session starts with t-, return the walkthrough as text so the model carries it in the chat, and do not say the card has been shown.

  4. Add two tests

    One with a client without the extension (the session starts with t- and “Se ha pintado” does not appear) and one with the extension or ChatGPT (the session has no prefix).

How to check it worked

Start a session with a test client that does not advertise the UI extension (ours: codex-mcp-client 0.165.0) and check the session id starts with t- and the tool returns the onboarding as text, without the phrase “Se ha pintado” (“it has been shown”). With the UI extension, or from ChatGPT, cards must still appear: another test checks that.

If it was not this

If your client advertises the UI extension and still does not render, this fix does not apply; we have not tested that.

Frequently asked questions

Does this happen in Claude Code?

The fix treats any client that does not advertise the UI extension the same way, but our test only uses Codex.

Why not always return text?

Because in ChatGPT and clients with the extension the card renders and the text would be redundant.

Where it happened to us

These errors came up while building MemoryBrain, a memory for ChatGPT and Claude on a remote MCP server. If you want to see the server working, there is a demo with no account.

Sources