aws-sso-mcp
v0.4.0Query multiple AWS accounts across orgs at once from your AI chat client, via IAM Identity Center SSO.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
orgs_list
List every org configured in the aws-sso-mcp TOML config.
use_org
Set the active org for this session (one-off org= overrides still win).
| Parameter | Type | Description |
|---|---|---|
org * | string |
current_org
Report the currently active org, if any.
org_status
Report token validity and cache freshness for an org (defaults to the active org).
| Parameter | Type | Description |
|---|---|---|
org |
token_status
Check cached SSO token validity WITHOUT ever opening a browser.
| Parameter | Type | Description |
|---|---|---|
org |
login
Authenticate to an org via SSO device authorization (opens a browser for approval). This is the only tool that will ever open a browser. Queries never start a sign-in on your behalf; they fail with a message telling you to call this first, so a browser window never appears unexpectedly mid-query.
| Parameter | Type | Description |
|---|---|---|
org |
refresh_accounts
Force a refresh of the cached account directory for one org, or every configured org.
| Parameter | Type | Description |
|---|---|---|
all_orgs | boolean | |
org |
cache_status
Report cache freshness for one org, or every configured org.
| Parameter | Type | Description |
|---|---|---|
org |
search_accounts
Search the cached account directory by exact name, substring, or account id. The cache is refreshed automatically per org if it is missing or older than the configured TTL. ``name_contains`` is a case-insensitive substring and behaves identically to the ``name_contains`` selector on ``aws_query``, so what you find here is exactly what a query will target.
| Parameter | Type | Description |
|---|---|---|
account_id | ||
all_orgs | boolean | |
limit | integer | |
name | ||
name_contains | ||
org |
list_roles
List the IAM roles granted to you on one account, via that account's SSO portal.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | |
force_refresh | boolean | |
org |
explain_role_selection
Dry-run deterministic role resolution for one account; makes no service call. Shows exactly which role the TOML environment rules would assume. The role is never chosen by the model or by the caller, and there is no override argument.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | |
account_name * | string | |
org |
aws_query
Run one AWS API call across every account a selector resolves to. ``service``/``operation``/``params`` follow the AWS CLI and botocore shape, e.g. ``service="ec2"``, ``operation="DescribeInstances"``, ``params={"Filters": [{"Name": "instance-state-name", "Values": ["stopped"]}]}``. Paginated operations are followed to completion automatically, so results are complete rather than a silent first page. If a result is truncated, raise ``max_items`` to collect more from each account. ``region`` is always required and never defaulted. Account selectors decide which accounts are touched; with none…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
region * | string | |
service * | string | |
account_id | ||
account_ids | ||
account_name | ||
account_names | ||
environment | ||
exclude_account_ids | ||
exclude_account_names | ||
max_accounts | ||
max_items | ||
name_contains | ||
org | ||
orgs | ||
params |
run_dag
Run a small declarative multi-step query DAG against every resolved account. Each entry in ``steps`` is ``{"id": ..., "service": ..., "operation": ..., "params": {...}, "extract": "...", "depends_on": [...]}``. A later step's ``params`` may reference an earlier step's extracted output anywhere a literal would go, via ``{"$ref": "<step_id>"}``. There is no expression language and nothing is ever evaluated as code. Every resolved account runs its own independent copy of the whole DAG, with one credential mint per account rather than one per step. As with ``aws_query``, AWS IAM is the sole aut…
| Parameter | Type | Description |
|---|---|---|
region * | string | |
steps * | array | |
account_id | ||
account_ids | ||
account_name | ||
account_names | ||
environment | ||
exclude_account_ids | ||
exclude_account_names | ||
max_accounts | ||
max_items | ||
name_contains | ||
org | ||
orgs |
config_show
Show the resolved, loaded configuration (it never contains secrets).
config_validate
Re-load and validate the config file, reporting errors without applying them.
perf_stats
Report cache hit/miss counts and executor sizing for the running server. Answers "why was that fan-out slow?" without turning on debug logging. A high credential-broker miss rate points to short-lived sessions or role churn; a high role-cache miss rate suggests the directory TTL is too short.