{
  "$schema": "https://modelcontextprotocol.io/schema.json",
  "name": "theiotworld",
  "title": "The IoT World Platform MCP Server",
  "description": "Exposes tools and context resources to AI coding agents and LLMs for interacting with The IoT World telemetry pipelines, RAG retrieval, and Model Hardware Standard (MHS) diagnostics.",
  "version": "2.0.0",
  "author": {
    "name": "Dr. Amit Puri",
    "email": "amit.puri@amitpuri.com",
    "url": "https://www.theiotworld.io"
  },
  "homepage": "https://www.theiotworld.io/developers",
  "repository": {
    "type": "git",
    "url": "https://github.com/amitpuri/theiotworld"
  },
  "capabilities": {
    "tools": [
      {
        "name": "get_platform_metrics",
        "description": "Fetches real-time system metrics (daily logs processed, throughput, availability, GPU cost savings).",
        "inputSchema": {
          "type": "object",
          "properties": {}
        }
      },
      {
        "name": "query_rag_intelligence",
        "description": "Performs hybrid semantic and lexical retrieval on calibration, clinical, and telemetry engineering documents.",
        "inputSchema": {
          "type": "object",
          "required": ["query"],
          "properties": {
            "query": { "type": "string", "description": "The search query" },
            "top_k": { "type": "integer", "description": "Number of results to return", "default": 5 }
          }
        }
      },
      {
        "name": "get_mhs_hardware_status",
        "description": "Retrieves real-time diagnostics for biomedical equipment digital twins and Model Hardware Standard (MHS) instruments.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "instrument_id": { "type": "string", "description": "Optional instrument ID (e.g. baha-5000)" }
          }
        }
      }
    ],
    "resources": [
      {
        "uri": "theiotworld://docs/llms.txt",
        "name": "The IoT World Core Summary",
        "mimeType": "text/markdown"
      },
      {
        "uri": "theiotworld://docs/llms-full.txt",
        "name": "The IoT World Full Documentation",
        "mimeType": "text/markdown"
      },
      {
        "uri": "theiotworld://docs/openapi.json",
        "name": "The IoT World OpenAPI Specification",
        "mimeType": "application/json"
      }
    ]
  }
}
