Extension Server Status
skippr_extension_server_statusChecks the WebSocket server status for browser extensions to ensure connectivity for issue detection and resolution.
Instructions
Gets the current status of the WebSocket server for browser extensions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| running | Yes | ||
| port | No |
Implementation Reference
- src/servers/mcp.ts:112-127 (registration)Registers the 'skippr_extension_server_status' tool with MCP server, defining input/output schemas and wiring to the handler function.
mcpServer.registerTool( 'skippr_extension_server_status', { title: 'Extension Server Status', description: 'Gets the current status of the WebSocket server for browser extensions', inputSchema: {}, outputSchema: z.object({ running: z.boolean(), port: z.number().optional() }).shape }, async () => { const result = getWebSocketServerStatus(); return createStructuredResponse(result); } ); - src/servers/mcp.ts:123-127 (handler)The async handler function for 'skippr_extension_server_status' that calls getWebSocketServerStatus() and returns a structured response.
async () => { const result = getWebSocketServerStatus(); return createStructuredResponse(result); } ); - src/servers/websocket.ts:356-365 (helper)The getWebSocketServerStatus() function that returns the current status (running, port) of the WebSocket server by checking the global wss instance.
export function getWebSocketServerStatus(): { running: boolean; port?: number } { if (wss) { const address = wss.address(); if (address && typeof address === 'object') { return { running: true, port: address.port }; } return { running: true }; } return { running: false }; }