Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AWS_SSO_MCP_CONFIGNoOptional path to the aws-sso-mcp TOML config file. Defaults to ~/.config/aws-sso-mcp/config.toml (or %USERPROFILE%\.config\aws-sso-mcp\config.toml on Windows).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Never assume. If you lack a value the user did not give you (an account, region, org, resource id or parameter), ask for it. If you do not have some information, say so plainly instead of guessing or inventing it. Calls that delete, terminate or detach resources make the server ask the user to confirm. If the user declines, or the client cannot ask, the call is not run: report that and do not retry it, rephrase it, or look for another way to do the same thing.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
orgs_listA

List every org configured in the aws-sso-mcp TOML config.

use_orgB

Set the active org for this session (one-off org= overrides still win).

current_orgA

Report the currently active org, if any.

org_statusB

Report token validity and cache freshness for an org (defaults to the active org).

token_statusB

Check cached SSO token validity WITHOUT ever opening a browser.

loginA

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.

refresh_accountsA

Force a refresh of the cached account directory for one org, or every configured org.

cache_statusA

Report cache freshness for one org, or every configured org.

search_accountsB

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.
list_rolesC

List the IAM roles granted to you on one account, via that account's SSO portal.

explain_role_selectionA

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.

aws_queryA

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 given, every account in the active org
is targeted, subject to the configured blast-radius cap. The model never
picks which IAM role to assume, and neither does the caller: the role comes only
from the ``[portals.<org>.environments.*]`` rules in your TOML config.

Any operation the assumed role may perform is dispatched - reads, writes,
deletes, secret reads, all of it - with AWS IAM as the sole authorization
boundary. Nothing is refused locally; if the role lacks permission, AWS
returns AccessDenied and that is what comes back.

Operations that delete, terminate or detach something (``Delete*``,
``Terminate*``, ``Remove*``, ``Detach*`` and similar) first ask the user to
confirm, listing the accounts and parameters. If they decline, or the client
cannot ask, nothing runs. Do not retry a declined call.
run_dagA

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 authorization boundary for every step,
and ``max_items`` raises the per-account pagination ceiling for every step.
If any step deletes, terminates or detaches something, the user is asked to
confirm the whole DAG first; if they decline, nothing runs.
config_showA

Show the resolved, loaded configuration (it never contains secrets).

config_validateA

Re-load and validate the config file, reporting errors without applying them.

perf_statsA

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools map to clearly distinct actions: aws_query vs run_dag (single call vs multi-step DAG), explain_role_selection vs list_roles (dry-run rule resolution vs listing actual roles), and login vs refresh_accounts are all unambiguous. The main blur is org_status, which duplicates the coverage of token_status and cache_status, leaving an agent unsure which of the three to call. orgs_list/current_org/use_org are clean enough despite being in the same area.

Naming Consistency3/5

Multiple conventions coexist: verb_noun (use_org, refresh_accounts, search_accounts, list_roles, run_dag), noun_noun (perf_stats, org_status, token_status, cache_status), noun_verb (orgs_list, config_show, config_validate), and bare nouns (login, current_org). The singular/plural mismatch (orgs_list vs list_roles) and status-noun shortcuts add to the inconsistency. Names remain individually readable, so it is mixed rather than chaotic.

Tool Count4/5

16 tools is just above the comfortable band, but the surface splits into coherent groups (auth, org selection, account cache, roles, querying, config, perf) where each group serves a real need. The one clearly redundant entry is org_status, which a trim could fold into token_status/cache_status. Slightly heavy but justified for an SSO + fan-out query server.

Completeness4/5

The lifecycle is well covered: login, token_status/org_status for auth health, org selection, account cache refresh/search, role inspection, aws_query and run_dag for reads and writes, plus config show/validate and perf stats. The notable gaps are no logout/token revocation and no config mutation tool, though config editing via a file is arguably out of scope. These are minor, workable omissions rather than dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues