---
title: "MCP-сервер: JSON-RPC 2.0 по Streamable HTTP (initialize, tools/list, tools/call, ping)"
method: POST
path: "/api/mcp"
tags: ["mcp"]
---

# MCP-сервер: JSON-RPC 2.0 по Streamable HTTP (initialize, tools/list, tools/call, ping)

`POST /api/mcp`

## Request

- Base URL: `https://vedarai.ru`
- URL: `https://vedarai.ru/api/mcp`
- Auth: none declared

Анонимно, без сессий. Версии протокола: 2025-06-18, 2025-03-26, 2024-11-05 (заголовок MCP-Protocol-Version проверяется, если есть). Лимиты по адресу на вызов инструмента: чтение 30 в минуту, заявки 5 в час. Пакет — до 20 сообщений, тело — до 64 КиБ. Отказ инструмента — result с isError: true и HTTP 200; неизвестный инструмент — error -32602 с data.available.

## Request body

- union
  - JsonRpcRequest
    - `jsonrpc` '2.0', required
    - `id` union: Без id — уведомление: ответ 202 без тела
      - string
      - integer
    - `method` 'initialize' | 'tools/list' | 'tools/call' | 'ping', required
    - `params` object
  - JsonRpcRequest[]
    - `jsonrpc` '2.0', required
    - `id` union: Без id — уведомление: ответ 202 без тела
      - string
      - integer
    - `method` 'initialize' | 'tools/list' | 'tools/call' | 'ping', required
    - `params` object

## Response `200`

Ответ JSON-RPC (или массив для пакета)

- union
  - JsonRpcResponse
    - `jsonrpc` '2.0', required
    - `id` union, required
      - string
      - integer
    - `result` object: tools/call: { content: [{ type: "text", text }], structuredContent?, isError? }
    - `error` object
      - `code` integer
      - `message` string
      - `data` unknown
  - JsonRpcResponse[]
    - `jsonrpc` '2.0', required
    - `id` union, required
      - string
      - integer
    - `result` object: tools/call: { content: [{ type: "text", text }], structuredContent?, isError? }
    - `error` object
      - `code` integer
      - `message` string
      - `data` unknown

## Other responses

- `202`: Уведомление или пакет из одних уведомлений
- `400`: Невалидный JSON, пустой пакет, неподдерживаемая версия
- `413`: Тело больше 64 КиБ

---

[API](https://skmtc.dev/vedarai/apis/vedar-kamchatka-travel.md) · [All operations](https://skmtc.dev/vedarai/apis/vedar-kamchatka-travel/llms.txt) · [OpenAPI document](https://skmtc.dev/vedarai/apis/vedar-kamchatka-travel/revisions/75789f39b9a3?raw)
