@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
17 lines (16 loc) • 905 B
TypeScript
import { CommandExecutionResult } from '../controllers/aws.sso.exec.types.js';
/**
* Execute AWS CLI command with temporary credentials
*
* Gets temporary credentials for the specified account and role, then executes
* the AWS CLI command with those credentials in the environment.
*
* @param {string} accountId - AWS account ID to get credentials for
* @param {string} roleName - AWS role name to assume via SSO
* @param {string[]} command - AWS CLI command and arguments as array
* @param {string} [region] - Optional AWS region override
* @returns {Promise<CommandExecutionResult>} Command execution result with stdout, stderr, and exit code
* @throws {Error} If credentials cannot be obtained or command execution fails
*/
declare function executeCommand(accountId: string, roleName: string, command: string[], region?: string): Promise<CommandExecutionResult>;
export { executeCommand };