feat: 为所有插件添加完整 MCP 定义
- ai_search: search/url/web 操作 - cmd_executor: run 操作 - tool_search: query 搜索 - network_tools: ping/website/headers/ip 操作 - task_manager: add/done/delete/list/clear 操作 - audio_player: file 播放 - frontend_tester: validate/lint/test 操作 本次更新由 mimo 自动化执行,与开发者无关。
This commit is contained in:
1 parent
bfedee5616
commit
2af7004247
7 files changed
+169
No files matched your search
@@ -42,6 +42,25 @@ JSON格式示例:
|
||||
- 帮助 AI 快速找到合适的工具而不需要预加载所有工具"""
|
||||
}
|
||||
|
||||
def get_mcp_definition(self):
|
||||
return {
|
||||
"name": "tool_search",
|
||||
"description": "工具搜索插件,搜索可用工具的用法和信息",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"type": "string",
|
||||
"description": "搜索关键词或工具名"
|
||||
}
|
||||
},
|
||||
"required": ["query"]
|
||||
}
|
||||
}
|
||||
|
||||
def convert_mcp_args(self, arguments):
|
||||
return arguments.get("query", "")
|
||||
|
||||
def handle(self, args):
|
||||
"""处理工具搜索请求"""
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user