export function createMcpApi(registry) {
    return {
        listServerNames() {
            return registry.serverNames;
        },
        listServers() {
            return registry.listServers();
        },
        listServerSecurity() {
            return registry.listServerSecurity();
        },
        listSandboxBindings() {
            return registry.listServerSandboxBindings();
        },
        listRecentSecurityDecisions(limit = 8) {
            return registry.listRecentSecurityDecisions(limit);
        },
        listAllTools() {
            return registry.listAllTools();
        },
        setServerTrustMode(serverName, mode) {
            registry.setServerTrustMode(serverName, mode);
        },
        setServerRole(serverName, role) {
            registry.setServerRole(serverName, role);
        },
        quarantineSchema(serverName, reason, detail) {
            registry.quarantineSchema(serverName, reason, detail);
        },
        approveSchemaQuarantine(serverName, operatorId) {
            registry.approveSchemaQuarantine(serverName, operatorId);
        },
    };
}
