Can't chat with agent with enabled mcp server

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I try to use many model, but get errors. If i disable my mcp server - than chat works, see attached video.
Auto-mode - work!
Why other models don’t work ? gtp*, claude4sonnet - will give me an error

Steps to Reproduce

in agent chat write:
use get_apps, and write me count of published apps

Expected Behavior

I build mcp server for Qlik Sense enterprise, but can’t use it
source code here: GitHub - bintocher/qlik-sense-mcp

my mcp.json config:

{
  "mcpServers": {
    "qlik-sense": {
      "command": "python3",
      "args": [
        "-m",
        "qlik_sense_mcp_server.server"
      ],
      "env": {
        "QLIK_SERVER_URL": "https://qlik1",
        "QLIK_USER_DIRECTORY": "qlik1",
        "QLIK_USER_ID": "bintocher",
        "QLIK_CLIENT_CERT_PATH": "/Users/bintocher/git/cursor/qlik/certs/client.pem",
        "QLIK_CLIENT_KEY_PATH": "/Users/bintocher/git/cursor/qlik/certs/client_key.pem",
        "QLIK_CA_CERT_PATH": "/Users/bintocher/git/cursor/qlik/certs/root.pem",
        "QLIK_REPOSITORY_PORT": "4242",
        "QLIK_PROXY_PORT": "4243",
        "QLIK_ENGINE_PORT": "4747",
        "QLIK_HTTP_PORT": "443",
        "QLIK_VERIFY_SSL": "false",
        "LOG_LEVEL": "DEBUG",
        "QLIK_HTTP_TIMEOUT": "10",
        "QLIK_WS_TIMEOUT": "8",
        "QLIK_WS_RETRIES": "2"
      }
    }
  }
}

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.11 (Universal)
VSCode Version: 1.99.3
Commit: ea659ac512725d8ba835e9e77b826949d829d680
Date: 2025-09-11T15:12:12.526Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

gtp*, claude4sonnet

For AI issues: add Request ID with privacy disabled

(Request ID: 6256360c-2e97-481b-a094-ee5faec6a973)
(Request ID: 547a9a71-587a-4ab7-bafa-576d83296405)
(Request ID: 4153d0ed-e66c-4d67-b560-2fffbc6353c8)
(Request ID: 9a1b72a1-f06d-4023-899f-6c11abe9960b)

Does this stop you from using Cursor

Yes - Cursor is unusable

if i use mcp with uvx run, i have same error with gtp5

(Request ID: 583e7c4c-a771-4cb3-879a-dd2527571a78)

{
  "mcpServers": {
    "qlik-sense": {
      "command": "uvx",
      "args": ["qlik-sense-mcp-server"],
      "env": {
        "QLIK_SERVER_URL": "https://qlik1",
        "QLIK_USER_DIRECTORY": "qlik1",
        "QLIK_USER_ID": "bintocher",
        "QLIK_CLIENT_CERT_PATH": "/Users/bintocher/git/cursor/qlik/certs/client.pem",
        "QLIK_CLIENT_KEY_PATH": "/Users/bintocher/git/cursor/qlik/certs/client_key.pem",
        "QLIK_CA_CERT_PATH": "/Users/bintocher/git/cursor/qlik/certs/root.pem",
        "QLIK_REPOSITORY_PORT": "4242",
        "QLIK_PROXY_PORT": "4243",
        "QLIK_ENGINE_PORT": "4747",
        "QLIK_HTTP_PORT": "443",
        "QLIK_VERIFY_SSL": "false",
        "LOG_LEVEL": "DEBUG",
        "QLIK_HTTP_TIMEOUT": "10",
        "QLIK_WS_TIMEOUT": "8",
        "QLIK_WS_RETRIES": "2"
      }
    }
  }
}

Thanks for the report.

In the screen shot, I see a custom mode you are using. Can you try again with the normal Agent mode?

reqid = d21d024b-c475-4bdb-bd3e-bae7434868b2

debug log:

2025-09-26 11:16:54.950 [info] Handling CallTool action for tool ‘get_apps’

2025-09-26 11:16:54.950 [info] Calling tool ‘get_apps’ with toolCallId: tool_6f354d1c-52d4-4e57-8746-e40c0ba4714

2025-09-26 11:16:54.951 [error] 2025-09-26 11:16:54 DEBUG [mcp.server.lowlevel.server] Received message: <mcp.shared.session.RequestResponder object at 0x1068bb560>

2025-09-26 11:16:54.951 [error] 2025-09-26 11:16:54 DEBUG [mcp.server.lowlevel.server] Received message: <mcp.shared.session.RequestResponder object at 0x1068bb560>

2025-09-26 11:16:54.952 [error] 2025-09-26 11:16:54 INFO [mcp.server.lowlevel.server] Processing request of type CallToolRequest

2025-09-26 11:16:54 DEBUG [mcp.server.lowlevel.server] Dispatching request of type CallToolRequest

2025-09-26 11:16:54.952 [error] 2025-09-26 11:16:54 INFO [mcp.server.lowlevel.server] Processing request of type CallToolRequest

2025-09-26 11:16:54 DEBUG [mcp.server.lowlevel.server] Dispatching request of type CallToolRequest

2025-09-26 11:16:54.953 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] close.started

2025-09-26 11:16:54.953 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] close.started

2025-09-26 11:16:54.953 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] close.complete

2025-09-26 11:16:54 DEBUG [httpcore.connection] connect_tcp.started host=‘qlik1’ port=4242 local_address=None timeout=10.0 socket_options=None

2025-09-26 11:16:54.953 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] close.complete

2025-09-26 11:16:54 DEBUG [httpcore.connection] connect_tcp.started host=‘qlik1’ port=4242 local_address=None timeout=10.0 socket_options=None

2025-09-26 11:16:54.957 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10ea4be60>

2025-09-26 11:16:54.957 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10ea4be60>

2025-09-26 11:16:54.957 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] start_tls.started ssl_context=<ssl.SSLContext object at 0x1068cf5d0> server_hostname=‘qlik1’ timeout=10.0

2025-09-26 11:16:54.957 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] start_tls.started ssl_context=<ssl.SSLContext object at 0x1068cf5d0> server_hostname=‘qlik1’ timeout=10.0

2025-09-26 11:16:54.965 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x105fc66c0>

2025-09-26 11:16:54.965 [error] 2025-09-26 11:16:54 DEBUG [httpcore.connection] start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x105fc66c0>

2025-09-26 11:16:54.965 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_headers.started request=<Request [b’GET’]>

2025-09-26 11:16:54.965 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_headers.started request=<Request [b’GET’]>

2025-09-26 11:16:54.965 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_headers.complete

2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_body.started request=<Request [b’GET’]>

2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_body.complete

2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_headers.started request=<Request [b’GET’]>

2025-09-26 11:16:54.965 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_headers.complete

2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_body.started request=<Request [b’GET’]>

2025-09-26 11:16:54 DEBUG [httpcore.http11] send_request_body.complete

2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_headers.started request=<Request [b’GET’]>

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_headers.complete return_value=(b’HTTP/1.1’, 200, b’OK’, [(b’Cache-Control’, b’private, must-revalidate, max-age=0’), (b’Transfer-Encoding’, b’chunked’), (b’Content-Type’, b’application/json; charset=utf-8’), (b’Content-Encoding’, b’gzip’), (b’Expires’, b’Fri, 26 Sep 2025 08:16:55 GMT’), (b’Server’, b’Microsoft-HTTPAPI/2.0’), (b’Date’, b’Fri, 26 Sep 2025 08:16:54 GMT’)])

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_headers.complete return_value=(b’HTTP/1.1’, 200, b’OK’, [(b’Cache-Control’, b’private, must-revalidate, max-age=0’), (b’Transfer-Encoding’, b’chunked’), (b’Content-Type’, b’application/json; charset=utf-8’), (b’Content-Encoding’, b’gzip’), (b’Expires’, b’Fri, 26 Sep 2025 08:16:55 GMT’), (b’Server’, b’Microsoft-HTTPAPI/2.0’), (b’Date’, b’Fri, 26 Sep 2025 08:16:54 GMT’)])

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 INFO [httpx] HTTP Request: GET https://qlik1:4242/qrs/app/full?filter=published+eq+true&orderby=modifiedDate+desc&xrfkey=shxwr2tu8sop6sru “HTTP/1.1 200 OK”

2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_body.started request=<Request [b’GET’]>

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 INFO [httpx] HTTP Request: GET https://qlik1:4242/qrs/app/full?filter=published+eq+true&orderby=modifiedDate+desc&xrfkey=shxwr2tu8sop6sru “HTTP/1.1 200 OK”

2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_body.started request=<Request [b’GET’]>

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_body.complete

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] receive_response_body.complete

2025-09-26 11:16:54.994 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] response_closed.started

2025-09-26 11:16:54 DEBUG [httpcore.http11] response_closed.complete

2025-09-26 11:16:54.995 [error] 2025-09-26 11:16:54 DEBUG [httpcore.http11] response_closed.started

2025-09-26 11:16:54 DEBUG [httpcore.http11] response_closed.complete

2025-09-26 11:16:54.995 [error] 2025-09-26 11:16:54 DEBUG [mcp.server.lowlevel.server] Response sent

2025-09-26 11:16:54.995 [error] 2025-09-26 11:16:54 DEBUG [mcp.server.lowlevel.server] Response sent

2025-09-26 11:16:54.996 [info] Successfully called tool ‘get_apps’

in first post i all ready send video with “agent” mode

Thanks for the details, I’ve passed this on to the team.

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.