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

113 lines (112 loc) 3 kB
import { z } from 'zod'; /** * Schema for the login tool arguments */ export declare const LoginToolArgsSchema: z.ZodObject<{ /** * Whether to launch the browser automatically */ launchBrowser: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; /** * Whether to automatically poll for authentication completion */ autoPoll: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { launchBrowser: boolean; autoPoll: boolean; }, { launchBrowser?: boolean | undefined; autoPoll?: boolean | undefined; }>; /** * Type definition from the LoginToolArgsSchema Zod schema */ export type LoginToolArgsType = z.infer<typeof LoginToolArgsSchema>; /** * Schema for the status tool arguments (empty object as it takes no arguments) */ export declare const StatusToolArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; /** * Schema for the List Accounts tool arguments (empty object as it takes no arguments) */ export declare const ListAccountsArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; /** * Type definition from the ListAccountsArgsSchema Zod schema */ export type ListAccountsArgsType = z.infer<typeof ListAccountsArgsSchema>; /** * Schema for the Execute Command tool arguments */ export declare const ExecCommandToolArgs: z.ZodObject<{ /** * AWS account ID (12-digit number) */ accountId: z.ZodString; /** * AWS role name to assume via SSO */ roleName: z.ZodString; /** * AWS region to use (optional) */ region: z.ZodOptional<z.ZodString>; /** * AWS CLI command to execute (e.g., "aws s3 ls") */ command: z.ZodString; }, "strip", z.ZodTypeAny, { accountId: string; roleName: string; command: string; region?: string | undefined; }, { accountId: string; roleName: string; command: string; region?: string | undefined; }>; /** * Type definition from the ExecCommandToolArgs Zod schema */ export type ExecCommandToolArgsType = z.infer<typeof ExecCommandToolArgs>; /** * Schema for the EC2 Execute Command tool arguments */ export declare const Ec2ExecCommandToolArgs: z.ZodObject<{ /** * EC2 instance ID */ instanceId: z.ZodString; /** * AWS account ID (12-digit number) */ accountId: z.ZodString; /** * AWS role name to assume */ roleName: z.ZodString; /** * AWS region */ region: z.ZodOptional<z.ZodString>; /** * Shell command to execute on the instance */ command: z.ZodString; }, "strip", z.ZodTypeAny, { accountId: string; roleName: string; instanceId: string; command: string; region?: string | undefined; }, { accountId: string; roleName: string; instanceId: string; command: string; region?: string | undefined; }>; /** * Type definition from the Ec2ExecCommandToolArgs Zod schema */ export type Ec2ExecCommandToolArgsType = z.infer<typeof Ec2ExecCommandToolArgs>;