Check the authentication status of all configured Model Context Protocol (MCP) servers.
MCP servers can disconnect or lose authentication after periods of inactivity. Use this command to verify all integrations are ready before starting work.
-
Discover configured MCP servers (user, project, extension)
- User-level: Read (macOS/Linux) or
%USERPROFILE%\.cursor\mcp.json
(Windows). Extract keys. Tag each server as source (user). If the file is not accessible, try common server names: , , , , , , , .
- Project-level: If workspace root is available, read at workspace root. If the file exists, extract keys and tag each as (project). If a server name already appeared from user config, record both sources (e.g. "user, project") or report once with combined source. If the file is missing, skip (not an error).
- Extension-exposed: When the agent has access to MCP tools from extensions (e.g. Agent Context Explorer; tool names use a prefix pattern such as ), treat each distinct extension server as one entry. Call one read-only tool per known extension server (e.g. extension-ace: list rules or list commands) and tag as (extension). If no extension tools are available, skip (not an error).
- Note: Server names in config may differ from tool prefixes (e.g. config has but tools use ).
-
Test each server connection
- For each discovered server (from any source), attempt to call one lightweight read-only tool to verify connectivity and authentication. Record the server's source (user / project / extension) with the result.
- Use common tool patterns for known server types:
- github / user-github → Try (may require owner/repo args) or
- atlassian / user-atlassian → Try
getAccessibleAtlassianResources
or
- ado / user-ado → Try
- asdlc / user-asdlc → Try
- For unknown server types, try common tool names like , , or with minimal or empty args.
- Record success or failure for each server. Handle "server not found" vs "authentication error" vs "tool not found" differently.
-
Report status
- Display results in a clear, formatted list. Group or label by source (User config, Project config, Extensions) so users see where each server comes from.
- Show server name, authentication status, and source (e.g. "(user)", "(project)", "(extension)").
- For disconnected servers, provide reconnection instructions (Cursor Settings → Features → Model Context Protocol).
(When only user-level config exists and no extensions, output may show no "Project config" or "Extensions" sections, and servers with "(user)" or no source label for backward compatibility.)
Read the MCP configuration file (
or Windows equivalent) to discover configured servers. For each server, attempt to call a lightweight read-only MCP tool to verify connectivity and authentication. Report connected / disconnected status; for disconnected servers, provide reconnection steps (Cursor Settings → Features → Model Context Protocol).