
AI Assisted Workflows on AWS: Kiro, MCP Servers and Bedrock AgentCore
How Kiro turns requests into reviewable specs, and how MCP servers give an assistant current AWS documentation and tools. Includes four example workflows, plus how to deploy agents on Bedrock AgentCore with sensible permissions and approvals.
AI Assisted Workflows on AWS: From Spec to Deployed Agent
Most conversations about AI assisted development stop at autocomplete. On AWS there is much more to work with, and two pieces matter most. The first is Kiro, the agentic IDE from AWS that plans work as specs before it writes any code. The second is MCP servers, which let an assistant read current AWS documentation and call AWS services instead of guessing. This article explains how both work, how to set them up so they stay useful and safe, and then walks through four example workflows. It closes with how to build and deploy agents on Bedrock AgentCore and the guardrails that apply to everything.
Kiro: plan before you generate
The usual failure mode of AI coding is speed without structure. You write one prompt, the model produces a lot of code, and a week later nobody remembers why it was built that way.
Kiro, the agentic IDE from AWS, is designed around that problem. It is a fork of Code OSS, the open source base of VS Code, so the editor feels familiar. The difference is the default workflow. Instead of jumping straight to code, Kiro turns your request into three documents:
- requirements.md captures what the feature must do.
- design.md captures how it will be built.
- tasks.md breaks the design into an ordered list of steps the agent can execute.
You review and edit each document before any code is written. The spec becomes the source of truth, so when the code and the intent drift apart, you have something concrete to compare against.
Kiro has two more features worth knowing. Steering files hold persistent project context, such as your stack, naming rules and conventions, so you do not repeat them in every prompt. Agent hooks run an action when an event happens, for example updating tests when a file is saved. Together they move repeated instructions out of your chat history and into files that live with the repo.
One thing to check before you adopt it: AWS has been steering new users toward Kiro instead of Amazon Q Developer, with new Q Developer signups ending in May 2026 according to multiple reports. If your team is still on Q Developer, check the current AWS announcement for your account.
Write specs that are worth approving
A spec is only as sharp as the prompt that starts it, and a mistake in requirements.md flows into the design and the task list. These habits make the review step count:
- Put real constraints in the first prompt. Mention expected traffic, data size, region, how users authenticate and what is out of scope.
- Edit requirements.md before you read anything else. It is the cheapest place to fix a wrong assumption.
- Use design.md to challenge the approach. Ask the agent to compare two options, for example DynamoDB against a relational database for your access pattern, and approve one on purpose.
- Run the first few tasks one at a time and read the diff. Once the pattern looks right, run the rest in larger batches.
- When the plan changes, update the spec first and let the code follow. A spec that no longer matches the code stops being useful.
Put your rules in steering files
Steering files are markdown files that live in the project, so every request starts with the same context. Kiro can generate foundational ones that describe the product, the tech stack and the project structure, and you can add your own. Good candidates for an AWS project:
- The default region and the account naming convention.
- The infrastructure language, for example CDK in TypeScript, and the folder where stacks live.
- A tagging policy for every resource.
- A rule against wildcard actions in IAM policies, with the reason, so the agent can explain exceptions.
- How you name Lambda functions, tables and log groups.
Because steering files are plain text in the repo, they are reviewed in pull requests like any other file.
Use hooks for chores you would otherwise forget
Hooks run an agent action when an event happens, such as saving a file or committing. A few ideas that fit AWS work:
- When a Lambda handler is saved, check that its unit tests still cover the changed branches.
- When a CDK stack file is saved, review the change for IAM statements broader than the task needs.
- Before a commit, check that the README still matches the deployed architecture.
Keep hooks narrow. A hook that fires on every save and rewrites many files is slow and noisy.
Connect Kiro to MCP servers, and keep the tool list small
Kiro supports MCP, so everything in the next section plugs straight into it. When you connect many servers, the agent has to carry every tool description in its context. Kiro also has a feature called Powers that bundles tools with guidance so they are loaded when relevant. Check the current Kiro documentation for how it works in your version.
Kiro also ships a CLI, so you can work with the same kind of agent from the terminal when you do not want an editor open.
MCP servers: give the assistant real AWS context
A model that has only its training data will confidently describe an API that changed last quarter. The fix is to let the assistant read current information instead of guessing.
This is what the Model Context Protocol (MCP) is for. MCP is a standard way for an AI client to discover and call tools. The client, such as Kiro, Claude Code, Cursor or VS Code, connects to an MCP server, asks what tools it offers, and calls them when needed.
AWS maintains open source MCP servers in the awslabs repository on GitHub. Two examples that fit this workflow well:
- A documentation server, so the assistant can search current AWS docs while it writes code, instead of relying on memory.
- The Amazon Bedrock AgentCore MCP server, which exposes AgentCore documentation and operations so a coding agent can help you build and deploy agents.
You register a server in your client's MCP config file. For Kiro that is a JSON file such as ~/.kiro/settings/mcp.json, where you give the command that launches the server, usually through uvx. After that, the assistant treats those tools as part of its toolbox.
The practical benefit is grounding. When the assistant writes IAM policies, CloudFormation or CDK, it can check the documentation first. You still review the output, but you are reviewing work based on a source rather than a guess.
What happens when the assistant uses a tool
When the client starts, it asks each connected server which tools it offers. Every tool comes with a name, a description and an input schema. When you ask for something, the model picks a tool based on those descriptions, the client runs the call against the server, and the result goes back to the model. Two things follow from that:
- Tool descriptions drive tool choice, so a server with clear descriptions gets used correctly and a vague one gets ignored or misused.
- Every enabled tool takes up context, so a smaller set of relevant servers works better than all of them at once.
There is also a security point. Local servers run on your machine and read credentials from settings such as an AWS profile name in the config. Anything the assistant does through them happens with that profile's permissions. The profile is the real boundary, not the prompt.
Servers worth installing
The AWS Labs MCP catalog lists dozens of open source servers. You install the ones that match your work instead of connecting to one big endpoint. A good starting set:
Server | What it gives the assistant | Use it for |
|---|---|---|
AWS Documentation | Search and retrieval of current AWS docs | Checking limits, API parameters and service behavior |
AWS CDK | CDK guidance, constructs and best practices | Writing and reviewing infrastructure code |
AWS Terraform | Terraform workflows with security scanning | Teams that manage infrastructure with Terraform |
Cloud Control API and CloudFormation | Create, read, update, delete and list resources | Inspecting and managing resources by description |
AWS Pricing and Cost Analysis | Pre-deployment cost estimates | Putting a cost number in the design |
Cost Explorer | Analysis of actual spend | Reviewing where the bill comes from |
CloudWatch | Metrics, alarms and logs | Troubleshooting a failing service |
AWS Diagram | Architecture diagram generation | Documenting a design as you make it |
Bedrock AgentCore | AgentCore documentation and operations | Building and deploying agents |
Set them up so they stay safe and useful
- Start with two or three servers for the task in front of you, not the whole catalog.
- Give MCP servers their own AWS profile with read only permissions. Create a second, narrower write profile only for the sandbox account.
- Leave auto approve empty for any tool that creates, changes or deletes resources. Auto approving read only documentation tools is a reasonable convenience.
- Note that example configs often use the latest tag, which pulls new releases automatically. Pin a version if you want the same behavior every day.
- Check what each server needs before you rely on it, since requirements differ per server.
Four example workflows with Kiro and MCP together
These are example setups showing how the pieces combine. The prompts are samples to adapt, not measured results.
Workflow 1: A new serverless API, from spec to cost check
Servers: Documentation, CDK, Pricing.
- Put the region, language, tagging rule and IAM rule in steering files before you start.
- Describe the API in one prompt, including expected requests per day, payload size and who calls it. Edit requirements.md until it matches.
- While the design is written, ask the agent to confirm service limits and timeouts with the Documentation server, and to pick constructs with the CDK server.
- Before approving design.md, ask the Pricing server for a monthly estimate at your expected traffic and write the number into the design. If it is too high, change the design now, not after deployment.
- Run the tasks one at a time, reviewing each diff. Deploy to a sandbox account first.
Workflow 2: Debug a failing Lambda function
Servers: CloudWatch (read only profile), Documentation.
- Ask: "Show the errors for this function in the last hour, grouped by message, with counts."
- Pick the most frequent error and ask the agent to find the code path in the repo that produces it.
- Ask for a fix and a regression test that fails before the fix and passes after it.
- If the cause is a service limit or a setting, have the agent quote the relevant documentation page through the Documentation server so you can verify it.
- For anything bigger than a small patch, turn the fix into a spec so it is planned and reviewed like a feature.
Workflow 3: Review infrastructure before a release
Servers: CDK or Terraform, Documentation, Pricing.
- Ask the agent to list every IAM statement in the stacks that uses a wildcard action or resource, and explain what each one needs in practice.
- For each, ask for a narrower policy and the documentation that supports it. You review the result, since valid IAM can still be wrong for your case.
- Ask the Pricing server to compare two instance or capacity choices for the same load and summarize the difference.
- Save the findings as a checklist file in the repo so the next review starts from it.
Workflow 4: Keep architecture documentation current
Servers: Diagram, a code documentation server. Kiro feature: a hook.
- Generate an architecture diagram from design.md with the Diagram server and store it next to the README.
- Add a hook that runs when a stack file changes and asks the agent whether the diagram and README still match.
- Review the proposed update in the diff like any other change.
The pattern is the same in all four. Steering files set the rules, the spec sets the plan, MCP servers supply facts and actions, hooks handle repeated checks, and you review at each boundary.
Build the agent itself on Bedrock AgentCore
So far the AI has been helping you write software. The next step is shipping software that is itself an agent. Amazon Bedrock AgentCore is the managed platform for this, and it splits the problem into pieces:
- Runtime hosts and scales your agent without you managing servers.
- Gateway turns existing APIs and AWS Lambda functions into tools the agent can call, including MCP compatible tools. A Lambda function can be exposed this way without changing its core logic.
- Memory gives the agent persistent storage across sessions.
- Identity handles authentication, so the agent can act on behalf of users with the right permissions.
A typical flow looks like this. You write your agent with a framework such as Strands Agents or LangGraph. You expose your business logic as Lambda functions and register them behind AgentCore Gateway. You deploy the agent to Runtime using the AgentCore CLI, and then call it by its Runtime ARN. The AgentCore MCP server can even drive the CLI steps for you from inside your coding assistant, which closes the loop: an AI assistant helping you deploy an AI agent.
The AWS Builder Center already has a hands on tutorial for building a custom MCP server and deploying it to AgentCore Runtime, which is a good next read if you want to try this end to end.
Keep humans and permissions in the loop
An assistant that can call AWS APIs is powerful, and that is exactly why it needs limits. A few rules that apply to every stage above:
- Use least privilege IAM. Give the assistant or agent a role that can do only what the task needs. Start read only and expand deliberately.
- Work in a sandbox account first. Let agents experiment where a mistake costs nothing.
- Keep approval on destructive actions. Deleting resources, changing security groups and modifying production data should need a human click.
- Review every generated policy and template. A model can write valid IAM that is far too broad.
- Watch cost. Agentic tools run on credits or token usage, and agents that loop can spend quietly. Set budgets and alarms.
Bedrock Guardrails and AgentCore Identity add controls on the platform side, but the habits above are what protect you day to day.
Putting the workflow together
Here is the whole loop in order:
- Describe the feature and let Kiro produce requirements, design and tasks. Edit them until they match what you want.
- Connect MCP servers so the assistant can read current AWS documentation while it implements the tasks.
- Expose your logic as tools through Lambda and AgentCore Gateway if the product is an agent.
- Deploy to AgentCore Runtime with the CLI and test with real invocations.
- Apply least privilege, approvals and budgets throughout.
None of these steps is exotic on its own. The value comes from connecting them, so the AI is planning from a spec, reading real documentation, and deploying through managed services, with you reviewing at every boundary.
Final thoughts
AI assisted development on AWS is moving from suggestions inside an editor to a full workflow that covers planning, context, building and operations. The tools will keep changing, so check the current docs before you commit to a setup. The shape of the workflow is the part worth learning: spec first, ground the model in real documentation, build on managed services, and keep a person in charge of anything that can break something.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article