修改一些mcp的描述#71
Conversation
| curl -X POST "https://xrobo-io.qiniuapi.com/mcp/vision/explain" \ | ||
| -H "Authorization: Bearer xxx" \ | ||
| curl -X POST "<capabilities.vision.url>" \ | ||
| -H "Authorization: Bearer <capabilities.vision.token>" \ |
There was a problem hiding this comment.
hardware-mcp.md now documents capabilities.vision.token as optional, but this curl example always sends Authorization: Bearer <capabilities.vision.token>. If the platform omits the token, implementers may still send an empty or literal placeholder bearer token and fail requests. Please make this header conditional here, or make the initialize example say the token is required.
There was a problem hiding this comment.
Code Review
This pull request updates the MCP protocol documentation to wrap messages in a standard envelope containing "type": "mcp" and "payload", removes the "session_id" field, and updates the camera feature guide to dynamically retrieve the vision analysis URL and token from the initialization capabilities. Feedback suggests ensuring documentation consistency by removing "session_id" from other related files, and replacing placeholders in JSON examples with valid URLs to keep the JSON syntax valid.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| { | ||
| "session_id": "...", // 会话ID | ||
| "type": "mcp", // 消息类型,固定为"mcp" | ||
| "type": "mcp", // 消息类型,固定为"mcp" |
| "sampling": {}, | ||
| // 摄像头视觉相关(可选) | ||
| "vision": { | ||
| "url": "<视觉分析接口地址>", // 图片处理地址,设备端从此字段读取 |
There was a problem hiding this comment.
No description provided.