Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. MCP Server and Warp Terminal, Connection Issue
Qt 6.11 is out! See what's new in the release blog

MCP Server and Warp Terminal, Connection Issue

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 143 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dean_Wittmann
    wrote last edited by
    #1

    I've enabled the MCP Server in About Plugins in Qt Creator 19.0.0 and I can connect to it via the MCP Inspector via this command in a command prompt window:

    npx @modelcontextprotocol/inspector

    which downloads and initiates the MCP Inspector in your browser. I was successful in connecting and using tools to open a file in Qt Creator.

    When I add this JSON configuration in Warp's Settings / MCP Servers / Add:

    {
    "QtCreator": {
    "type": "sse",
    "url": "http://127.0.0.1:3001/sse"
    }
    }

    and Save the MCP Server configuration with the Save button, I get this error on the screen and in the log:

    2026-04-02 19:30:14.785 | [error] MCP: Failed to connect to server: Transport creation error: Unexpected status code: 204 No Content

    Any help would be appreciated.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      davecotter
      wrote last edited by
      #2

      well, i use Cursor, so i do NOT know if it is the exact same config, but what i have in Cursor is this:

          "qt-creator": {
            "url": "http://localhost:3001",
            "transport": "http"
          },
      
      1 Reply Last reply
      1
      • D Offline
        D Offline
        Dean_Wittmann
        wrote last edited by
        #3

        Thanks Dave,
        I tried your suggestion and it still gives me the same error. I think it's expecting a reply that it's not getting. Warp Terminal is not just a terminal, it is the glue that ties your MCP Server to the LLM's. It supports multiple LLM's and is a terminal / IDE environment.

        cristian-adamC 1 Reply Last reply
        0
        • D Dean_Wittmann

          Thanks Dave,
          I tried your suggestion and it still gives me the same error. I think it's expecting a reply that it's not getting. Warp Terminal is not just a terminal, it is the glue that ties your MCP Server to the LLM's. It supports multiple LLM's and is a terminal / IDE environment.

          cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote last edited by
          #4

          See the comments of Qt Creator 19 released for details of a possible workaround.

          alt text 钟勇
          After testing, it turned out that the real reason is quite simple: VSCode does not support MCP servers using the SSE protocol.
          However, it does support HTTP. Therefore, I had Copilot write a proxy (Streamable HTTP ↔ SSE), and now VSCode can interact with QtCreator normally.

          VS Code uses the Streamable HTTP protocol (sending requests via POST and receiving results in the HTTP response body), while Qt Creator uses the SSE protocol (establishing an event stream via GET, sending requests via POST, and receiving responses asynchronously through the SSE stream).

          What the proxy does:

          On startup: Establishes a persistent SSE connection with Qt Creator, with a background thread continuously reading the event stream and routing responses to the corresponding waiters based on their id.

          When receiving a POST request from VS Code:

          Parses the JSON-RPC message and extracts the id.

          Forwards it to Qt Creator (POST /sse).

          If there is an id (it's a request): Blocks and waits for the response with the matching id in the SSE stream, then returns it as the HTTP response body to VS Code.

          If there is no id (it's a notification): Forwards it directly and returns a 202.

          When receiving a GET request from VS Code: Provides an SSE stream and forwards notifications actively pushed by Qt Creator.

          In short: VS Code [Streamable HTTP] ↔ Proxy ↔ [SSE] Qt Creator

          Alternatively you can try Qt Creator 20 snapshots. In Qt Creator 20 we rewrote the network connection part. We also have now an ACP Client that allows you to chat with any of these ACP compatible agents e.g. Claude Agent, Cursor, Codex CLI, or OpenCode.

          Lastly Thank you @davecotter for the initial work with the mcp server plugin. Without this we wouldn't have all of this. 🙏

          1 Reply Last reply
          2
          • D Offline
            D Offline
            davecotter
            wrote last edited by
            #5

            this is what i did, and it started working. first make a local branch of my mcp project, i put it at Z:\depot.
            build and install the mcp plugin, then run Qt Creator. when it is running, then issue this command:
            Screenshot 2026-04-04 at 6.13.36 PM.png

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved