debug_connection
Test and diagnose N Lobby MCP Server connections by inspecting endpoint responses, with customizable input for detailed troubleshooting.
Instructions
Debug N Lobby connection with detailed information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | Endpoint to test (default: /news) | /news |
Implementation Reference
- src/server.ts:346-358 (registration)Registration of the 'debug_connection' tool in the ListToolsRequestSchema handler, including name, description, and input schema.name: "debug_connection", description: "Debug N Lobby connection with detailed information", inputSchema: { type: "object", properties: { endpoint: { type: "string", description: "Endpoint to test (default: /news)", default: "/news", }, }, }, },
- src/server.ts:919-932 (handler)The execution handler for the 'debug_connection' tool. Parses arguments, calls the underlying api.debugConnection(endpoint), and formats the response as MCP content.case "debug_connection": { const { endpoint } = args as { endpoint?: string }; const debugResult = await this.api.debugConnection( endpoint || "/news", ); return { content: [ { type: "text", text: debugResult, }, ], }; }