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

52 lines (51 loc) 1.2 kB
import { Ec2CommandExecutionResult } from '../controllers/aws.sso.ec2.types.js'; /** * Interface for parameters to execute an EC2 command via SSM */ export interface ExecuteEc2CommandParams { /** * EC2 instance ID */ instanceId: string; /** * AWS account ID */ accountId: string; /** * AWS role name */ roleName: string; /** * Shell command to execute */ command: string; /** * AWS region */ region?: string; /** * Command execution timeout in milliseconds */ timeout?: number; /** * Whether to force refresh credentials */ forceRefresh?: boolean; } /** * Interface for EC2 command execution results */ export interface ExtendedEc2CommandResult extends Ec2CommandExecutionResult { /** * Instance name if available */ instanceName?: string; } /** * Execute a shell command on an EC2 instance via SSM * * @param params Parameters for command execution * @returns Command execution result * @throws Error if the command execution fails */ export declare function executeEc2Command(params: ExecuteEc2CommandParams): Promise<ExtendedEc2CommandResult>;