Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
When using cursor-agent with an MCP server that requires OAuth, completing the OAuth login flow via /mcp login does not result in the MCP server’s tools, resources, or prompts being loaded. Running /mcp list-tools after a successful login returns:
No tools available for
Inspecting the MCP server logs confirms that after the token exchange completes, cursor-agent does not proceed to query the server for its capabilities (tools, resources, prompts). The last recorded server-side activity is the POST /token request — no subsequent capability discovery requests are made.
Workaround:
After completing the OAuth login, manually cycling the server connection resolves the issue:
/mcp disable
/mcp enable
After these two commands, tools, resources, and prompts are correctly loaded.
Video recording is attached from reproduction done over a minimal FastMCP server setup (the same issue has been reproduced with two additional production servers).
Steps to Reproduce
- Configure cursor-agent with a single MCP server that requires OAuth with DCR.
- Run /mcp login .
- Complete the OAuth authorization flow in the browser window.
- Run /mcp list-tools .
- Observe: “No tools available for ” is displayed.
Expected Behavior
After successfully completing the OAuth (DCR) login flow via /mcp login, cursor-agent should automatically perform MCP capability discovery (tools, resources, prompts) without requiring a manual disable/enable cycle. The behavior should be consistent with Cursor IDE (GUI), where tools, resources, and prompts are immediately available after login.
Screenshots / Screen Recordings
Operating System
Linux
Version Information
CLI Version 2026.03.25-933d5a6
Does this stop you from using Cursor
No - Cursor works, but with this issue