sfn-lens
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sfn-lens
Step Functions debugging without leaving chat.
Ask Claude about a failed run and get an interactive console in the reply: the state machine graph with status and timings, click-through input/output, an executions list, the ASL definition, and optional redrive. Same idea as the AWS console — sitting next to the conversation.


Built as an MCP App for Claude Desktop (local AWS credentials over stdio).
What you can do
Open any execution and see the graph (Task, Choice, Parallel, Map, Catch, Retry)
Follow the failed path; click a state for input, output, errors, and retries
Browse recent executions with status / name filters
Read the state machine definition
Compare two runs
Redrive a failed execution (opt-in; needs a confirm click)
Refresh a live run; running executions poll automatically
Try fixtures with no AWS account
The UI never talks to AWS directly — everything goes through the MCP server with your local credentials. Sensitive fields can be redacted before they hit the model or the panel.
Related MCP server: AWS Ops MCP Server
Setup (Claude Desktop)
Needs Node 20+ and an AWS profile that can read Step Functions.
git clone git@github.com:sakdag/sfn-lens.git
cd sfn-lens
npm install
npm run buildIn ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"sfn-lens": {
"command": "node",
"args": ["/ABS/PATH/TO/sfn-lens/packages/server/dist/index.js"],
"env": {
"AWS_PROFILE": "YOUR_PROFILE",
"AWS_REGION": "YOUR_REGION"
}
}
}
}Quit Claude fully and reopen. Then try:
I have a Step Functions state machine called sfn-lens-demo — show me the latest failure in sfn-lens.
Redrive (optional)
Add "SFN_LENS_ALLOW_REDRIVE": "true" to the env block and grant states:RedriveExecution on your IAM principal. Leave it off if you want read-only.
Redrive reuses the same execution ARN. If the workflow fails the same way again (same input, same Reject path, etc.), status will still be FAILED — look for redriven ×N in the header.
Try without AWS
"env": {
"SFN_LENS_MODE": "fixture",
"SFN_LENS_FIXTURE_DIR": "/ABS/PATH/TO/sfn-lens/fixtures"
}Ask Claude to show fixture f1-lambda-error.
Sample workflow
A small Terraform demo (default region eu-north-1) plus a fault-injection script, useful for trying the UI end to end:
cd demo/terraform
terraform init && terraform apply
export STATE_MACHINE_ARN=$(terraform output -raw state_machine_arn)
bash ../scripts/inject_faults.shterraform destroy when you’re done. The Lambda is tiny on purpose.
Configuration
Env | Default | Notes |
| — | Optional; SDK default credential chain if unset (env keys, SSO, shared config) |
| — | Optional; SDK / shared-config region if unset |
|
|
|
|
| Synthetic offline fixtures (see |
| — | e.g. |
| off | Set |
Read IAM: states:List*, Describe*, GetExecutionHistory.
Redrive: also states:RedriveExecution.
More on trust boundaries: docs/SECURITY.md.
Development
npm install
npm run build
npm test
npm run typecheck
npm run eval:dry
npm run start:stdioTypeScript throughout (MCP Apps SDK + UI in one toolchain). CI runs build, typecheck, tests, and the eval dry-run.
Licence
Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and run automations that connect your apps on a schedule or webhook, from chat.
Triage failing GitHub Actions jobs and see what self-heal repaired, in natural language.
Build, test and publish agentic workflows from your AI client: approve steps, read tables, see runs.
Discover, run, inspect, build, test, and privately reuse AI workflows.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAutomates DevOps workflows like vulnerability resolution, code review, test generation, and DORA metrics through Claude Code slash commands, using a state machine for reliable execution.20 npmMIT
- FlicenseNot gradedqualityDmaintenanceLets you inspect the health of your AWS Lambda functions and S3 buckets using plain English, with read-only access.-
- AlicenseAqualityDmaintenanceExposes GitHub Actions state as four compact, read-only tools for triaging CI failures, letting agents answer why CI is red without leaving the chat.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables state-aware Terraform/OpenTofu plan evaluation against live AWS topology and CloudWatch telemetry, detecting reliability blast radius and FinOps waste before merge.Apache 2.0