( storedSchema: McpToolSchema | undefined, serverSchema: McpToolSchema | undefined )
| 27 | } |
| 28 | |
| 29 | export 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. |
no test coverage detected