MCP 2026 规范文档

模型上下文协议(MCP)网关接入规范

基于 Anthropic Model Context Protocol 开源标准构建,为企业智能体提供统一、标准、带鉴权与脱敏的端侧上下文通信管道。

1. Resources 资源接口 (`resources/read`)

用于拉取端侧录音及通话结构化元数据。网关在返回前强制执行敏感个人信息脱敏。

POST /mcp/rpc HTTP/1.1
Host: gateway.ruiziyun.com
Authorization: Bearer <OAuth_2.1_Token>
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1001,
  "method": "resources/read",
  "params": {
    "uri": "ruizi://calls/rec_89104",
    "filter": {
      "mask_pii": true,
      "include_speaker_roles": true
    }
  }
}

2. Tools 工具调用接口 (`tools/call`)

向 CRM 回写跟进记录或调用智能体处置卡点。敏感动作强制设定 `require_human_confirmation: true`。

{
  "jsonrpc": "2.0",
  "id": 1002,
  "method": "tools/call",
  "params": {
    "name": "crm_sync_writeback",
    "arguments": {
      "call_id": "rec_89104",
      "summary": "制造客户关心合规与TCO",
      "stage": "POC_PROPOSAL"
    },
    "require_human_confirmation": true
  }
}