@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
32 lines (31 loc) • 1.3 kB
TypeScript
import { CommandExecutionResult } from './aws.sso.exec.types.js';
/**
* Format authentication required message
*
* Creates a standardized message indicating AWS SSO authentication is required
* before command execution can proceed.
*
* @returns {string} Formatted authentication required message in markdown
*/
export declare function formatAuthRequired(): string;
/**
* Format command execution output
*
* Creates a detailed Markdown representation of command execution results,
* including the command that was run, exit code, and standard output/error streams.
*
* @param {string} command - Command that was executed
* @param {string} stdout - Standard output from the command
* @param {string} stderr - Standard error from the command
* @param {number} exitCode - Exit code from the command
* @returns {string} Formatted command execution output in markdown
*/
export declare function formatCommandOutput(command: string, stdout: string, stderr: string, exitCode: number): string;
/**
* Format command execution result into markdown
*
* @param command The command that was executed
* @param result The result of the command execution
* @returns Formatted output as Markdown
*/
export declare function formatExecResult(command: string, result: CommandExecutionResult): string;