UNPKG

@aashari/mcp-server-aws-sso

Version:

Node.js/TypeScript MCP server for AWS Single Sign-On (SSO). Enables AI systems (LLMs) with tools to initiate SSO login (device auth flow), list accounts/roles, and securely execute AWS CLI commands using temporary credentials. Streamlines AI interaction w

24 lines (23 loc) 902 B
import { ErrorCode, ErrorContext } from './error-types.util.js'; /** * Create user-friendly error messages based on error type and context * @param code The error code * @param context Context information for better error messages * @param originalMessage The original error message * @returns User-friendly error message */ export declare function createUserFriendlyErrorMessage(code: ErrorCode, context?: ErrorContext, originalMessage?: string): string; /** * Format an error for CLI output in the same Markdown style as successful responses * @param error The error to format * @param context Additional context for formatting * @returns Markdown formatted error message */ export declare function formatCliError(error: unknown, context?: { title?: string; accountId?: string; roleName?: string; region?: string; command?: string; instanceId?: string; }): string;