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
{{ message }}
Repository navigation
Commit ee5646c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/lib/api/mcp/server.ts
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,11 @@ const callInput = z
66
66
.record(z.string(),z.string())
67
67
.optional()
68
68
.describe('Request headers the operation declares, such as upload-token.'),
69
-
body: z.unknown().optional().describe('JSON request body, as describe_operation specifies.'),
69
+
body: z
70
+
.record(z.string(),z.unknown())
71
+
.meta({additionalProperties: true})
72
+
.optional()
73
+
.describe('JSON request body, as describe_operation specifies.'),
70
74
})
71
75
.strict()
72
76
@@ -109,7 +113,12 @@ export function createSimMcpServer(context: Omit<McpDispatchContext, 'signal'>):
109
113
description:
110
114
'Find Sim API operations by keyword or domain. Returns each operation’s name, HTTP method, path, summary, and the tool that runs it. Call without a query to list a domain.',
@@ -138,7 +152,12 @@ export function createSimMcpServer(context: Omit<McpDispatchContext, 'signal'>):
138
152
description:
139
153
'Run a Sim API operation that only reads, such as listWorkspaces, listTables, queryRows, or getWorkflowRun. search_operations says which tool runs each operation.',
0 commit comments