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

+27
View File
@@ -60,6 +60,33 @@ cmd_executor <操作> <参数>
{"action": "use_tool", "tool": "cmd_executor", "args": "run tasklist"} - 列出所有进程
注意:仅限Windows环境使用"""
}
def get_mcp_definition(self):
return {
"name": "cmd_executor",
"description": "CMD命令执行工具,用于执行系统命令行指令",
"inputSchema": {
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": ["run"],
"description": "操作类型,固定为 run"
},
"command": {
"type": "string",
"description": "要执行的命令(如 dir, ipconfig, ls -la)"
}
},
"required": ["operation", "command"]
}
}
def convert_mcp_args(self, arguments):
op = arguments.get("operation", "run")
cmd = arguments.get("command", "")
return f"{op} {cmd}"
def handle(self, args):
"""处理CMD命令执行请求"""
try: