# Protocol and limits

> Transport, headers, supported MCP protocol versions, Host and Origin rules, status codes, error messages, limits and caching.

## Transport

|  |  |
| --- | --- |
| Endpoint | `https://mcp.nsuna.com/mcp` |
| Protocol | MCP Streamable HTTP, JSON-RPC 2.0 |
| Method | `POST` only |
| Authentication | None |
| Sessions | None. The server is stateless and returns no session ID. |
| Capabilities | Tools and resources. No prompts. |

## Request headers

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `Accept` | Must include both `application/json` and `text/event-stream` |
| `MCP-Protocol-Version` | The negotiated version, after `initialize` |
| `Origin` | Omit it. Browsers on other sites are refused; see below. |

A successful response is a JSON body or a short `text/event-stream` with one `message` event. Handle both. A notification returns `202` with no body.

## Protocol versions

The server supports these MCP protocol versions:

- `2026-07-28`
- `2025-11-25`
- `2025-06-18`
- `2025-03-26`
- `2024-11-05`
- `2024-10-07`

If `initialize` asks for a version the server does not know, it answers with `2025-11-25`.

`2026-07-28` works per request: send the version in the `MCP-Protocol-Version` header and, with your client capabilities, in `params._meta`.

## Host and Origin rules

- The request must reach the server on its own host name. Anything else gets `403`.
- A request with an `Origin` header from another site gets `403`. So a web page on another origin cannot call the server from the browser, and there are no CORS headers. Server-side clients send no `Origin` and are not affected.

## Status codes

| Status | When | Message |
| --- | --- | --- |
| `200` | A JSON-RPC response, including tool errors |  |
| `202` | A notification was accepted |  |
| `400` | The body is not valid JSON | Parse error: Invalid JSON |
| `403` | Wrong host, or an `Origin` from another site | Invalid Host. / Invalid Origin. |
| `404` | Any path that is not the endpoint or a page of this site | Not found. |
| `405` | `GET`, `DELETE` or any other method on the endpoint. Sent with `Allow: POST`. | Method not allowed. |
| `406` | `Accept` lacks one of the two media types | Not Acceptable: Client must accept both application/json and text/event-stream |
| `413` | The body is larger than 16 KiB |  |
| `415` | `Content-Type` is not `application/json` | Unsupported Media Type: Content-Type must be application/json |
| `500` | The server is misconfigured or failed | Internal server error. |

HTTP errors have a JSON-RPC error body with `id: null`. The OAuth discovery paths under `/.well-known/` return `404`, which tells clients there is no authentication.

## Errors

### JSON-RPC errors

Protocol problems use standard JSON-RPC codes, for example an unknown method:

```json
{
  "jsonrpc": "2.0",
  "id": 9,
  "error": {
    "code": -32601,
    "message": "Method not found"
  }
}
```

### Tool errors

A tool that cannot complete returns a normal result with `isError: true` and one text message. Invalid arguments name each field:

```text
Input validation error: Invalid arguments for tool get_stay: placeId: must be the stay UUID returned by search_stays, e.g. 00000000-0000-4000-8000-000000000000. Correct this argument and call get_stay again.
```

Service failures use one of these fixed messages. They never include upstream details.

- The Stays service is unavailable. Try again later.
- The destination could not be resolved. Try again later.
- Stays search could not be completed. Try again later.
- Stay details could not be loaded. Try again later.
- The Stays request could not be completed. Try again later.
- Stay not found.

## Limits

| Limit | Value |
| --- | --- |
| Request body | 16 KiB |
| Stays per search | 1–20, default 10. No cursor. |
| Destination suggestions | Up to 8 |
| Photos per stay | Up to 6 in search results, up to 10 in details |
| Description | Up to 2,000 characters of plain text |
| Adults, rooms, children | Up to 20 each |

## Caching and freshness

- Every endpoint response is sent with `Cache-Control: no-store`.
- Each call queries Nsuna when you make it. The server stores nothing between calls.
- Prices and availability can change until the user books on Nsuna. Treat `price` as an indicative starting total.

## Privacy

No account, token or personal data is needed. The tools take a destination, dates, guest counts and a property ID.

## Clients

Works with any MCP client that supports remote Streamable HTTP servers, for example Claude custom connectors and ChatGPT developer mode. Official Claude and ChatGPT extensions are planned.
