Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Well. Sometimes agent cli just does not approve MCP. It shows error message
-> mcp_name - error
Failed to load MCP ‘mcp_name’: MCP server “mcp_name” has not been approved
Related issue was MCP servers are not recognized with cursor-cli in a CI environment I used scripts from there to fix the issue. It seems the issue is that “cwd” returns list of paths but code expects single path.
Steps to Reproduce
- Run windows OS
- Create MCP config locally in project_dir\.cursor\mcp.json
- Run agent cli
- Go to /mcp list
- Choose mcp for approval
In my case I use Win10 PowerShell7.0 and safishamsi/graphify MCP via local config:
{
“mcpServers”: {
“graphify”: {
“type”: “stdio”,
“command”: “uv”,
“args”: [
“run”,
“–isolated”,
“–no-project”,
“–python”,
“3.12”,
“–with”,
“graphifyy”,
“–with”,
“mcp”,
“python”,
“-m”,
“graphify.serve”,
“C:\Users\user\repos\whatever\graphify-out\graph.json”
]
}
}
}
Expected Behavior
It must approve MCP correctly
Operating System
Windows 10/11
Version Information
CLI Version: 2026.05.05-84a231c
Model: GPT-5.5 272K Medium
OS: win32 (x64)
Terminal: vscode
Shell: cmd
Last Request ID: 99526f6c-640e-4b87-8339-8400cdc5753f
User Email: [email protected]
For AI issues: which model did you use?
GPT-5.5
Does this stop you from using Cursor
No - Cursor works, but with this issue