Skip to content

The open alternative to Salesforce, designed for AI.

Stop flagging MCP execute_tool as destructive (#24995)

Félix Malfait20a8ef39bc28
diff --git a/packages/twenty-server/src/engine/api/mcp/constants/mcp-execute-tool-annotations.const.ts b/packages/twenty-server/src/engine/api/mcp/constants/mcp-execute-tool-annotations.const.ts
index 6a6fb577a28..bab471293a6 100644
--- a/packages/twenty-server/src/engine/api/mcp/constants/mcp-execute-tool-annotations.const.ts
+++ b/packages/twenty-server/src/engine/api/mcp/constants/mcp-execute-tool-annotations.const.ts
@@ -1,7 +1,10 @@
import { type McpToolAnnotations } from 'src/engine/api/mcp/types/mcp-tool-annotations.type';
+// execute_tool dispatches every write, deletes included, but flagging it
+// destructive makes clients gate each call behind a confirmation prompt. What
+// the caller may write is enforced by their role, not by this hint.
export const MCP_EXECUTE_TOOL_ANNOTATIONS: McpToolAnnotations = {
readOnlyHint: false,
openWorldHint: true,
- destructiveHint: true,
+ destructiveHint: false,
};