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

Function hasSchemaChanged

apps/sim/lib/mcp/tool-validation.ts:29–39  ·  view source on GitHub ↗
(
  storedSchema: McpToolSchema | undefined,
  serverSchema: McpToolSchema | undefined
)

Source from the content-addressed store, hash-verified

27}
28
29export function hasSchemaChanged(
30 storedSchema: McpToolSchema | undefined,
31 serverSchema: McpToolSchema | undefined
32): boolean {
33 if (!storedSchema || !serverSchema) return false
34
35 const storedWithoutDesc = omit(storedSchema, ['description'])
36 const serverWithoutDesc = omit(serverSchema, ['description'])
37
38 return !isEqual(storedWithoutDesc, serverWithoutDesc)
39}
40
41/**
42 * Validates server-level connectivity for an MCP server.

Callers 2

getMcpToolIssueFunction · 0.85

Calls 1

omitFunction · 0.85

Tested by

no test coverage detected