initial commit

This commit is contained in:
CamelAIorg 2025-07-29 23:57:16 +08:00
commit f6dd426830
1145 changed files with 102834 additions and 0 deletions

View file

@ -0,0 +1,18 @@
from fastapi import APIRouter
from app.utils.toolkit.notion_mcp_toolkit import NotionMCPToolkit
router = APIRouter(tags=["task"])
@router.post("/install/tool/{tool}", name="install tool")
async def install_tool(tool: str):
if tool == "notion":
toolkit = NotionMCPToolkit(tool)
await toolkit.connect()
else:
return {"error": "Tool not found"}
tools = [tool.func.__name__ for tool in toolkit.get_tools()]
await toolkit.disconnect()
return tools