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

# MCP endpoint reference

> Transport, protocol versions and methods of the AiLunaPro MCP server, with raw request examples.

| | |
| - | - |
| **URL** | `https://api.ailunapro.com/mcp` |
| **Transport** | MCP Streamable HTTP, stateless |
| **Method** | `POST` only (`GET` and `DELETE` return `405`) |
| **Responses** | One JSON response per request; no server-sent events, no session id |
| **Protocol version** | `2025-06-18` (also accepts `2025-03-26` and `2024-11-05`) |
| **Authentication** | `Authorization: Bearer alp_mcp_…` ([Authentication](https://developers.ailunapro.com/developers/reference/authentication.md)) |
| **Batching** | Not supported; send one JSON-RPC object per request |

## Supported methods

| Method | Purpose |
| - | - |
| `initialize` | Agree the protocol version and read server capabilities |
| `notifications/initialized` | Client notification; answered `202` with no body |
| `ping` | Health check; returns `{}` |
| `tools/list` | List the three tools with their input schemas |
| `tools/call` | Run a tool |

Any other method returns `-32601 Method not found`.

## Raw requests

Most people never need this: your AI client sends these requests for you. It is useful for testing a key or building your own integration.

**1. Initialize**

```bash theme={null}
curl -s https://api.ailunapro.com/mcp \
  -H "Authorization: Bearer $AILUNAPRO_MCP_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'
```

```json Response theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2025-06-18",
    "capabilities": { "tools": { "listChanged": false } },
    "serverInfo": { "name": "ailunapro", "title": "AiLunaPro", "version": "0.1.0" },
    "instructions": "AiLunaPro tools return deterministic AI-governance audit data for your organisation. Results are read-only; never present them as legal advice or certification."
  }
}
```

**2. List tools**

```bash theme={null}
curl -s https://api.ailunapro.com/mcp \
  -H "Authorization: Bearer $AILUNAPRO_MCP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
```

The response lists `summary_draft_from_result`, `audit_unanswered_required_count` and `docs_search_product`, each with a `title`, `description`, `inputSchema` and `annotations`.

**3. Call a tool**

```bash theme={null}
curl -s https://api.ailunapro.com/mcp \
  -H "Authorization: Bearer $AILUNAPRO_MCP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"docs_search_product","arguments":{"query":"invite teammate"}}}'
```

The tool's data is in `result.structuredContent`, and the same data as formatted JSON text is in `result.content[0].text`.

> [!NOTE]
>
> On Windows PowerShell, use `curl.exe` instead of `curl`, and `$env:AILUNAPRO_MCP_KEY` instead of `$AILUNAPRO_MCP_KEY`. Put the JSON body in a file and pass it with `-d "@body.json"` to avoid quoting problems.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.