stop_web_monitor
Halt the web interface of Xcode MCP Server when active. This tool manages the server's web operations, ensuring controlled shutdowns as needed.
Instructions
Stop the web interface if it is running
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/web-monitor-manager.ts:115-123 (handler)Core implementation of stopping the web monitor: kills the child process if running and returns status message.stop(): { message: string } { if (this.webServerProcess) { this.webServerProcess.kill('SIGTERM'); this.webServerProcess = null; this.isRunning = false; return { message: 'Web monitor stopped successfully' }; } return { message: 'Web monitor was not running' }; }
- src/index.ts:108-118 (handler)MCP tool dispatch handler that invokes WebMonitorManager.stop() for 'stop_web_monitor' tool calls.if (name === 'stop_web_monitor') { const result = this.webMonitorManager.stop(); return { content: [ { type: 'text', text: result.message } ] }; }
- src/index.ts:67-75 (schema)Tool schema definition: empty input schema, description for 'stop_web_monitor'.{ name: 'stop_web_monitor', description: 'Stop the web interface if it is running', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/index.ts:87-89 (registration)Registers 'stop_web_monitor' (via webMonitorTools) in the ListTools response.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [...tools, ...webMonitorTools], }));