UNPKG

ludus-mcp

Version:

MCP server for managing Ludus cybersecurity training environments through natural language commands

56 lines 1.87 kB
/** * Keyring utility for secure credential storage * Uses OS-level keyring services for maximum security */ /** * Credential keys used by the MCP server */ export declare const CREDENTIAL_KEYS: { readonly ADMIN_USER: "admin-user"; readonly CONNECTION_METHOD: "connection-method"; readonly WIREGUARD_CONFIG_PATH: "wireguard-config-path"; readonly API_KEY: "api-key"; readonly SSH_HOST: "ssh-host"; readonly SSH_USER: "ssh-user"; readonly SSH_AUTH_METHOD: "ssh-auth-method"; readonly SSH_PASSWORD: "ssh-password"; readonly SSH_KEY_PATH: "ssh-key-path"; readonly SSH_KEY_PASSPHRASE: "ssh-key-passphrase"; }; /** * Store a credential in the OS keyring */ export declare function storeCredential(key: string, value: string): Promise<void>; /** * Retrieve a credential from the OS keyring */ export declare function getCredential(key: string): Promise<string | null>; /** * Delete a credential from the OS keyring */ export declare function deleteCredential(key: string): Promise<boolean>; /** * Check if a credential exists in the keyring */ export declare function hasCredential(key: string): Promise<boolean>; /** * Store multiple credentials at once */ export declare function storeCredentials(credentials: Record<string, string>): Promise<void>; /** * Retrieve multiple credentials at once */ export declare function getCredentials(keys: string[]): Promise<Record<string, string | null>>; /** * Clear all MCP server credentials from the keyring */ export declare function clearAllCredentials(): Promise<void>; /** * Check if keyring is available on this system */ export declare function isKeyringSupportAvailable(): boolean; /** * Get a summary of stored credentials (for debugging) */ export declare function getCredentialSummary(): Promise<Record<string, boolean>>; //# sourceMappingURL=keyring.d.ts.map