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
@@ -69,6 +69,32 @@ JSON格式示例:
{\"action\": \"use_tool\", \"tool\": \"ai_search\", \"args\": \"web 什么是人工智能\"} - 搜索网络内容"""
}
def get_mcp_definition(self):
return {
"name": "ai_search",
"description": "AI搜索工具,支持网址内容提取和网络搜索",
"inputSchema": {
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": ["search", "url", "web"],
"description": "操作类型: search(搜索), url(提取网址内容), web(网络搜索)"
},
"query": {
"type": "string",
"description": "搜索词或网址"
}
},
"required": ["operation", "query"]
}
}
def convert_mcp_args(self, arguments):
op = arguments.get("operation", "")
query = arguments.get("query", "")
return f"{op} {query}"
def handle(self, args):
"""处理AI搜索请求"""
try: