@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
41 lines (40 loc) • 1.36 kB
TypeScript
import { z } from 'zod';
/**
* Make a POST request to a URL with JSON body
* @param url The URL to post to
* @param data The data to send in the request body
* @returns The JSON response
*/
export declare function post<T>(url: string, data: Record<string, unknown>): Promise<T>;
/**
* Zod schema for client registration response
*/
export declare const ClientRegistrationResponseSchema: z.ZodObject<{
clientId: z.ZodString;
clientSecret: z.ZodString;
expiresAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
* Zod schema for device authorization response
*/
export declare const DeviceAuthorizationResponseSchema: z.ZodObject<{
deviceCode: z.ZodString;
userCode: z.ZodString;
verificationUri: z.ZodString;
verificationUriComplete: z.ZodString;
expiresIn: z.ZodNumber;
interval: z.ZodNumber;
}, z.core.$strip>;
/**
* Zod schema for token response
*/
export declare const TokenResponseSchema: z.ZodObject<{
accessToken: z.ZodOptional<z.ZodString>;
access_token: z.ZodOptional<z.ZodString>;
refreshToken: z.ZodNullable<z.ZodOptional<z.ZodString>>;
refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
tokenType: z.ZodOptional<z.ZodString>;
token_type: z.ZodOptional<z.ZodString>;
expires_in: z.ZodOptional<z.ZodNumber>;
expiresIn: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;