export const mcpHealthCheckDependencyDeclarations = [
    { dependencyId: "runtime.execEngine.mcp.checkHealth", kind: "service", required: true, description: "Runtime-owned MCP health check support." },
    { dependencyId: "runtime.governancePlane.mcpApproval", kind: "permission", required: true, description: "dryRun:false requires explicit guard approval before health probing runtime MCP." },
];
export function createHostExecutorMcpHealthCheckProvider(executor) {
    const checkHealth = executor?.mcp?.checkHealth;
    if (checkHealth === undefined)
        return undefined;
    return async (request, context) => {
        const result = await checkHealth({ ...request, context });
        if (!result.ok)
            throw new Error(result.error.message);
        return result.output;
    };
}
