Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When trying to ask something using GPT-5 and have the MCP Server we are creating enabled it returns: The model returned an error. Try disabling MCP servers, or switch models. (Request ID: 6a7b3f47-37fb-44ee-8fc1-f246df3803dc)
Steps to Reproduce
- Enable the MCP Server (note this MCP Server works perfectly well in Auto mode)
- Open the Chat screen and type “Hi!”
- There is an error saying:
The model returned an error. Try disabling MCP servers, or switch models. (Request ID: xxx)
Expected Behavior
The expected behavior would be to reply “Hi, how can I help you?”
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.5.11 (Universal)
VSCode Version: 1.99.3
Commit: 2f2737de9aa376933d975ae30290447c910fdf40
Date: 2025-09-05T03:48:32.332Z
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?
GPT-5 and GPT-4o
For AI issues: add Request ID with privacy disabled
Request ID: df5145ce-61d1-4c3c-8d2b-7eceaa826154
Additional Information
This was also reported here: GPT5 can't use MCP - #4 by condor
Request info:
Request ID: df5145ce-61d1-4c3c-8d2b-7eceaa826154
{"error":"ERROR_CUSTOM_MESSAGE","details":{"title":"Model returned error","detail":"The model returned an error. Try disabling MCP servers, or switch models.","additionalInfo":{},"buttons":[],"planChoices":[]},"isExpected":true}
ConnectError: [invalid_argument] Error
at iol.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4814:319459)
at Zhr._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:212075)
at Zhr._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:211817)
at Zhr._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:210582)
at Zhr._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:209404)
at O_t.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:207498)
at ye._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ye.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Prt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4801:12154)
at MessagePort.<anonymous> (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6983:18168)
The setup of the MCP Server is as follows:
"my-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://integrations.someurl.com/mcp/",
"--header",
"x-mcd-id:XXX",
"--header",
"x-mcd-token: YYY"
]
}
Does this stop you from using Cursor
Yes - Cursor is unusable


