شعار AWS SSO MCP Server

AWS SSO MCP Server

المجتمع
aashari

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 with AWS resources.

الناشرaashari
المستودعmcp-server-aws-sso
اللغةTypeScript
التفريعات
13
النجوم
15
الأدوات المتاحة
5
نوع نقل البياناتstdio, streamable-http
الفئات
الروابط
  • اربط الأدوات بمسارات عمل الذكاء الاصطناعي

    يتيح AWS SSO MCP Server إمكانات MCP لتطبيقات الذكاء الاصطناعي العميلة المتوافقة معه، وكذلك لوكلاء الذكاء الاصطناعي المتوافقين معه.

  • الأدوات المتاحة: 5

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم مقتطفات التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات اهتمام المجتمع بالمستودع مفتوح المصدر

    إحصاءات المستودع المرتبط: النجوم: 15، والتفريعات: 13.

Connect AI to Your AWS Resources

Transform how you manage and access your AWS infrastructure by connecting Claude, Cursor AI, and other AI assistants directly to your AWS accounts through AWS IAM Identity Center (formerly AWS SSO). Get instant access to your cloud resources, execute commands, and manage EC2 instances using natural language.

NPM Version Node Version

What You Can Do

✅ Ask AI about your AWS accounts: "Show me all my AWS accounts and available roles"
✅ Execute AWS commands: "List all S3 buckets in my production account"
✅ Manage EC2 instances: "Check the disk usage on server i-123456789"
✅ Access multi-account setups: "Switch to the staging account and describe the VPCs"
✅ Monitor resources: "Get the status of all running EC2 instances"
✅ Run shell commands: "Execute 'df -h' on my web server via SSM"

Perfect For

  • DevOps Engineers managing multi-account AWS environments and infrastructure automation
  • Cloud Architects needing quick access to resource information across AWS accounts
  • Developers who want to check deployments and run AWS CLI commands through AI
  • SRE Teams monitoring and troubleshooting AWS resources using natural language
  • IT Administrators managing EC2 instances and executing remote commands securely
  • Anyone who wants to interact with AWS using conversational AI

Quick Start

Get up and running in 2 minutes:

1. Get Your AWS SSO Setup

Set up AWS IAM Identity Center:

  1. Enable AWS IAM Identity Center in your AWS account
  2. Configure your identity source (AWS directory, Active Directory, or external IdP)
  3. Set up permission sets and assign users to AWS accounts
  4. Note your AWS SSO Start URL (e.g., https://your-company.awsapps.com/start)

2. Try It Instantly

bash
# Set your AWS SSO configuration
export AWS_SSO_START_URL="https://your-company.awsapps.com/start"
export AWS_REGION="us-east-1"

# Start the authentication flow
npx -y @aashari/mcp-server-aws-sso login

# List your accessible accounts and roles
npx -y @aashari/mcp-server-aws-sso ls-accounts

# Execute an AWS command
npx -y @aashari/mcp-server-aws-sso exec-command \
  --account-id 123456789012 \
  --role-name ReadOnly \
  --command "aws s3 ls"

Connect to AI Assistants

For Claude Desktop Users

Add this to your Claude configuration file (~/.claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "aws-sso": {
      "command": "npx",
      "args": ["-y", "@aashari/mcp-server-aws-sso"],
      "env": {
        "AWS_SSO_START_URL": "https://your-company.awsapps.com/start",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

Restart Claude Desktop, and you'll see "🔗 aws-sso" in the status bar.

For Other AI Assistants

Most AI assistants support MCP. Install the server globally:

bash
npm install -g @aashari/mcp-server-aws-sso

Then configure your AI assistant to use the MCP server with STDIO transport.

Alternative: Configuration File

Create ~/.mcp/configs.json for system-wide configuration:

json
{
  "aws-sso": {
    "environments": {
      "AWS_SSO_START_URL": "https://your-company.awsapps.com/start",
      "AWS_REGION": "us-east-1",
      "DEBUG": "false"
    }
  }
}

Alternative config keys: The system also accepts "@aashari/mcp-server-aws-sso" or "mcp-server-aws-sso" instead of "aws-sso".

Real-World Examples

🔐 Authenticate and Explore

Ask your AI assistant:

  • "Log into AWS SSO and show me my authentication status"
  • "List all my AWS accounts and the roles I can assume"
  • "Check if I'm still authenticated to AWS"
  • "Show me which AWS accounts I have access to"

🛠️ Execute AWS Commands

Ask your AI assistant:

  • "List all S3 buckets in my production account using the ReadOnly role"
  • "Show me all running EC2 instances in the us-west-2 region"
  • "Describe the VPCs in my staging AWS account"
  • "Get the status of my RDS databases in account 123456789012"

🖥️ Manage EC2 Instances

Ask your AI assistant:

  • "Check the disk usage on EC2 instance i-1234567890abcdef0"
  • "Run 'uptime' on my web server via Systems Manager"
  • "Execute 'systemctl status nginx' on instance i-abc123 in production"
  • "Get memory usage from all my application servers"

🔍 Infrastructure Monitoring

Ask your AI assistant:

  • "List all Lambda functions in my development account"
  • "Show me the CloudFormation stacks in us-east-1"
  • "Check the health of my load balancers"
  • "Get the latest CloudWatch alarms that are in ALARM state"

🔄 Multi-Account Operations

Ask your AI assistant:

  • "Switch to account 987654321098 with AdminRole and list all security groups"
  • "Compare the running instances between staging and production accounts"
  • "Check backup policies across all my AWS accounts"
  • "Audit IAM users in the security account"

aws_sso_login

Basic Login:

json
{}

Custom Login Options:

json
{
  "launchBrowser": false
}

aws_sso_status

Check Authentication Status:

json
{}

aws_sso_ls_accounts

List All Accounts and Roles:

json
{}

aws_sso_exec_command

List S3 Buckets:

json
{
  "accountId": "123456789012", 
  "roleName": "ReadOnly",
  "command": "aws s3 ls"
}

Describe EC2 Instances in a Specific Region:

json
{
  "accountId": "123456789012",
  "roleName": "AdminRole",
  "command": "aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,State.Name,InstanceType]' --output table",
  "region": "us-west-2"
}

aws_sso_ec2_exec_command

Check System Resources:

json
{
  "instanceId": "i-0a69e80761897dcce",
  "accountId": "123456789012",
  "roleName": "InfraOps",
  "command": "uptime && df -h && free -m"
}

Transport Modes

This server supports two transport modes for different integration scenarios:

STDIO Transport (Default for MCP Clients)

  • Traditional subprocess communication via stdin/stdout
  • Ideal for local AI assistant integrations (Claude Desktop, Cursor AI)
  • Uses pipe-based communication for direct MCP protocol exchange
bash
# Run with STDIO transport (default for AI assistants)
TRANSPORT_MODE=stdio npx @aashari/mcp-server-aws-sso

# Using npm scripts (after installation)
npm run mcp:stdio

HTTP Transport (Default for Server Mode)

  • Modern HTTP-based transport with Server-Sent Events (SSE)
  • Supports multiple concurrent connections
  • Better for web-based integrations and development
  • Runs on port 3000 by default (configurable via PORT env var)
  • Endpoint: http://localhost:3000/mcp
  • Health check: http://localhost:3000/
bash
# Run with HTTP transport (default when no CLI args)
TRANSPORT_MODE=http npx @aashari/mcp-server-aws-sso

# Using npm scripts (after installation)
npm run mcp:http

# Test with MCP Inspector
npm run mcp:inspect

Environment Variables

Transport Configuration:

  • TRANSPORT_MODE: Set to stdio or http (default: http for server mode, stdio for MCP clients)
  • PORT: HTTP server port (default: 3000)
  • DEBUG: Enable debug logging (default: false)

AWS Configuration:

  • AWS_SSO_START_URL: Your AWS IAM Identity Center start URL (e.g., https://your-org.awsapps.com/start)
  • AWS_SSO_REGION or AWS_REGION: AWS region for SSO authentication (e.g., us-east-1)
  • AWS_PROFILE: AWS profile name (optional, for CLI compatibility)

Available Tools

When integrated with AI assistants via MCP, the following tools are available:

Authentication Tools

  • aws_sso_login: Initiates AWS SSO device authorization flow

    • Parameters: launchBrowser (optional, boolean, default: true)
    • Opens browser automatically for authentication
    • Handles device authorization code flow
    • Caches tokens for subsequent operations
  • aws_sso_status: Checks current authentication status

    • No parameters required
    • Returns session details and expiration time
    • Verifies cached token validity

Account Management Tools

  • aws_sso_ls_accounts: Lists all accessible AWS accounts and roles
    • No parameters required
    • Shows account IDs, names, emails, and available roles
    • Essential for discovering which accounts/roles you can use

Command Execution Tools

  • aws_sso_exec_command: Executes AWS CLI commands with SSO credentials

    • Required: accountId, roleName, command
    • Optional: region
    • Automatically obtains and caches temporary credentials
    • Supports any AWS CLI command
  • aws_sso_ec2_exec_command: Executes shell commands on EC2 instances via SSM

    • Required: instanceId, accountId, roleName, command
    • Optional: region
    • No SSH access required (uses AWS Systems Manager)
    • Instance must have SSM Agent installed

CLI Commands

All tools are also available as CLI commands using kebab-case. Run --help for details (e.g., mcp-aws-sso login --help).

  • login: Authenticates via AWS SSO (--no-launch-browser). Ex: mcp-aws-sso login.
  • status: Checks authentication status (no options). Ex: mcp-aws-sso status.
  • ls-accounts: Lists accounts/roles (no options). Ex: mcp-aws-sso ls-accounts.
  • exec-command: Runs AWS CLI command (--account-id, --role-name, --command, --region). Ex: mcp-aws-sso exec-command --account-id 123456789012 --role-name ReadOnly --command "aws s3 ls".
  • ec2-exec-command: Runs shell command on EC2 (--instance-id, --account-id, --role-name, --command, --region). Ex: mcp-aws-sso ec2-exec-command --instance-id i-0a69e80761897dcce --account-id 123456789012 --role-name InfraOps --command "uptime".

Login

Standard Login (launches browser and polls automatically):

bash
mcp-aws-sso login

Login without Browser Launch:

bash
mcp-aws-sso login --no-launch-browser

Execute AWS Commands

List S3 Buckets:

bash
mcp-aws-sso exec-command \
  --account-id 123456789012 \
  --role-name ReadOnly \
  --command "aws s3 ls"

List EC2 Instances with Specific Region:

bash
mcp-aws-sso exec-command \
  --account-id 123456789012 \
  --role-name AdminRole \
  --region us-west-2 \
  --command "aws ec2 describe-instances --output table"

Execute EC2 Commands

Check System Resources:

bash
mcp-aws-sso ec2-exec-command \
  --instance-id i-0a69e80761897dcce \
  --account-id 123456789012 \
  --role-name InfraOps \
  --command "uptime && df -h && free -m"

Troubleshooting

"Authentication failed" or "Token expired"

  1. Re-authenticate with AWS SSO:

    bash
    # Test your SSO configuration
    npx -y @aashari/mcp-server-aws-sso login
  2. Check your AWS SSO configuration:

    • Verify your AWS_SSO_START_URL is correct (should be your organization's SSO portal)
    • Ensure your AWS_REGION matches your SSO region configuration
  3. Verify your SSO setup:

    • Make sure you can access the SSO portal in your browser
    • Check that your AWS account assignments are active

"Account not found" or "Role not found"

  1. Check available accounts and roles:

    bash
    # List all accessible accounts
    npx -y @aashari/mcp-server-aws-sso ls-accounts
  2. Verify account ID format:

    • Account ID should be exactly 12 digits
    • Use the exact account ID from the ls-accounts output
  3. Check role permissions:

    • Make sure you have permission to assume the specified role
    • Use the exact role name from your permission sets

"AWS CLI not found" or Command execution errors

  1. Install AWS CLI v2:

  2. Test AWS CLI independently:

    bash
    aws --version
    aws sts get-caller-identity

"EC2 command failed" or "SSM connection issues"

  1. Verify EC2 instance setup:

    • Instance must have SSM Agent installed and running
    • Instance needs an IAM role with AmazonSSMManagedInstanceCore policy
  2. Check your role permissions:

    • Your assumed role needs ssm:SendCommand and ssm:GetCommandInvocation permissions
    • Verify the instance is in a running state
  3. Test SSM connectivity:

    bash
    # Test if instance is reachable via SSM
    npx -y @aashari/mcp-server-aws-sso exec-command \
      --account-id YOUR_ACCOUNT \
      --role-name YOUR_ROLE \
      --command "aws ssm describe-instance-information"

Claude Desktop Integration Issues

  1. Restart Claude Desktop after updating the config file
  2. Check the status bar for the "🔗 aws-sso" indicator
  3. Verify config file location:
    • macOS: ~/.claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json

Getting Help

If you're still having issues:

  1. Run a simple test command to verify everything works
  2. Check the GitHub Issues for similar problems
  3. Create a new issue with your error message and setup details

Frequently Asked Questions

What permissions do I need?

For AWS IAM Identity Center (SSO) Setup:

  • Access to AWS IAM Identity Center with a configured identity source
  • Permission sets assigned to you by your AWS administrator
  • Access to the specific AWS accounts you want to manage

For EC2 Commands via SSM:

  • Your assumed role needs ssm:SendCommand and ssm:GetCommandInvocation permissions
  • EC2 instances need an IAM role with AmazonSSMManagedInstanceCore policy
  • SSM Agent must be installed and running on target instances

Can I use this with multiple AWS organizations?

Currently, each installation supports one AWS SSO start URL at a time. For multiple organizations, you can:

  • Switch the AWS_SSO_START_URL environment variable between sessions
  • Run separate instances with different configurations
  • Use multiple Claude Desktop configurations for different organizations

How long do the SSO credentials last?

  • SSO tokens: Typically 8-12 hours (managed by AWS IAM Identity Center)
  • Temporary credentials: Approximately 1 hour per account/role
  • The tool automatically handles token refresh and credential caching
  • You'll be prompted to re-authenticate when tokens expire

What AI assistants does this work with?

Any AI assistant that supports the Model Context Protocol (MCP):

  • Claude Desktop (most popular and well-tested)
  • Cursor AI (code editor with AI)
  • Continue.dev (VS Code extension)
  • Any other MCP-compatible client

Is my data secure?

Yes! This tool prioritizes security:

  • Runs entirely on your local machine (no external servers)
  • Uses your own AWS SSO credentials (no third-party authentication)
  • Never sends your data to third parties
  • Only accesses what you explicitly grant permission to
  • Uses AWS temporary credentials that automatically expire
  • Follows AWS best practices for credential management
  • Credentials are stored in standard AWS locations (~/.aws/)

Do I need AWS CLI installed?

For aws_sso_exec_command: Yes, AWS CLI v2 is required to execute AWS commands.

For other tools: No, authentication (aws_sso_login), status checking (aws_sso_status), and account listing (aws_sso_ls_accounts) work without AWS CLI.

For aws_sso_ec2_exec_command: No, this uses the AWS SDK directly via Systems Manager.

Can I use this with AWS CLI profiles?

This tool uses AWS IAM Identity Center directly and manages its own credential cache. It doesn't require AWS CLI profiles but is compatible with them:

  • The tool stores credentials in ~/.aws/sso/cache/ (standard AWS location)
  • You can optionally set AWS_PROFILE for compatibility with other AWS tools
  • The tool works independently of AWS CLI profile configuration

What's the difference between AWS SSO and AWS IAM Identity Center?

They're the same service! AWS SSO was rebranded to AWS IAM Identity Center in 2022. This tool works with both names:

  • References to "AWS SSO" in the code and documentation refer to AWS IAM Identity Center
  • Your start URL format remains the same: https://your-org.awsapps.com/start
  • All functionality is identical regardless of the naming

What is TOON format?

TOON (Token-Oriented Object Notation) is an output format optimized for Large Language Models:

  • More compact than JSON (saves tokens when sending data to AI)
  • Still human-readable
  • Automatically used when available, falls back to JSON if needed
  • Learn more: @toon-format/toon

Where are logs stored?

Debug logs are written to: ~/.mcp/data/@aashari.mcp-server-aws-sso.[session-id].log

Each session gets a unique log file. Enable debug logging with DEBUG=true.

Output Format (TOON)

Responses are formatted using TOON (Token-Oriented Object Notation) format, which is optimized for LLM token efficiency. TOON provides a more compact representation than JSON while maintaining readability.

Key Features:

  • Automatically converts responses to TOON format when available
  • Falls back to JSON if TOON conversion fails
  • Truncates large responses (>10KB) with a note about the full response location
  • Logs full responses to ~/.mcp/data/@aashari.mcp-server-aws-sso.[session-id].log

MCP Tool Response Example (aws_sso_exec_command)

markdown
# AWS SSO: Command Result

**Account/Role:** 123456789012/ReadOnly
**Region:** us-east-1 (Default: ap-southeast-1)

## Command

	aws s3 ls

## Output

	2023-01-15 08:42:53 my-bucket-1
	2023-05-22 14:18:19 my-bucket-2
	2024-02-10 11:05:37 my-logs-bucket

*Executed: 2025-05-19 06:21:49 UTC*

Error Response Example

markdown
# ❌ AWS SSO: Command Error

**Account/Role:** 123456789012/ReadOnly
**Region:** us-east-1 (Default: ap-southeast-1)

## Command

	aws s3api get-object --bucket restricted-bucket --key secret.txt output.txt

## Error: Permission Denied
The role `ReadOnly` does not have permission to execute this command.

## Error Details

	An error occurred (AccessDenied) when calling the GetObject operation: Access Denied

### Troubleshooting

#### Available Roles
- AdminAccess
- PowerUserAccess
- S3FullAccess

Try executing the command again using one of the roles listed above that has appropriate permissions.

*Executed: 2025-05-19 06:17:49 UTC*

Large Response Handling

When API responses exceed 10KB, the output is truncated with a message:

[Response truncated for AI consumption. Full response logged to: /path/to/log/file.log]

This ensures AI assistants receive manageable response sizes while developers can access full output in log files.

Technical Details

Architecture

This server follows a clean 5-layer architecture:

  1. CLI Layer (src/cli/): Command-line interface using Commander.js
  2. Tools Layer (src/tools/): MCP tool definitions with Zod validation schemas
  3. Controllers Layer (src/controllers/): Business logic and orchestration
  4. Services Layer (src/services/): External API interactions (AWS SDK)
  5. Utils Layer (src/utils/): Shared utilities (logging, config, caching, formatting)

Key Dependencies

  • @modelcontextprotocol/sdk v1.23.0: MCP protocol implementation
  • @aws-sdk/client-sso v3.893.0: AWS SSO API client
  • @aws-sdk/client-ssm v3.893.0: AWS Systems Manager for EC2 commands
  • @toon-format/toon v2.0.1: Token-efficient output formatting
  • zod v4.1.13: Runtime type validation
  • commander v14.0.2: CLI framework

Logging

Debug logs are written to: ~/.mcp/data/@aashari.mcp-server-aws-sso.[session-id].log

Enable debug logging by setting DEBUG=true in your environment.

Caching

  • SSO tokens: Cached in ~/.aws/sso/cache/ (standard AWS location)
  • Temporary credentials: Cached for 1 hour per account/role combination
  • Account information: Fetched fresh on each request (no persistent cache)

Development

bash
# Clone repository
git clone https://github.com/aashari/mcp-server-aws-sso.git
cd mcp-server-aws-sso

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode with HTTP transport
npm run dev:http

# Run with STDIO transport (for MCP client testing)
npm run dev:stdio

# Run with MCP Inspector (visual debugging)
npm run mcp:inspect

# Run tests
npm test

# Run tests with coverage
npm test:coverage

# Lint code
npm run lint

# Format code
npm run format

Available npm Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run mcp:stdio - Run with STDIO transport
  • npm run mcp:http - Run with HTTP transport
  • npm run mcp:inspect - Run with MCP Inspector for debugging
  • npm test - Run Jest tests
  • npm run lint - Run ESLint
  • npm run format - Format code with Prettier

Requirements

  • Node.js: Version 18.0.0 or higher
  • AWS CLI: Version 2.x (required only for aws_sso_exec_command)
  • AWS IAM Identity Center: Configured and accessible
  • Operating System: macOS, Linux, or Windows

Version History

v3.0.1 (Current)

  • Fixed picomatch dependency conflict for npm ci
  • Enhanced raw response logging with truncation for large API responses
  • Improved AI guidance for AWS SSO login instructions

v3.0.0

  • BREAKING: Modernized to @modelcontextprotocol/sdk v1.23.0 with registerTool API
  • Added Node.js version specification (Node 22.14.0 compatibility)
  • Enhanced logging and error handling

v2.0.0

  • BREAKING: Fixed AWS CLI execution and credential region mismatch issues
  • Improved cross-region authentication handling
  • Prevented dotenv from outputting to STDIO in MCP mode

See CHANGELOG.md for complete version history.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

ISC License - See LICENSE file for details

Support

Need help? Here's how to get assistance:

  1. Check the troubleshooting section above - most common issues are covered there
  2. Visit our GitHub repository for documentation and examples: github.com/aashari/mcp-server-aws-sso
  3. Report issues at GitHub Issues
  4. Start a discussion for feature requests or general questions
  5. Check debug logs at ~/.mcp/data/@aashari.mcp-server-aws-sso.[session-id].log for detailed error information

Built with: TypeScript, MCP SDK, AWS SDK for JavaScript v3, TOON Format

Made with care for DevOps teams who want to bring AI into their AWS workflow.

التثبيت

TypingMind
المتطلبات المسبقة:

Node.js 18+

{
  "mcpServers": {
    "aashari-mcp-server-aws-sso": {
      "command": "npx",
      "args": [
        "-y",
        "@aashari/mcp-server-aws-sso"
      ]
    }
  }
}

الأدوات المتاحة

  • aws_sso_login

    Initiates the AWS SSO device authorization flow to obtain temporary credentials. This flow works as follows:

    1. The tool generates a unique user verification code and authentication URL
    2. A browser is opened to the AWS SSO login page (if launchBrowser: true)
    3. You enter the verification code in the browser and complete the AWS SSO login
    4. Background polling automatically collects and caches the token when authentication completes
    5. The cached token is then used by other AWS SSO tools without requiring repeated login

    IMPORTANT FOR AI ASSISTANTS: The tool output includes specific guidance for AI models. When the tool returns authentication instructions:

    • ALWAYS check if a browser window opened automatically by asking the user
    • If browser opened: Guide the user to complete authentication in that window
    • If no browser opened: Instruct the user to manually open the provided URL and enter the verification code
    • Always provide both the verification code and URL as backup inform
  • aws_sso_status

    Checks the current AWS SSO authentication status by verifying if a valid cached token exists and its expiration time.

    This tool does NOT perform authentication itself - it only checks if you're already authenticated. If no valid token exists, it will instruct you to run aws_sso_login.

    A valid cached token is required for all other AWS SSO commands to work. Use this tool to verify authentication status before using commands like aws_sso_ls_accounts or aws_sso_exec_command.

    The tool checks:

    • If a token exists in the cache
    • If the token is still valid (not expired)
    • When the token will expire (if valid)

    Prerequisites:

    • AWS SSO must be configured with a start URL and region (via AWS config file or environment variables)

    Returns Markdown containing:

    • Authentication status (authenticated or not)
    • Session details (expiration time and duration if authenticated)
    • Instructions for next steps based on the status
  • aws_sso_ls_accounts

    Lists all AWS accounts and roles accessible to you through AWS SSO. This tool provides essential information needed for the aws_sso_exec_command tool.

    The tool handles the following:

    • Verifies you have a valid AWS SSO authentication token
    • Fetches all accessible accounts with their IDs, names, and email addresses
    • Retrieves all available roles for each account that you can assume
    • Handles pagination internally to return the complete list in a single call
    • Caches account and role information for better performance

    Prerequisites:

    • You MUST first authenticate successfully using aws_sso_login
    • AWS SSO must be configured with a start URL and region
    • Your AWS SSO permissions determine which accounts and roles are visible

    Returns Markdown containing:

    • Authentication session status and expiration
    • Complete list of available accounts with their IDs, names, and emails
    • Available roles for each account
    • Usage instructions for executing commands with these accounts/roles
    • Messa
  • aws_sso_exec_command

    Executes an AWS CLI command using temporary credentials obtained through AWS SSO. This tool enables you to run AWS CLI commands without manually configuring credentials.

    How it works:

    1. Verifies you have a valid AWS SSO authentication token
    2. Obtains temporary credentials for the specified account and role
    3. Sets up the environment with those credentials
    4. Executes the AWS CLI command you specified
    5. Caches credentials for the account/role combination for future use (typically valid for 1 hour)

    Critical prerequisites:

    • You MUST first authenticate using aws_sso_login to obtain a valid token
    • AWS CLI MUST be installed on the system where the MCP server is running
    • AWS SSO must be configured with a start URL and region
    • You must have permissions to assume the specified role in the specified account

    Required parameters:

    • accountId: The 12-digit AWS account ID (get from aws_sso_ls_accounts)
    • roleName: The IAM role name to assume (get from aws_sso_ls_accounts)
    • `comm
  • aws_sso_ec2_exec_command

    Executes a shell command on an EC2 instance via AWS Systems Manager (SSM) using temporary credentials obtained through AWS SSO. This tool enables running commands on EC2 instances without requiring SSH access or opening inbound ports.

    How it works:

    1. Verifies you have a valid AWS SSO authentication token
    2. Obtains temporary credentials for the specified account and role
    3. Sends the command to the EC2 instance via SSM's RunShellScript document
    4. Polls for command completion (up to 20 seconds)
    5. Returns the command output and execution status

    Critical prerequisites:

    • You MUST first authenticate using aws_sso_login to obtain a valid token
    • The EC2 instance MUST have the SSM Agent installed and running
    • The instance MUST have an IAM role with the AmazonSSMManagedInstanceCore policy
    • Your AWS role MUST have permissions for ssm:SendCommand and ssm:GetCommandInvocation
    • AWS SSO must be configured with a start URL and region

    Required parameters:

    • instanceId: The EC2 insta

استخدم MCP الخاص بـ AWS SSO MCP Server مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل AWS SSO MCP Server، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يمكنك تشغيل MCP محليًا على جهازك أو الاتصال بعنوان URL لخادم MCP بعيد.

الخيار 1: استخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal مفتوحة واترك العملية قيد التشغيل أثناء استخدام أدوات MCP.
3

إضافة AWS SSO MCP Server كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ AWS SSO MCP Server.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "aashari-mcp-server-aws-sso": {
      "command": "npx",
      "args": [
        "-y",
        "@aashari/mcp-server-aws-sso"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ AWS SSO MCP Server، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ AWS SSO MCP Server.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام AWS SSO MCP Server لمساعدتي في هذه المهمة؟
AWS SSO MCP Server
بالتأكيد. قرأته.
إليك ما وجدته باستخدام AWS SSO MCP Server.

الخيار 2: إضافة عنوان URL لخادم MCP

استخدم هذا الخيار عندما يكون AWS SSO MCP Server مستضافًا بالفعل عن بُعد أو عندما يريد فريقك موصلًا مشتركًا واحدًا يمكن لعدة مستخدمين الوصول إليه.

1

فتح موصلات MCP

في TypingMind، انتقل إلى «الإضافات»، وافتح «موصلات MCP»، ثم اختر «إضافة عنوان URL».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل عنوان URL لخادمك في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق عنوان URL لخادمك في حقل «رابط الخادم».
  2. أدخل اسمًا لاتصال AWS SSO MCP Server.
  3. أضف وصفًا وأيقونة لتسهيل التعرّف على الاتصال إن أردت.
  4. أضف ترويسات HTTP مخصصة أو تفاصيل عميل OAuth إذا كان الخادم يتطلب المصادقة.
3

إنشاء الاتصال

انقر على «إنشاء اتصال»، ثم عُد إلى قائمة الإضافات وتأكد من أن اتصال MCP الجديد نشط.

  1. انقر على «إنشاء اتصال».
  2. عُد إلى قائمة موصلات MCP.
  3. تأكد من ظهور اتصال AWS SSO MCP Server بحالة «نشط».
  4. حدّث قائمة الإضافات إذا لم يظهر الاتصال فورًا.
4

تبديل النماذج دون إعادة الاتصال

ابدأ محادثة مع نموذجك المفضل، وفعّل أدوات AWS SSO MCP Server من «الإضافات»، وانتقل إلى نموذج آخر عند الحاجة. يظل اتصال MCP متاحًا في مساحة عمل TypingMind.

  1. ابدأ محادثة جديدة في TypingMind.
  2. اختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  3. فعّل أدوات AWS SSO MCP Server من قسم الإضافات.
  4. اطلب من النموذج استخدام الأداة عند الحاجة.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر وأعد استخدام اتصال MCP نفسه.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام AWS SSO MCP Server لمساعدتي في هذه المهمة؟
AWS SSO MCP Server
بالتأكيد. قرأته.
إليك ما وجدته باستخدام AWS SSO MCP Server.

الأسئلة الشائعة

ما استخدامات خادم MCP AWS SSO MCP Server؟

AWS SSO MCP Server هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP AWS SSO MCP Server مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام AWS SSO MCP Server مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم خادم MCP AWS SSO MCP Server مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل AWS SSO MCP Server، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP AWS SSO MCP Server بـ TypingMind؟

يمكن توصيل AWS SSO MCP Server بـ TypingMind باستخدام موصل MCP المحلي أو بإضافة عنوان URL لخادم MCP بعيد. استخدم الموصل المحلي عندما يحتاج الخادم إلى الوصول إلى ملفات أو تطبيقات أو موارد خاصة على جهازك، واستخدم عنوان URL للخادم عندما يكون خادم MCP مستضافًا عن بُعد.

ما الأدوات التي يوفّرها خادم MCP AWS SSO MCP Server في TypingMind؟

يتيح AWS SSO MCP Server أدوات MCP يبلغ عددها 5، ويمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP AWS SSO MCP Server؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويتيح لك التحكم بنفسك في مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP. إذا كان AWS SSO MCP Server يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇