主题
Schema 参考(Schema Usage)
本页是 MCP 协议的 TypeScript Schema 权威定义(JSON-RPC 各消息类型的接口清单)。
由于该页由 TypeDoc 从 schema.ts 自动生成,正文是大量内联 HTML,本站暂不镜像原文, 请以下列官方来源为准:
- 官方渲染版:https://modelcontextprotocol.io/specification/2026-07-28/schema
- TypeScript Schema 源文件:https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2026-07-28/schema.ts
- JSON Schema:https://github.com/modelcontextprotocol/schema
快速定位常用类型
| 类型 | 用途 |
|---|---|
JSONRPCRequest / JSONRPCResponse / JSONRPCErrorResponse | JSON-RPC 2.0 通用信封 |
InitializeRequest / InitializedNotification | 生命周期 |
ToolsListRequest / ToolsCallRequest | 工具发现与调用 |
ResourcesListRequest / ResourcesReadRequest | 资源发现与读取 |
PromptsListRequest / PromptsGetRequest | 提示模板 |
ElicitRequest | 客户端征询 |
ResultType (input_required / complete) | MRTR 多轮往返 |
在官方页面顶部使用浏览器内查找(⌘/Ctrl + F)即可直达具体接口。
本页为站点原创(不含译文),仅承担"跳转指路"作用。