list_sessions
Retrieve active session details and metadata to monitor and manage mock server configurations for development and testing workflows.
Instructions
List all active sessions with metadata
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_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools.ts:43-53 (handler)The handler implementation for the list_sessions tool, which invokes sessionManager.listSessions().
list_sessions: async () => { try { const sessions = sessionManager.listSessions(); return { success: true, data: sessions }; } catch (error: any) { return { success: false, error: `Failed to list sessions: ${error.message}` }; } },