# HTTP 与健康检查

> MCP、存活检查和就绪检查接口。

规范地址: https://keta1930.github.io/icml2026-mcp/zh/docs/reference/health



| 路径              | 方法            | 用途                                          |
| --------------- | ------------- | ------------------------------------------- |
| `/mcp`          | MCP transport | Streamable HTTP 初始化、tools/list 与 tools/call |
| `/health/live`  | GET           | 进程是否存活                                      |
| `/health/ready` | GET           | SQLite、manifest 和 Milvus 是否可服务              |

## 为什么浏览器会返回 HTTP 406 [#为什么浏览器会返回-http-406]

`/mcp` 是 Streamable HTTP 协议接口，不是网页。浏览器 GET 通常会返回 HTTP 406 和 `Client must accept text/event-stream`。连接时使用 MCP 客户端；人工检查使用下面两个健康接口。

## Liveness [#liveness]

```bash
curl -fsS http://127.0.0.1:20441/health/live
```

返回 HTTP 200 和 `{"status":"ok"}`，表示进程存活。

## Readiness [#readiness]

```bash
curl -fsS http://127.0.0.1:20441/health/ready
```

返回 HTTP 200 和 `{"status":"ready"}`，表示 SQLite、manifest、语料快照和 Milvus collection 一致；HTTP 503 表示尚未就绪。这个检查不会调用 DashScope。
