Skip to main content
Glama
ebowwa

Xcode MCP Server

by ebowwa

web_monitor_status

Check the current operational status of web monitoring services to verify availability and identify potential issues in real-time.

Instructions

Get the current status of the web monitor

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP CallToolRequest handler specifically for 'web_monitor_status': calls WebMonitorManager.getStatus() and returns formatted status text.
    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:77-84 (registration)
    Tool registration in webMonitorTools array: defines name, description, and input schema (empty object) for ListTools response.
      name: 'web_monitor_status',
      description: 'Get the current status of the web monitor',
      inputSchema: {
        type: 'object',
        properties: {},
        required: []
      }
    }
  • Input schema for web_monitor_status tool: empty object (no parameters required).
    inputSchema: {
      type: 'object',
      properties: {},
      required: []
    }
  • WebMonitorManager.getStatus(): core logic returning the running status, port, and URL of the web monitor.
    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 };
    }
  • src/index.ts:87-89 (registration)
    Registers the list of tools including webMonitorTools (with web_monitor_status) for ListToolsRequest.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: [...tools, ...webMonitorTools],
    }));

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ebowwa/xcode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server