{"$schema":"https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json","version":"1.0","protocolVersion":"2025-06-18","serverInfo":{"name":"second-wind","title":"Second Wind","version":"1.0.0"},"description":"AWS fix services for agents. Post the evidence of one failing AWS case and receive the repair. x402 payment in USDC on Base, requested only after the case is solved.","documentationUrl":"https://secondwindai.com/llms.txt","iconUrl":"https://secondwindai.com/favicon.svg","transport":{"type":"streamable-http","endpoint":"https://secondwindai.com/mcp"},"capabilities":{"tools":{"listChanged":false}},"authentication":{"required":false,"note":"No account or login. Paid tools use x402 payment in the tool call."},"payment":{"protocol":"x402","x402Version":2,"transport":"mcp","network":"eip155:8453","asset":"USDC","charged_only_when_solved":true},"instructions":"Second Wind sells AWS fix services. Match your AWS error text against each tool's use when list, then call the tool with the evidence it asks for. Calls are free until the case is solved: bad input or an unsolved case returns an error naming what to fix or add. A solved case returns an x402 PaymentRequired (USDC on Base) with a preview and the SHA-256 of the result. Repeat the same tools/call with the signed payment in _meta[\"x402/payment\"] to receive the result. Keep paymentId and recoveryToken: recover_purchase returns the same result again for free.","tools":[{"name":"cfn-export-in-use-update-plan","title":"deploy refuses to update export","description":"Send the deployed and target templates of the exporting stack and its importers. Returns which exports are blocked and why, the exact deploy order that clears the deadlock, the outputs to pin in the interim deployment, and generated CDK or CloudFormation pin code that reproduces each deployed export unchanged. Use when the error reads: Export <name> cannot be deleted as it is in use by <stack> | Export <name> cannot be updated as it is in use by <stack> | Cannot delete export <name> as it is in use by <stack>. Covers: Same account and Region stacks linked by Outputs.Export and Fn::ImportValue, supplied as JSON templates. Does not cover CDK crossRegionReferences custom resources or Terraform consumers. Price: 2.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["tool","exporting_stack","importing_stacks"],"properties":{"tool":{"enum":["cdk","cloudformation","sam"],"description":"What deploys these stacks."},"cdk_language":{"enum":["typescript","python"],"description":"Language for generated CDK pin code. Default typescript."},"region":{"type":"string","pattern":"^[a-z]{2}(-[a-z]+)+-\\d$"},"account_id":{"type":"string","pattern":"^\\d{12}$"},"error_message":{"type":"string","maxLength":4000,"description":"The deploy error text, if you have it."},"exporting_stack":{"type":"object","additionalProperties":false,"required":["name","deployed_template","target_template"],"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"deployed_template":{"type":"object","description":"What is deployed now: aws cloudformation get-template --stack-name NAME --template-stage Processed --query TemplateBody"},"target_template":{"type":"object","description":"What you are trying to deploy: cdk synth NAME --json, or your new template converted to JSON."},"parameters":{"type":"object","additionalProperties":{"type":"string"},"description":"Parameter values, needed only when export names are built from parameters."}}},"importing_stacks":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["name","deployed_template"],"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"deployed_template":{"type":"object","description":"CloudFormation template as a JSON object. Only Outputs, Parameters and Resources are read; other sections may be removed to save space."},"target_template":{"type":"object","description":"The importer after your change. Omit it and the importer is assumed unchanged."},"parameters":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},{"name":"iam-access-denied-layer-analysis","title":"cross account access denied","description":"Send the denied call and every policy around it: identity policies, resource or trust policy, KMS key policy, permissions boundary, SCP and RCP levels. Evaluates them together the way IAM does, same account or cross account, including the hidden KMS request. Returns the blocking layer and statement, statements that almost matched and why, and the minimal statement to add at each layer. Use when the error reads: AccessDenied | is not authorized to perform: <action> on resource: <arn> | with an explicit deny in a <policy type> policy | because no <policy type> policy allows the <action> action | User: <arn> is not authorized to perform: sts:AssumeRole | KMS.AccessDeniedException. Covers: Evaluates supplied JSON policies for one principal, action and resource. Does not read live accounts and does not evaluate VPC endpoint policies, S3 ACLs, KMS grants or Lake Formation. Price: 10.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["request","identity_policies"],"properties":{"request":{"type":"object","additionalProperties":false,"required":["principal_arn","action","resource","resource_account_id"],"properties":{"principal_arn":{"type":"string","pattern":"^arn:aws[a-z-]*:(iam|sts)::\\d{12}:.+$","description":"The caller from aws sts get-caller-identity (role, assumed role session or user ARN)."},"role_arn":{"type":"string","pattern":"^arn:aws[a-z-]*:iam::\\d{12}:role/.+$","description":"Full role ARN when principal_arn is a session of a role that has a path."},"action":{"type":"string","pattern":"^[a-z0-9-]+:[A-Za-z0-9*]+$","description":"The denied API action, for example s3:GetObject or sts:AssumeRole."},"resource":{"type":"string","minLength":1,"maxLength":2048,"description":"The exact resource ARN of the call. For s3:GetObject that is the object ARN, for sts:AssumeRole the role ARN."},"resource_account_id":{"type":"string","pattern":"^\\d{12}$"},"context":{"type":"object","description":"Request context keys you know, for example {\"aws:SourceVpce\":\"vpce-1\",\"aws:PrincipalOrgID\":\"o-abc\"}.","additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"absent_context_keys":{"type":"array","maxItems":50,"items":{"type":"string"},"description":"Context keys that are definitely not on the request, for example aws:SourceVpce when not calling through a VPC endpoint."},"via_service":{"type":"string","description":"Set when an AWS service makes the call for the principal, for example s3.us-east-1.amazonaws.com for the KMS call behind an S3 read."}}},"identity_policies":{"type":"array","maxItems":30,"items":{"type":"object","required":["Statement"],"description":"An IAM policy document as JSON."},"description":"Every managed and inline policy attached to the role or user (and its groups)."},"permissions_boundary":{"type":"object","required":["Statement"],"description":"An IAM policy document as JSON."},"session_policy":{"type":"object","required":["Statement"],"description":"An IAM policy document as JSON."},"scp_levels":{"type":"array","maxItems":6,"items":{"type":"array","maxItems":10,"items":{"type":"object","required":["Statement"],"description":"An IAM policy document as JSON."}},"description":"Organization policies, one array per level from the root down to the account. Every level must allow."},"rcp_levels":{"type":"array","maxItems":6,"items":{"type":"array","maxItems":10,"items":{"type":"object","required":["Statement"],"description":"An IAM policy document as JSON."}},"description":"Organization policies, one array per level from the root down to the account. Every level must allow."},"resource_policy":{"type":"object","required":["Statement"],"description":"Bucket policy, queue policy, key policy, secret policy, or the role trust policy for sts:AssumeRole. Omit if the resource has none."},"kms":{"type":"object","additionalProperties":false,"required":["key_arn","actions"],"description":"The KMS key that encrypts the resource. The principal needs these KMS actions as well.","properties":{"key_arn":{"type":"string","pattern":"^arn:aws[a-z-]*:kms:[a-z0-9-]+:\\d{12}:key/.+$"},"actions":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"string","pattern":"^kms:[A-Za-z*]+$"}},"key_policy":{"type":"object","required":["Statement"],"description":"An IAM policy document as JSON."},"aws_managed":{"type":"boolean","description":"True for an AWS managed key such as aws/s3 or aws/secretsmanager."},"via_service":{"type":"string"}}},"error_message":{"type":"string","maxLength":4000}}}},{"name":"eventbridge-cross-account-delivery-trace","title":"cross account events never arrive","description":"Send one sample event, the sending rule, the receiving bus policy, the receiving rules and target policies. Walks the event through all five places cross account delivery stops silently, with real EventBridge pattern matching, and returns the first blocking stage, the exact field or statement responsible, and the command or statement that fixes it. Use when the error reads: events sent to another account never arrive | rule shows Invocations but target never runs | FailedInvocations metric above zero | rule on the receiving bus never triggers. Covers: Bus to bus delivery between two accounts with supplied rules and policies. Lambda, SQS and SNS target policies are evaluated; role based targets are reported as unchecked. API destinations and Pipes are not covered. Price: 8.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["sample_event","source","destination"],"properties":{"sample_event":{"type":"object","required":["source","detail-type"],"description":"One event exactly as the sender publishes it (source, detail-type, detail, resources). account and region are filled from source if absent."},"source":{"type":"object","additionalProperties":false,"required":["account_id","region","rule"],"properties":{"account_id":{"type":"string","pattern":"^\\d{12}$"},"region":{"type":"string"},"rule":{"type":"object","required":["name","event_pattern","targets"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"state":{"enum":["ENABLED","DISABLED","ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS"]},"event_pattern":{"type":"object"},"targets":{"type":"array","maxItems":5,"items":{"type":"object","required":["arn"],"additionalProperties":false,"properties":{"id":{"type":"string"},"arn":{"type":"string","minLength":20},"role_arn":{"type":"string"},"dead_letter_arn":{"type":"string"}}}}},"description":"The sending rule: aws events describe-rule and list-targets-by-rule. event_pattern as a JSON object."},"target_role":{"type":"object","additionalProperties":false,"properties":{"trust_policy":{"type":"object","required":["Statement"]},"identity_policies":{"type":"array","items":{"type":"object","required":["Statement"]},"maxItems":10}},"description":"The role on the sending rule's bus target, if it has one."}}},"destination":{"type":"object","additionalProperties":false,"required":["account_id","region","bus_arn","rules"],"properties":{"account_id":{"type":"string","pattern":"^\\d{12}$"},"region":{"type":"string"},"bus_arn":{"type":"string","pattern":"^arn:aws[a-z-]*:events:[a-z0-9-]+:\\d{12}:event-bus/.+$"},"bus_policy":{"type":"object","required":["Statement"],"description":"aws events describe-event-bus --name NAME, the Policy field parsed as JSON. Omit if the bus has none."},"rules":{"type":"array","maxItems":20,"items":{"type":"object","required":["name","event_pattern","targets"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"state":{"enum":["ENABLED","DISABLED","ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS"]},"event_pattern":{"type":"object"},"targets":{"type":"array","maxItems":5,"items":{"type":"object","required":["arn"],"additionalProperties":false,"properties":{"id":{"type":"string"},"arn":{"type":"string","minLength":20},"role_arn":{"type":"string"},"dead_letter_arn":{"type":"string"}}}}}},"description":"Rules on the receiving bus that should react to the event."},"target_resource_policies":{"type":"object","additionalProperties":{"type":"object","required":["Statement"]},"description":"Resource policies of receiving targets keyed by target ARN: Lambda function policy, SQS queue policy, SNS topic policy."}}},"context":{"type":"object","additionalProperties":{"type":"string"},"description":"Known context keys such as aws:PrincipalOrgID."}}}},{"name":"codepipeline-cross-account-artifact-access","title":"cross account pipeline artifact denied","description":"Send the pipeline definition plus the artifact bucket policy, artifact key policy and the roles involved. Checks every cross account action for the seven things that must line up across both accounts: Regional artifact store, customer managed key named by ARN, key policy, bucket policy, action role permissions, trust, and the pipeline role's permission to assume. Returns each failing item with the generated statement or pipeline change. Use when the error reads: Access Denied (Service: Amazon S3) in a cross account action | The ciphertext refers to a customer master key that does not exist | is not authorized to perform: sts:AssumeRole on resource: <action role> | Insufficient permissions: unable to access the artifact. Covers: Pipelines with S3 artifact stores and actions that name a roleArn in another account. Evaluates supplied policies only. Does not check the deployment's own permissions inside the target account. Price: 8.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["pipeline","pipeline_account_id","pipeline_region"],"properties":{"pipeline":{"type":"object","required":["name","roleArn","stages"],"description":"The pipeline object from aws codepipeline get-pipeline --name NAME."},"pipeline_account_id":{"type":"string","pattern":"^\\d{12}$"},"pipeline_region":{"type":"string","pattern":"^[a-z]{2}(-[a-z]+)+-\\d$"},"failing_action":{"type":"string","description":"Name of the action that fails. Omit to check every cross account action."},"bucket_policies":{"type":"object","additionalProperties":{"type":"object","required":["Statement"]},"description":"Artifact bucket policies keyed by bucket name."},"kms_keys":{"type":"object","description":"Artifact keys keyed by the encryptionKey id used in the pipeline.","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"key_arn":{"type":"string","pattern":"^arn:aws[a-z-]*:kms:[a-z0-9-]+:\\d{12}:key/.+$"},"key_policy":{"type":"object","required":["Statement"]}}}},"roles":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"trust_policy":{"type":"object","required":["Statement"]},"identity_policies":{"type":"array","maxItems":20,"items":{"type":"object","required":["Statement"]}},"permissions_boundary":{"type":"object","required":["Statement"]}}},"description":"Keyed by role ARN: the pipeline role (identity_policies) and each cross account action role (trust_policy and identity_policies)."},"error_message":{"type":"string","maxLength":4000}}}},{"name":"cfn-stuck-stack-recovery-plan","title":"stack stuck rollback failed","description":"Send the stack events of a stack stuck in UPDATE_ROLLBACK_FAILED, DELETE_FAILED or ROLLBACK_FAILED, including nested stack events. Separates the failure that started the rollback from the ones that blocked it, classifies each blocker, and returns the exact continue-update-rollback or delete command with only the resources that are safe to skip, plus how to reconcile each skipped resource afterwards. Use when the error reads: UPDATE_ROLLBACK_FAILED | Stack <name> is in UPDATE_ROLLBACK_FAILED state and can not be updated | DELETE_FAILED | ROLLBACK_FAILED | ROLLBACK_COMPLETE state and can not be updated. Covers: Works from supplied stack events for one stack and its nested stacks. Does not call AWS. StackSets operations are not covered. Price: 5.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["stack_name","events"],"properties":{"stack_name":{"type":"string","minLength":1,"maxLength":128},"events":{"type":"array","minItems":1,"maxItems":400,"items":{"type":"object","required":["LogicalResourceId","ResourceStatus","Timestamp"],"properties":{"LogicalResourceId":{"type":"string"},"PhysicalResourceId":{"type":"string"},"ResourceType":{"type":"string"},"ResourceStatus":{"type":"string"},"ResourceStatusReason":{"type":"string"},"Timestamp":{"type":"string"}}},"description":"StackEvents from aws cloudformation describe-stack-events --stack-name NAME, newest operation included. Any order."},"nested_stack_events":{"type":"object","additionalProperties":{"type":"array","maxItems":300,"items":{"type":"object","required":["LogicalResourceId","ResourceStatus","Timestamp"],"properties":{"LogicalResourceId":{"type":"string"},"PhysicalResourceId":{"type":"string"},"ResourceType":{"type":"string"},"ResourceStatus":{"type":"string"},"ResourceStatusReason":{"type":"string"},"Timestamp":{"type":"string"}}}},"description":"For nested stacks that failed: their StackEvents keyed by the nested stack's LogicalResourceId in the parent."},"service_role_arn":{"type":"string","description":"The stack's service role, if it uses one."}}}},{"name":"cdk-stack-dependency-cycle-fix","title":"stacks form dependency cycle","description":"Send the CDK cyclic reference error and the resource types of the two construct paths it names. Identifies which edge was added silently by a grant, an origin access control or a bucket notification, explains why, and returns replacement CDK code in TypeScript or Python that keeps the access but removes the back reference. Covers CloudFront OAC with a bucket in another stack, grants into KMS, S3, Secrets Manager, SQS, SNS and ECR policies, and S3 notifications. Use when the error reads: '<StackA>' depends on '<StackB>' (...). Adding this dependency (...) would create a cyclic reference | cyclic reference between stacks at cdk synth. Covers: Two stack cycles reported by CDK synth where the error names both construct paths and their resource types are supplied. Three or more stack cycles and nested stack cycles are not covered. Price: 5.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["error_message","resources"],"properties":{"error_message":{"type":"string","minLength":40,"maxLength":6000,"description":"The full CDK error line containing 'would create a cyclic reference'."},"resources":{"type":"object","minProperties":2,"maxProperties":12,"additionalProperties":{"type":"string","pattern":"^(AWS|Custom)::[A-Za-z0-9:]+$"},"description":"CloudFormation type of each construct path named in the error, keyed by path without the attribute, for example {\"DataStack/Bucket/Resource\":\"AWS::S3::Bucket\",\"WebStack/Distribution/Resource\":\"AWS::CloudFront::Distribution\"}."},"cdk_language":{"enum":["typescript","python"]},"uses_customer_kms_key":{"type":"boolean","description":"True when the bucket, secret, queue or topic in the cycle is encrypted with a customer managed KMS key."}}}},{"name":"security-group-delete-dependency-plan","title":"security group will not delete","description":"Send the network interfaces that carry a security group and the groups whose rules reference it. Identifies the owner of every dependent object (Bedrock AgentCore, Lambda, VPC endpoints, load balancers, EKS, ECS, RDS, EFS and more), which ones you can delete now, which need the owning service to release them, and which AWS holds for hours. Returns the ordered commands and how to keep Terraform or CloudFormation from failing meanwhile. Use when the error reads: DependencyViolation: resource sg-<id> has a dependent object | aws_security_group: Still destroying... for many minutes | Security group deletion fails in a stack delete. Covers: Works from supplied describe-network-interfaces and describe-security-groups output for one group in one Region. Does not call AWS and does not inspect peered VPCs in other accounts. Price: 4.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["security_group_id","network_interfaces"],"properties":{"security_group_id":{"type":"string","pattern":"^sg-[0-9a-f]{8,17}$"},"network_interfaces":{"type":"array","maxItems":200,"items":{"type":"object","required":["NetworkInterfaceId"]},"description":"NetworkInterfaces from: aws ec2 describe-network-interfaces --filters Name=group-id,Values=SG_ID"},"referencing_groups":{"type":"array","maxItems":100,"items":{"type":"object","required":["GroupId"]},"description":"SecurityGroups from both: aws ec2 describe-security-groups --filters Name=ip-permission.group-id,Values=SG_ID and the same with Name=egress.ip-permission.group-id"},"group_name":{"type":"string"},"tool":{"enum":["terraform","cloudformation","cdk","cli"]}}}},{"name":"lambda-vpc-egress-path-trace","title":"lambda in vpc times out","description":"Send the function's VPC configuration and the VPC's subnets, route tables, NAT gateways, endpoints and security groups. Traces the call to the internet, an AWS service or a VPC resource from every function subnet separately, so intermittent timeouts caused by one misrouted subnet are identified. Returns each broken hop (public subnet without public address, NAT in the wrong subnet, blackhole route, endpoint without private DNS, group rules) with the command that fixes it. Use when the error reads: Task timed out after <n> seconds in a VPC attached function | connect ETIMEDOUT | Connect timeout on endpoint URL | timeouts on only some invocations. Covers: IPv4 paths inside one VPC from supplied describe output. Network ACLs, DNS, endpoint policies, peering and transit gateway hops beyond the VPC are not evaluated. Price: 4.00 USDC on Base via x402, charged only when the case is solved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["region","function","destination","subnets","route_tables","security_groups"],"properties":{"region":{"type":"string","pattern":"^[a-z]{2}(-[a-z]+)+-\\d$"},"function":{"type":"object","additionalProperties":false,"required":["subnet_ids","security_group_ids"],"properties":{"name":{"type":"string"},"subnet_ids":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"string","pattern":"^subnet-[0-9a-f]+$"}},"security_group_ids":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"string","pattern":"^sg-[0-9a-f]+$"}}},"description":"VpcConfig from aws lambda get-function-configuration."},"destination":{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"enum":["internet","aws_service","vpc_resource"]},"aws_service":{"type":"string","pattern":"^[a-z0-9.-]+$","description":"For aws_service: the endpoint service short name, for example s3, dynamodb, secretsmanager, sqs, bedrock-runtime, sts."},"port":{"type":"integer","minimum":1,"maximum":65535,"description":"Default 443."},"security_group_ids":{"type":"array","maxItems":5,"items":{"type":"string"},"description":"For vpc_resource: groups on the database, cache or instance being called."}}},"subnets":{"type":"array","maxItems":100,"items":{"type":"object"},"description":"Subnets from aws ec2 describe-subnets for the function's VPC."},"route_tables":{"type":"array","maxItems":100,"items":{"type":"object"},"description":"RouteTables from aws ec2 describe-route-tables --filters Name=vpc-id,Values=VPC_ID."},"nat_gateways":{"type":"array","maxItems":100,"items":{"type":"object"},"description":"NatGateways from aws ec2 describe-nat-gateways."},"vpc_endpoints":{"type":"array","maxItems":100,"items":{"type":"object"},"description":"VpcEndpoints from aws ec2 describe-vpc-endpoints --filters Name=vpc-id,Values=VPC_ID."},"security_groups":{"type":"array","maxItems":100,"items":{"type":"object"},"description":"SecurityGroups from aws ec2 describe-security-groups for the function groups, endpoint groups and destination groups."}}}},{"name":"recover_purchase","title":"Recover a purchased result","description":"Return the result of a completed purchase again, at no cost. Needs the paymentId and the private recoveryToken from the original delivery.","inputSchema":{"type":"object","required":["paymentId","recoveryToken"],"additionalProperties":false,"properties":{"paymentId":{"type":"string","description":"paymentId from the delivered result"},"recoveryToken":{"type":"string","description":"recoveryToken from the delivered result"}}}}]}