MCPcopy Create free account
hub / github.com/freecodexyz/free-code / commandArraysMatch

Function commandArraysMatch

src/services/mcp/config.ts:149–154  ·  view source on GitHub ↗

* Check if two command arrays match exactly

(a: string[], b: string[])

Source from the content-addressed store, hash-verified

147 * Check if two command arrays match exactly
148 */
149function commandArraysMatch(a: string[], b: string[]): boolean {
150 if (a.length !== b.length) {
151 return false
152 }
153 return a.every((val, idx) => val === b[idx])
154}
155
156/**
157 * Extract URL from server config (remote servers only)

Callers 2

isMcpServerDeniedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected