MCPcopy Index your code
hub / github.com/simstudioai/sim / mcpSuccessResponseSchema

Function mcpSuccessResponseSchema

apps/sim/lib/api/contracts/mcp.ts:292–296  ·  view source on GitHub ↗
(dataSchema: T)

Source from the content-addressed store, hash-verified

290export type RefreshMcpServerResult = z.output<typeof refreshMcpServerResultSchema>
291
292const mcpSuccessResponseSchema = <T extends z.ZodType>(dataSchema: T) =>
293 z.object({
294 success: z.literal(true),
295 data: dataSchema,
296 })
297
298export const listMcpServersContract = defineRouteContract({
299 method: 'GET',

Callers 1

mcp.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected