scan
Interrogate an MCP server for capabilities
Synopsis
mcptrust scan -- <command> [flags]Starts the given command as an MCP server, connects via stdio, and lists all available tools.
Options
| Flag | Default | Description |
|---|---|---|
-h, --help | help for scan | |
-p, --pretty | false | Pretty print JSON output |
-t, --timeout | 10s | Timeout for MCP operations |
-t, --timeout | 10s | Timeout for MCP operations |
Examples
Scan a local Node.js server:
mcptrust scan -- "npx -y @modelcontextprotocol/server-filesystem /Users/me/data"Scan a Python server:
mcptrust scan -- "python mcp_server.py"Output
The scan command outputs a standard JSON object containing the server's capabilities.
It is recommended to pipe the output to jq for readability.