fix: 修复MCP工具定义与文档描述 (#51)
* docs: 更新README添加评论功能说明 - 新增第6个主要功能:发表评论到帖子 - 添加评论功能的视频演示 - 更新MCP工具列表,包含post_comment_to_feed - 补充遗漏的get_feed_detail工具 - 更新工具总数从4个到6个 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: 修复MCP工具定义与文档描述不一致问题 修复publish_content工具定义: - 删除不存在的video参数 - 将images添加到required字段 - 更新标题描述添加字数限制说明 - 修正工具描述为"发布小红书图文内容" 更新README.md文档: - 修正publish_content参数说明(images必需,不支持video) - 确保文档与实际MCP工具定义一致 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -166,13 +166,13 @@ func (s *AppServer) processToolsList(request *JSONRPCRequest) *JSONRPCResponse {
|
||||
},
|
||||
{
|
||||
"name": "publish_content",
|
||||
"description": "发布小红书内容(支持图文或视频)",
|
||||
"description": "发布小红书图文内容",
|
||||
"inputSchema": map[string]interface{}{
|
||||
"type": "object",
|
||||
"properties": map[string]interface{}{
|
||||
"title": map[string]interface{}{
|
||||
"type": "string",
|
||||
"description": "内容标题",
|
||||
"description": "内容标题(小红书限制:最多20个中文字或英文单词)",
|
||||
},
|
||||
"content": map[string]interface{}{
|
||||
"type": "string",
|
||||
@@ -180,17 +180,14 @@ func (s *AppServer) processToolsList(request *JSONRPCRequest) *JSONRPCResponse {
|
||||
},
|
||||
"images": map[string]interface{}{
|
||||
"type": "array",
|
||||
"description": "图片路径列表,支持本地路径或URL",
|
||||
"description": "图片路径列表,支持本地路径或URL(至少需要1张图片)",
|
||||
"items": map[string]interface{}{
|
||||
"type": "string",
|
||||
},
|
||||
},
|
||||
"video": map[string]interface{}{
|
||||
"type": "string",
|
||||
"description": "视频文件路径(发布视频时使用)",
|
||||
"minItems": 1,
|
||||
},
|
||||
},
|
||||
"required": []string{"title", "content"},
|
||||
"required": []string{"title", "content", "images"},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user