AI agents and their MCP servers
list_agentsList process trees of running AI agents, MCP servers, spawned programs, and their network connections. Use it to see which agent or server a process or connection belongs to.
Instructions
List the process trees of running AI agents (Claude Code, Claude Desktop, Cursor, VS Code, Codex, ...): each agent, the MCP servers and other programs it started, and the internet or network-facing connections of each process. Use this to see which agent or MCP server a process or connection belongs to. For every connection on the PC, including programs outside agent trees, use list_connections; for one process in depth, use explain_process. By default the trees are pruned to agents, MCP servers and processes with network activity.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all_processes | No | Include every process in the trees, not only agents, MCP servers and processes with network activity. Default: false. Set it when tracing what an agent ran, such as shells and scripts. |