list_instances
Retrieve a list of all active Claude instances connected to the Claude IPC MCP server to monitor or manage AI assistant interactions.
Instructions
List all active Claude instances
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/claude_ipc_server.py:985-992 (registration)Registration of the 'list_instances' MCP tool including its schema (empty input)Tool( name="list_instances", description="List all active Claude instances", inputSchema={ "type": "object", "properties": {} } ),
- src/claude_ipc_server.py:1162-1164 (handler)MCP tool handler for 'list_instances' which delegates to the internal message broker's 'list' actionelif name == "list_instances": response = BrokerClient.send_request({"action": "list"}) return [TextContent(type="text", text=json.dumps(response, indent=2))]
- src/claude_ipc_server.py:769-774 (handler)Core implementation of listing active instances from the MessageBroker's self.instances dictionaryelif action == "list": instances = [ {"id": id, "last_seen": ts.isoformat()} for id, ts in self.instances.items() ] return {"status": "ok", "instances": instances}