> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olira.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Patient State server

> The Olira MCP Patient State server: JSON-RPC tools, resources, and prompts over HTTP for querying patient state from agents and IDE clients.

The Patient State MCP server exposes patient state as JSON-RPC tools and resources
over HTTP, so agents and IDE clients can query it directly.

## Overview

| Property         | Value                                                                                              |
| ---------------- | -------------------------------------------------------------------------------------------------- |
| Protocol         | JSON-RPC 2.0 over HTTP (Streamable HTTP)                                                           |
| Primary endpoint | `POST /mcp`                                                                                        |
| Auth             | `Authorization: Bearer <token>`                                                                    |
| Tools            | 10                                                                                                 |
| Resources        | URI-addressable patient state data                                                                 |
| Prompts          | Reusable prompt templates for different use cases (e.g. missing-data elicitation, provider alerts) |

Your MCP endpoint URL is shown in **Console → Settings → MCP**. It takes the form:

```text theme={null}
https://mcp-patient-state.prod.olira.ai/mcp
```

## Next steps

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/mcp-server/authentication">
    Token types, required scopes, and Patient Tokens.
  </Card>

  <Card title="Tools" icon="wrench" href="/mcp-server/tools">
    The 10 patient-state tools with parameters and examples.
  </Card>

  <Card title="Resources & prompts" icon="package" href="/mcp-server/resources-and-prompts">
    URI-addressable context and reusable prompt templates (beta).
  </Card>

  <Card title="Errors" icon="triangle-alert" href="/mcp-server/errors">
    HTTP status codes and what they mean.
  </Card>
</CardGroup>
