You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checked against the prod replica rather than reasoning about it, and every
case this guarded has zero instances:
- `workflow_mcp_tool`: 470 properties, 0 declare an `enum` at all.
- MCP blocks' cached `_toolSchema`: 6 enums, all `type: 'string'` with string
members. No untyped enum, no `null`/number/boolean member.
- Stored MCP block arguments (179): 0 stringified booleans, 0 stringified
nulls. Booleans and numbers are already persisted with their real types.
- Agent MCP tool-row params (10,022): 0 stringified booleans, 0 stringified
nulls, 4 stringified numbers — already covered by the `type: number`
coercion that predates this branch.
For a string enum `String(member) === value` returns the same string, so the
whole path was a no-op on every row in production while adding a coercion at
an authorized use case plus a validation widening to keep that coercion safe.
The dropdown already persists the member (679325a), so nothing downstream
has to reverse the encoding.
`enumMemberShape` goes with it — every real enum declares a type, so member
inference never runs. The declared-type-first ordering stays: it is a
precedence fix, not a layer. `getJsonSchemaValueShape` is private again.
`lib/mcp/application/execute-tool.ts` is byte-identical to 679325a.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/mcp-dynamic-args/mcp-dynamic-args.tsx
+1-8Lines changed: 1 addition & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ import { useActiveSearchTarget } from '@/app/workspace/[workspaceId]/w/[workflow
0 commit comments