web_monitor_status
Check and retrieve the current status of the web monitor to ensure proper functionality and uptime for iOS/macOS projects managed via the Xcode MCP Server.
Instructions
Get the current status of the web monitor
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:120-133 (handler)MCP CallTool handler for 'web_monitor_status': fetches status from WebMonitorManager and formats text response.if (name === 'web_monitor_status') { const status = this.webMonitorManager.getStatus(); let text = status.running ? `Web monitor is running at ${status.url} (port ${status.port})` : 'Web monitor is not running'; return { content: [ { type: 'text', text: text } ] }; }
- src/index.ts:76-84 (schema)Tool schema definition including name, description, and empty input schema.{ name: 'web_monitor_status', description: 'Get the current status of the web monitor', inputSchema: { type: 'object', properties: {}, required: [] } }
- src/index.ts:87-89 (registration)Registers web monitor tools (incl. web_monitor_status) in MCP ListTools response.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [...tools, ...webMonitorTools], }));
- src/web-monitor-manager.ts:125-134 (helper)WebMonitorManager.getStatus() method providing the core status information used by the tool.getStatus(): { running: boolean; port?: number; url?: string } { if (this.isRunning && this.webServerProcess) { return { running: true, port: this.port, url: `http://localhost:${this.port}` }; } return { running: false }; }