@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
65 lines (64 loc) • 2.35 kB
TypeScript
/**
* Format a date in a standardized way: YYYY-MM-DD HH:MM:SS UTC
* @param dateInput - ISO date string, Date object, or timestamp number
* @returns Formatted date string
*/
export declare function formatDate(dateInput?: string | Date | number): string;
/**
* Format a heading with consistent style
* @param text - Heading text
* @param level - Heading level (1-6)
* @returns Formatted heading
*/
export declare function formatHeading(text: string, level?: number): string;
/**
* Format a code block with the given content
* @param content Code content
* @param language Optional language for syntax highlighting
* @returns Formatted code block
*/
export declare function formatCodeBlock(content: string, language?: string): string;
/**
* Format a URL as a markdown link
* @param url - URL to format
* @param title - Link title
* @returns Formatted markdown link
*/
export declare function formatUrl(url?: string, title?: string): string;
/**
* Format a separator line
* @returns Separator line
*/
export declare function formatSeparator(): string;
/**
* Format a list of key-value pairs as a bullet list
* @param items - Object with key-value pairs
* @param keyFormatter - Optional function to format keys
* @returns Formatted bullet list
*/
export declare function formatBulletList(items: Record<string, unknown>, keyFormatter?: (key: string) => string): string;
/**
* Base formatter for command execution results
* Creates a standard Markdown format for command output
*
* @param title Title for the output (e.g., "AWS SSO: Command Output")
* @param contextProps Properties to display in the context section
* @param outputSections Array of sections to add (each with heading and content)
* @param footerInfo Additional footer information before the timestamp
* @param identityInfo Optional identity and region information
* @returns Formatted Markdown string
*/
export declare function baseCommandFormatter(title: string, contextProps: Record<string, unknown>, outputSections: Array<{
heading: string;
level?: number;
content: string | string[];
isCodeBlock?: boolean;
language?: string;
}>, footerInfo?: string | string[], identityInfo?: {
defaultRegion?: string;
selectedRegion?: string;
identity?: {
accountId?: string;
roleName?: string;
};
}): string;