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 Solved Qt Creator and other tools
10 Posts 3 Posters 464 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.
  • Dean_WittmannD Offline
    Dean_WittmannD 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
    • davecotterD Offline
      davecotterD 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
      • Dean_WittmannD Offline
        Dean_WittmannD 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
        • Dean_WittmannD 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. 🙏

          davecotterD 1 Reply Last reply
          2
          • davecotterD Offline
            davecotterD 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
            • Dean_WittmannD Offline
              Dean_WittmannD Offline
              Dean_Wittmann
              wrote last edited by
              #6

              I got it to work with help from Dave Cotter. I used his version of the MCP Server and had Warp Terminal and it's Agent to modify the code to do essentially the same thing mentioned by @cristian-adam above. npx @modelcontextprotocol/inspector on Windows 11 shows that the transport is Streamable HTTP with a URL of http://localhost:3001/sse through a Proxy. Warp Terminal now shows the Qt Creator MCP Server along with the 20+ commands that it supports. I've given the code changes to Dave and I'm waiting to hear back to see if he's going to integrate that into the GitHub repository. If anyone needs the changes that I have that made it work, I'm happy to share. Thanks.

              1 Reply Last reply
              0
              • Dean_WittmannD Dean_Wittmann has marked this topic as solved
              • davecotterD Offline
                davecotterD Offline
                davecotter
                wrote last edited by
                #7

                i do not have access to the Qt repo. i've tried several times to email them to tell them to pull my updates, but i never hear back.

                1 Reply Last reply
                0
                • cristian-adamC cristian-adam

                  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. 🙏

                  davecotterD Offline
                  davecotterD Offline
                  davecotter
                  wrote last edited by
                  #8

                  @cristian-adam said in MCP Server and Warp Terminal, Connection Issue:

                  We also have now an ACP Client

                  wait what? okay how do i use that? do you mean i can open a chat window from inside Qt Creaor and then talk to all the LLMs provided by my Cursor subscription?
                  if so, how do i do that? note i do not compile Qt nor Qt Creator, i'm expecting to just 'update' like i normally do

                  yes? please?

                  cristian-adamC 1 Reply Last reply
                  0
                  • davecotterD davecotter

                    @cristian-adam said in MCP Server and Warp Terminal, Connection Issue:

                    We also have now an ACP Client

                    wait what? okay how do i use that? do you mean i can open a chat window from inside Qt Creaor and then talk to all the LLMs provided by my Cursor subscription?
                    if so, how do i do that? note i do not compile Qt nor Qt Creator, i'm expecting to just 'update' like i normally do

                    yes? please?

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

                    @davecotter said in MCP Server and Warp Terminal, Connection Issue:

                    @cristian-adam said in MCP Server and Warp Terminal, Connection Issue:

                    We also have now an ACP Client

                    wait what? okay how do i use that? do you mean i can open a chat window from inside Qt Creaor and then talk to all the LLMs provided by my Cursor subscription?

                    Yes. All the https://agentclientprotocol.com/get-started/registry would be able to talk to Qt Creator.

                    if so, how do i do that? note i do not compile Qt nor Qt Creator, i'm expecting to just 'update' like i normally do

                    yes? please?

                    We have Qt Creator 20 snapshots. No need to compile Qt Creator. Enable the ACP Client plugin, go to Settings > AI > ACP Servers and then configure Cursor. You would have to figure out the Launch command and the Launch arguments.

                    The UI is far from final 😅

                    1 Reply Last reply
                    3
                    • davecotterD Offline
                      davecotterD Offline
                      davecotter
                      wrote last edited by
                      #10

                      Okay, well, i'll wait until it gets into the "Preview" section of the MaintenanceTool installer app.But this is AWESOME news!

                      1 Reply Last reply
                      0

                      • Login

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