list_endpoints
Display configured REST and WebSocket endpoints for a SpyNet session to inspect mock server setup during application testing.
Instructions
List configured endpoints for a session
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session identifier |
Implementation Reference
- src/mcp/tools.ts:84-105 (handler)The handler implementation for the list_endpoints tool.
list_endpoints: async (args: any) => { try { const { sessionId } = args; if (!sessionId) { return { success: false, error: 'Missing required field: sessionId' }; } const session = sessionManager.getOrCreate(sessionId); const endpoints = Array.from(session.endpoints.values()); return { success: true, data: endpoints }; } catch (error: any) { return { success: false, error: `Failed to list endpoints: ${error.message}` }; } }, - src/mcp/server.ts:90-103 (registration)The tool registration and schema definition for list_endpoints.
name: 'list_endpoints', description: 'List configured endpoints for a session', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'Session identifier', }, }, required: ['sessionId'], }, }, {