UNPKG

@mseep/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

16 lines (15 loc) 787 B
/** * Parse a command string into an array of arguments, properly handling quoted strings * * This function splits a command string into an array of arguments while preserving * quoted sections as single arguments. Both single and double quotes are supported. * * Examples: * - parseCommand('aws s3 ls') => ['aws', 's3', 'ls'] * - parseCommand('aws s3 cp "file with spaces.txt" s3://bucket/') => ['aws', 's3', 'cp', 'file with spaces.txt', 's3://bucket/'] * - parseCommand("aws ec2 run-instances --image-id 'ami-12345' --count 1") => ['aws', 'ec2', 'run-instances', '--image-id', 'ami-12345', '--count', '1'] * * @param commandString The command string to parse * @returns Array of command arguments */ export declare function parseCommand(commandString: string): string[];