Fix MCP action routing for workspace_db_query
This commit is contained in:
@@ -1879,7 +1879,8 @@ export async function executeMcpTool(
|
||||
if (toolName === "http_fetch") return executeHttpFetch(args);
|
||||
|
||||
// Convert underscore tool name → dotted MCP action (apps_create → apps.create)
|
||||
const action = toolName.replace(/_/g, ".");
|
||||
let action = toolName.replace(/_/g, ".");
|
||||
if (toolName === "workspace_db_query") action = "workspace.db_query";
|
||||
|
||||
// Unpack JSON-string args (Gemini schemas can't represent free-form objects,
|
||||
// so we accept *Json string fields and parse them server-side).
|
||||
|
||||
Reference in New Issue
Block a user