feat: Fusion ACC-2.1 — preset connecteur TikTak (MCP) et outils agent mcp_tiktak_* (#19)
FlowDeck CI / lint (push) Failing after 2m9s
FlowDeck CI / test (push) Failing after 29m1s
FlowDeck CI / docker (push) Skipped

This commit is contained in:
Spark
2026-10-20 23:23:26 -04:00
parent d8548eede9
commit 6a75b189ec
8 changed files with 178 additions and 8 deletions
+3 -2
View File
@@ -81,7 +81,7 @@ def _server(connector_id: int) -> dict:
row = get(connector_id)
if row is None:
raise ValueError("Serveur MCP introuvable")
if row["kind"] != "mcp":
if row["kind"] not in ("mcp", "tiktak"):
raise ValueError("Ce connecteur n'est pas un serveur MCP")
if not row["enabled"]:
raise ValueError("Serveur MCP désactivé")
@@ -136,7 +136,8 @@ def cached_tools() -> list[dict]:
"""Outils MCP des serveurs **activés** (cache en base) — lu par ToolRegistry."""
with get_conn() as conn:
rows = conn.execute(
"SELECT id, tools_json FROM agent_connectors WHERE kind='mcp' AND enabled=1"
"SELECT id, tools_json FROM agent_connectors "
"WHERE kind IN ('mcp', 'tiktak') AND enabled=1"
).fetchall()
out: list[dict] = []
for r in rows: