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
@@ -77,6 +77,32 @@ JSON格式示例:
|
||||
return f"保存任务失败: {e}"
|
||||
return None
|
||||
|
||||
def get_mcp_definition(self):
|
||||
return {
|
||||
"name": "task_manager",
|
||||
"description": "任务管理工具,支持添加、完成、删除任务",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"operation": {
|
||||
"type": "string",
|
||||
"enum": ["add", "done", "delete", "list", "clear"],
|
||||
"description": "操作类型"
|
||||
},
|
||||
"task": {
|
||||
"type": "string",
|
||||
"description": "任务内容(add/done/delete 时使用)"
|
||||
}
|
||||
},
|
||||
"required": ["operation"]
|
||||
}
|
||||
}
|
||||
|
||||
def convert_mcp_args(self, arguments):
|
||||
op = arguments.get("operation", "")
|
||||
task = arguments.get("task", "")
|
||||
return f"{op} {task}".strip()
|
||||
|
||||
def handle(self, args):
|
||||
"""处理任务管理请求"""
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user