Overview
cydra discover is part of the cydra command-line tool. It changes nothing on the computer: it reads AI tools' MCP configuration files for the signed-in user, sends a redacted summary to your organisation over HTTPS, and exits. It does not install anything, change any file or stay running. Cloud discovery through connectors is unchanged; both feed the same inventory, and a server found in both places is one entry.
| Tool | Windows | macOS | Linux |
|---|---|---|---|
| Claude Desktop | %APPDATA%\Claude\claude_desktop_config.json | ~/Library/Application Support/Claude/claude_desktop_config.json | ~/.config/Claude/claude_desktop_config.json |
| Claude Code | ~\.claude.json | ~/.claude.json | ~/.claude.json |
| Cursor | ~\.cursor\mcp.json | ~/.cursor/mcp.json | ~/.cursor/mcp.json |
| VS Code | %APPDATA%\Code\User\mcp.json and settings.json | ~/Library/Application Support/Code/User/mcp.json and settings.json | ~/.config/Code/User/mcp.json and settings.json |
| Windsurf | ~\.codeium\windsurf\mcp_config.json | ~/.codeium/windsurf/mcp_config.json | ~/.codeium/windsurf/mcp_config.json |
With --project FOLDER it also reads that project's .cursor/mcp.json, .vscode/mcp.json and .mcp.json.
What it reads and sends
From each file it reads the MCP server definitions and ignores everything else in the file. For each server it sends:
- the tool it is configured in, and whether it is a user or project setting;
- the server's name and transport (local process, HTTP or SSE);
- the program name (not its folder) and arguments, or the server URL;
- the names of its environment variables and headers, never their values.
It also sends the computer's name and operating system. Before anything leaves the computer:
- environment variable and header values are dropped;
- arguments that look like secrets are replaced with
[REDACTED]: values after flags such as--tokenor--api-key,NAME=valuepairs with secret-like names, bearer tokens, well-known key prefixes and long random strings; - headers passed as arguments (for example
--header "Authorization: Bearer ..."tomcp-remote) keep their name and lose their value; - URLs lose any user name, password, query string and fragment;
- file paths in arguments are reduced to the file name, so home-folder paths (which contain user names) are not sent.
It never sends your user name, the config file paths, file contents, or any secret value. Use --anonymise-device to send a one-way hash instead of the computer name, and --dry-run to print the exact report without sending it.
Run it by hand
An administrator creates a discovery token in the portal (Inventory, MCP servers tab, Create discovery token). It is shown once and is valid for up to a year. The token can send reports and nothing else: it cannot read anything.
pipx install ./cydra-cli
cydra discover --dry-run # see exactly what would be sent
export CYDRA_DISCOVERY_TOKEN=cydisc_... # PowerShell: $env:CYDRA_DISCOVERY_TOKEN = "cydisc_..."
cydra discoverSet CYDRA_URL if your platform is not at the default address. Each upload carries the token and an HMAC-SHA256 signature over the timestamp and body. The server refuses unsigned, altered, replayed or old reports, and reports sent with a revoked or expired token.
Deploy with Microsoft Intune
- Package Python 3.10 or later and the
cydra-cliwheel as a Win32 app, or install them with your existing software deployment. - Create a Remediations script (or a platform script) that runs in the user's context, because the configuration files live in each user's profile. Run it daily.
- Pass the token from a secure source rather than writing it into the script: for example an environment variable set by a configuration profile, or a file that no other user can read, with
--token-file.
# Intune remediation (runs as the signed-in user)
$env:CYDRA_URL = "https://app.cydralabs.com"
cydra discover --token-file "$env:LOCALAPPDATA\CydraLabs\discovery-token" --json
exit 0Deploy with Jamf Pro
- Deploy Python 3.10 or later and the
cydra-clipackage with a Jamf package or your Python distribution. - Add a script to a policy with a recurring check-in trigger, once a day. Jamf runs scripts as root, so run
cydra discoveras the console user to read their files. - Pass the token as a script parameter (Jamf stores it with the policy) rather than in the script body.
#!/bin/zsh
# Jamf policy script. Parameter 4: discovery token.
user=$(stat -f%Su /dev/console)
[ "$user" = "root" ] && exit 0
sudo -u "$user" env CYDRA_URL="https://app.cydralabs.com" CYDRA_DISCOVERY_TOKEN="$4" \
/usr/local/bin/cydra discover --jsonLinux
Run it from each user's crontab or a systemd user timer, with the token in a file that no other user can read.
0 9 * * * CYDRA_URL=https://app.cydralabs.com cydra discover --token-file ~/.config/cydra/discovery-token --jsonIn the inventory
Servers are matched by identity: a remote server by its normalised URL, a local server by its launcher and package (for example stdio://npx/@modelcontextprotocol/server-github), and a local proxy such as mcp-remote by the remote URL it connects to. New servers start under review and the security team is notified. The MCP servers tab shows how many devices each server was seen on, and approving, reviewing or quarantining works the same way for every server, however it was found.
API
POST /api/v1/discovery/tokens(inventory:control),GET /api/v1/discovery/tokens,POST /api/v1/discovery/tokens/{id}/revoke.POST /api/v1/discovery/endpoint-reports:Authorization: Bearer cydisc_...,X-Cydra-Timestamp(Unix seconds, within five minutes) andX-Cydra-Signature: v1=HMAC-SHA256(key = SHA-256 hex of the token, message = timestamp + "." + body).GET /api/v1/mcp-servers/{id}/sightings: the devices and tools where a server was found.
Beta limitations
- It needs Python 3.10 or later on each computer. A single self-contained executable for Intune and Jamf is on the roadmap.
- Supported tools are those listed above; other tools' files are not read.
- Redaction is pattern-based. Check a
--dry-runbefore deploying widely.
Related
The cydra CLI page covers installation and signing in for administration commands. Discovery uses its own token and does not need anyone to sign in on the computer.
Applies to the current CydraLabs platform. Last updated 4 October 2026. Questions or corrections: contact us.