@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
40 lines (39 loc) • 1.47 kB
TypeScript
import { ControllerResponse } from '../types/common.types.js';
import { ListRolesOptions } from './aws.sso.accounts.types.js';
/**
* List all AWS accounts and their roles
*
* Retrieves and formats all available AWS accounts and the roles the user
* can assume in each account via AWS SSO. Groups roles by account for better organization.
*
* @async
* @returns {Promise<ControllerResponse>} Response with comprehensive formatted list of accounts and roles
* @throws {Error} If account listing fails or authentication is required
* @example
* // List all accounts and their roles
* const result = await listAccounts();
*/
declare function listAccounts(): Promise<ControllerResponse>;
/**
* List roles available for a specified AWS account
*
* Retrieves and formats all IAM roles the authenticated user can assume
* in a specific AWS account via SSO.
*
* @async
* @param {ListRolesOptions} params - Role listing parameters
* @returns {Promise<ControllerResponse>} Response with formatted list of available roles
* @throws {Error} If role listing fails or authentication is invalid
* @example
* // List roles for account 123456789012
* const result = await listRoles({
* accessToken: "token-value",
* accountId: "123456789012"
* });
*/
declare function listRoles(params: ListRolesOptions): Promise<ControllerResponse>;
declare const _default: {
listAccounts: typeof listAccounts;
listRoles: typeof listRoles;
};
export default _default;