MCPValidationService

Existence and dependency validation of MCP (Model Context Protocol) instances.

Tracks every registered MCP and verifies at use time that a referenced MCP exists and its strategy dependency is valid. Registration here is uniqueness-guarded, unlike the schema registry where re-registering replaces the record.

constructor();
loggerService: any
strategyValidationService: any
_mcpMap: any
addMCP: (mcpName: string, mcpSchema: IMCPSchema) => void

Tracks an MCP (Model Context Protocol) instance for validation. Called on schema registration; duplicate names are rejected.

validate: (mcpName: string, source: string) => void

Validates that an MCP (Model Context Protocol) instance is registered and its strategy dependency passes validation. Memoized by MCP name — the check runs once per name, later calls are no-ops.

list: () => Promise<IMCPSchema[]>

Lists every tracked MCP (Model Context Protocol) schema.