@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
45 lines (44 loc) • 1.31 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExecToolArgs = exports.ListAccountsArgs = exports.LoginArgs = void 0;
const zod_1 = require("zod");
/**
* Schema for the login tool
*/
exports.LoginArgs = zod_1.z.object({
launchBrowser: zod_1.z
.boolean()
.optional()
.default(true)
.describe('Whether to automatically launch a browser for authentication (default: true)'),
});
/**
* Schema for the list accounts tool
*/
exports.ListAccountsArgs = zod_1.z.object({
// No parameters - always list all accounts with all roles
});
/**
* Schema for the Execute Command tool arguments
*/
exports.ExecToolArgs = zod_1.z.object({
/**
* AWS account ID (12-digit number)
*/
accountId: zod_1.z.string().min(12).describe('AWS account ID (12-digit number)'),
/**
* AWS role name to assume via SSO
*/
roleName: zod_1.z.string().min(1).describe('AWS role name to assume via SSO'),
/**
* AWS region to use (optional)
*/
region: zod_1.z.string().optional().describe('AWS region to use (optional)'),
/**
* AWS CLI command to execute (e.g., "aws s3 ls")
*/
command: zod_1.z
.string()
.min(1)
.describe('AWS CLI command to execute (e.g., "aws s3 ls")'),
});
;