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:
Xiaoli Dev committed 2026-04-25 11:16:05 +08:00
1 parent bfedee5616
commit 2af7004247
7 files changed
+169

No files matched your search

+26
View File
@@ -79,6 +79,32 @@ JSON格式示例:
{"action": "use_tool", "tool": "network_tools", "args": "ip www.example.com"} - 获取网站IP地址"""
}
def get_mcp_definition(self):
return {
"name": "network_tools",
"description": "网络工具,用于测试连通性、获取网页内容、解析IP等",
"inputSchema": {
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": ["ping", "website", "headers", "ip"],
"description": "操作类型"
},
"target": {
"type": "string",
"description": "目标网址或IP"
}
},
"required": ["operation", "target"]
}
}
def convert_mcp_args(self, arguments):
op = arguments.get("operation", "")
target = arguments.get("target", "")
return f"{op} {target}"
def handle(self, args):
"""处理网络工具请求"""
try: