Skip to main content

What is MCP?

The Model Context Protocol (MCP) is a JSON-RPC 2.0 interface that enables AI agents and applications to interact with Mirobody Health’s tools and resources.
MCP endpoint: http://localhost:18080/mcp

Key Concepts

Tools

Functions that AI agents can call to perform actions (e.g., get health data, link providers)

Resources

Data sources that agents can access (e.g., user profiles, health metrics)

JSON-RPC 2.0

Standard protocol for remote procedure calls over HTTP

Agents

AI assistants that use tools and resources to help users

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Example Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": [
      {
        "name": "get_health_data",
        "description": "Retrieve health data for a user",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {"type": "string"},
            "data_type": {"type": "string"}
          },
          "required": ["user_id"]
        }
      }
    ]
  }
}
For detailed MCP documentation, see MCP Tools and MCP Resources.