AI coding assistants are reworking software program growth, however information engineering presents distinctive challenges: ruled information entry, shared compute environments, and compliance controls which might be designed to stay in place. How do you convey the facility of agentic AI growth right into a ruled information atmosphere? With the AWS Toolkit for Visible Studio Code, you possibly can join Kiro, VS Code, or Cursor on to Amazon SageMaker Unified Studio.
While you join your editor to a SageMaker Unified Studio House (a cloud-based compute atmosphere inside your mission), you get AI-assisted growth along with your most well-liked instruments whereas your information governance, mission permissions, and compute are managed by SageMaker Unified Studio. Moreover, SageMaker Unified Studio routinely generates steering information (like AGENTS.md) that present your AI assistant with context about your mission atmosphere, so it understands your information and mission configuration from the primary immediate.
This put up demonstrates the combination utilizing Kiro. The identical Distant Entry connection works with VS Code and Cursor. The put up begins by displaying what you are able to do with this integration: utilizing pure language to discover and analyze information in a ruled atmosphere. We then stroll via the setup so you possibly can attempt it your self.
What’s new
With the AWS Toolkit, you possibly can join Kiro, VS Code, and Cursor to your SageMaker House over a safe SSH tunnel. No extra extensions or SSH key administration required. After the connection is established, your IDE has full entry to your House’s file system, compute, and information companies.
Two capabilities make this particularly highly effective for information work:
- Automated AI steering – When connecting Kiro to SageMaker Unified Studio, Kiro generates
AGENTS.mdandsmus-context.mdinformation that present your AI assistant with context about your atmosphere, together with mission configuration, atmosphere particulars, and utilities for locating your information catalog and mission construction. Kiro detects these information routinely; different editors can use them as context for their very own AI options. - MCP server assist – have Kiro uncover and configure itself for the Mannequin Context Protocol servers in your distant SageMaker area ( like
smus_localandaws-dataprocessing) to offer your agent direct entry to your AWS Glue Knowledge Catalog, Amazon Athena queries, and SageMaker Unified Studio mission metadata.
The next diagram reveals how the elements join:

Structure diagram: How the elements join
See it in motion: AI-assisted growth with ruled information
Earlier than strolling via the setup, we clarify what you are able to do with this integration. This walkthrough makes use of Kiro because the editor. With Kiro linked to a SageMaker Unified Studio House, MCP servers configured, and steering paperwork in place, we are able to use pure language to discover information and construct analytics. The AI assistant has all of the context it wants to do that properly.
Notice: Agentic AI output is nondeterministic. The precise code, instrument decisions, and responses Kiro produces will fluctuate between periods, even with the identical immediate. The next walkthrough reveals one consultant session. Your expertise will differ within the specifics, however the patterns and capabilities demonstrated listed below are constant.
Step 1: Discover the information
Begin with a easy immediate:
Even with native MCP instruments accessible, Kiro usually prefers the AWS Command Line Interface (AWS CLI) and bash to retrieve data. That is anticipated and sometimes doesn’t have an effect on the end result. Should you choose MCP instruments for each operation, you possibly can add that desire to a steering doc.
Kiro used the sagemaker_studio SDK to find the catalog:
Then it drilled into the desk schema:
Kiro found the sagemaker_sample_db.churn dataset, a pattern dataset that ships with SageMaker Unified Studio containing 10,000 rows and 21 columns of buyer churn information (state, account size, name minutes, service calls, churn flag, and extra). Discover that we didn’t write any of this code. We requested a query in pure language, and Kiro selected the appropriate SDK calls, explored the catalog, and surfaced the outcomes.
One other, extra pure option to get the identical reply is to ask instantly. Prompting “Allow us to pattern the churn desk.” yields the identical catalog paths and schema output, together with extra metrics like row depend and a knowledge pattern, all from a single conversational immediate:

Determine 1 — The sagemaker_sample_db.churn dataset within the catalog

Determine 2 — Churn dataset schema with 21 columns
With the schema and row depend in hand, Kiro sampled the information to spherical out its understanding of the dataset:

Determine 3 — Complete information pattern after Kiro catalog exploration
Step 2: Run analytics with full context
With the information explored, ask Kiro to run a knowledge high quality analysis:
As a result of Kiro had already explored the catalog and sampled the information, it made good decisions about run the evaluation. As a substitute of utilizing PySpark for this 10,000-row desk, Kiro used Athena utilizing sqlutils to run the analysis instantly. It produced an intensive information high quality report:
- 10,000 rows, 21 columns, zero nulls throughout all columns. Clear on that entrance.
- 5,000 duplicate rows (50 p.c). Important, price investigating earlier than modeling.
- Outliers minimal. Most columns have lower than 1 p.c outlier fee by IQR.
- Churn is sort of 50/50 cut up (50.04 p.c False, 49.96 p.c True). Unusually balanced, indicating artificial information.
- Clear sign in key options. Churners and non-churners present variations in
day_mins(7.52 vs. 3.52),eve_mins(5.95 vs. 4.11), andvmail_message(175 vs. 278). - State distribution roughly uniform (~2% every),
intl_planandvmail_planclose to 50/50.
The important thing perception here’s what Kiro did not do. It didn’t default to PySpark as a result of the atmosphere helps Spark. Having explored the information first, understanding the desk dimension, column varieties, and that churn is a correct Boolean (not a string), Kiro independently selected the appropriate engine for the workload and produced appropriate analytics on the primary go.
Greatest follow: Discover first, code second
Begin each AI-assisted growth session with information exploration. Ask your AI assistant to find your catalog, pattern your tables, and perceive the schema earlier than asking it to construct something. This single step helps cut back a standard supply of errors in AI-assisted information work: the LLM making assumptions about information it has not seen.
Exploring your information offers the massive language mannequin (LLM) the context it must correctly assist along with your mission. It saves hallucinations and rework, leads to sooner growth time, and reduces token prices.
Able to attempt it your self? The next sections stroll via the complete setup: conditions, connecting your editor to your SageMaker House, configuring MCP servers, and dealing with notebooks.
Stipulations
Earlier than you start, be sure to have the next:
- A SageMaker Unified Studio area and mission with at the very least one mission that has a compute atmosphere provisioned (Tooling or ToolingLight). These ought to come commonplace with each SageMaker mission besides these provisioned with the SQL & Gen AI blueprints. If it’s worthwhile to arrange SageMaker Unified Studio, see Getting began with Amazon SageMaker Unified Studio.
- A House with Distant Entry enabled. Both a JupyterLab or Code Editor House works. The occasion should have at the very least 8 GiB of reminiscence (for instance,
ml.t3.massiveor bigger). The defaultml.t3.medium(4 GiB) can’t allow Distant Entry. You will need to improve the occasion sort first, then toggle Distant Entry to Enabled within the Configure House dialog. - A VS Code-compatible editor. Kiro, VS Code, Cursor, or one other VS Code-based IDE put in in your native machine. This walkthrough makes use of Kiro, however the Distant Entry connection has been examined with VS Code and Cursor as properly.
- AWS Toolkit v4.1.0 or later. Kiro ships with the AWS Toolkit pre-installed. For VS Code and Cursor, set up the AWS Toolkit extension and confirm your model is 4.1.0 or later (
Cmd+Shift+Xand seek for “AWS Toolkit”). - AWS credentials. You have to be authenticated within the SageMaker Unified Studio panel of the AWS Toolkit with the identical id (AWS IAM Id Middle or AWS Id and Entry Administration (IAM)) that you simply use to entry SageMaker Unified Studio within the browser.
- Community connectivity. Your House should have web entry (PublicInternetOnly mode, or digital personal cloud (VPC) with a NAT gateway or HTTP proxy that permits VS Code and Open VSX endpoints).
The next screenshots present the SageMaker Unified Studio portal and the Configure House dialog. Navigate to your mission, choose your House, and confirm the configuration. Distant Entry is disabled when the occasion has lower than 8 GiB of reminiscence. Choose an occasion with at the very least 8 GiB, equivalent to ml.t3.massive, then allow Distant Entry. This can be a one-time configuration per House.

Determine 4 — SMUS mission Areas overview within the portal

Determine 5 — Configure House dialog displaying occasion sort choice

Determine 6 — Enabling Distant Entry on a House with 8 GiB or extra
Connecting your editor to your SageMaker House
There are two methods to attach: instantly from the SageMaker Unified Studio portal, or out of your native IDE utilizing the AWS Toolkit.
Methodology 1: Join from the SageMaker Unified Studio portal
To launch your IDE instantly from the portal, navigate to your mission’s Code Areas web page, discover your House, and select Open in to pick out your editor (Kiro, VS Code, or Cursor):

Determine 7 — Open in Native IDE from the Code Areas listing
You may also launch from inside a House’s particulars web page:

Determine 8 — Open in Native IDE from the House particulars web page
Or from inside the JupyterLab or Code Editor browser atmosphere:

Determine 9 — Open in Native IDE from JupyterLab
Your browser will immediate you to permit opening the IDE. Affirm, and the editor launches with an SSH connection to your House already established through the AWS Toolkit. No extra configuration is often required.
Methodology 2: Join out of your IDE through the AWS Toolkit
- Open your editor in your native machine. Then, within the AWS Toolkit panel, select Check in. Authenticate along with your IAM Id Middle or IAM credentials, the identical id you employ to entry SageMaker Unified Studio within the browser. The next screenshots present Kiro, however the steps are the identical in VS Code and Cursor.

Determine 10 — AWS Toolkit button in Kiro
Determine 11 — AWS Toolkit panel expanded

Determine 12 — AWS Toolkit Check in dialog
- Select your AWS profile. You will need to have a profile configured within the AWS CLI with the right account and AWS Area set.
- Within the Toolkit panel, browse your SageMaker Unified Studio domains and tasks. Choose the mission that you simply need to work in.

Determine 13 — Searching SMUS domains and tasks in Kiro
Necessary: The credentials that you simply use within the AWS Toolkit should match the id that you simply use within the SageMaker Unified Studio portal. The Toolkit validates that your id has entry to the House.
AI steering: How SageMaker Unified Studio pre-seeds AI context
The true worth of the characteristic comes from what you don’t have to do. When linked to Kiro SageMaker Unified Studio routinely generates steering information that information your AI assistant with mission context, so you possibly can concentrate on constructing analytics slightly than configuring connections. While you open a SageMaker Unified Studio mission, SageMaker Unified Studio presents a immediate to create steering information: an AGENTS.md file that references a newly created smus-context.md. These information present context about your mission atmosphere, equivalent to mission configuration, atmosphere particulars, and utilities for locating your information catalog and mission construction. Kiro detects and applies these information routinely; in different editors, you possibly can reference them as context in your AI options.

Determine 14 — SMUS popup providing to create steering information

Determine 15 — Generated AGENTS.md and smus-context.md steering information
With out these steering information, your AI assistant would wish a number of back-and-forth prompts to find what information you might have and entry it. With them, the assistant understands your mission from the primary immediate: uncover your databases, how your atmosphere is configured, and what instruments can be found. The steering information additionally assist correctly configure MCP servers, which you arrange within the subsequent part.
Exploring your mission
After you’re linked, the mission construction expands into Knowledge and Compute sections within the sidebar, as it could within the SageMaker Unified Studio portal.

Determine 16 — Undertaking Knowledge and Compute sections within the Kiro sidebar
You possibly can discover your information catalog and S3 buckets instantly from the sidebar:

Determine 17 — Exploring the information catalog and S3 buckets from the sidebar
You may also distant right into a suitable House for direct growth. Hover over a House and choose the distant icon on the appropriate:

Determine 18 — Distant connection icon on a suitable House
After a second, the House opens in a brand new Kiro window:

Determine 19 — House opened in a brand new Kiro window
You will need to register once more, after which belief the authors of the information within the House:

Determine 20 — Belief authors dialog for the House information
You’re now linked to your House. The Toolkit works on the House the best way it does domestically, besides the sources are scoped to the mission’s permissions.

Determine 21 — Related to the SMUS House with the Toolkit energetic
Establishing MCP servers
Earlier than you should utilize AI-assisted growth successfully, you have to give Kiro entry to your information companies via Mannequin Context Protocol (MCP) servers. MCP servers prolong the Kiro agent with instruments: the flexibility to question catalogs, run SQL, handle credentials, and extra.
Out of the field, Kiro has no MCP servers configured:

Determine 22 — Kiro MCP servers panel with no servers configured
Immediate Kiro to search out and configure the MCP servers that ship pre-installed in your SageMaker House. Utilizing the steering file context, Kiro situated the servers and generated the configuration. If a server fails to attach, choose the failed entry and Kiro will recommend fixes. You would possibly want extra prompts to get the smus_spark_upgrade server (a pre-installed MCP server for managing Spark session upgrades) working appropriately.

Determine 23 — Kiro discovering and configuring SMUS MCP servers

Determine 24 — MCP servers after iterating on configuration fixes
For extra deterministic outcomes, you can even configure the MCP servers manually. Here’s a pattern configuration:
Notice: Your MCP configuration would possibly fluctuate relying in your SageMaker Unified Studio atmosphere. Use the previous configuration as a place to begin and let your editor modify if a server fails to attach.
Subsequent, add the AWS Knowledge Processing MCP server to get catalog data and Athena question capabilities. This isn’t strictly required (Kiro can use Python or AWS CLI for a similar duties), however it offers the agent native instruments for catalog and question operations.

Determine 25 — AWS Knowledge Processing MCP server instruments with Amazon EMR instruments disabled
You possibly can listing the instruments that every MCP server offers. As a result of the AWS Knowledge Processing MCP server contains instruments for a lot of companies, we suggest disabling instruments that you simply don’t want for a given mission to save lots of mannequin context. For this walkthrough, disable the Amazon EMR instruments to concentrate on AWS Glue and Amazon Athena.
Exploring information with notebooks
Kiro helps Jupyter notebooks in your SageMaker House with the identical language and connection selectors that you’d discover in SageMaker JupyterLab or Code Editor. Open the command palette (Cmd+Shift+P) and create a brand new Jupyter pocket book:

Determine 26 — Command palette to create a brand new Jupyter pocket book

Determine 27 — New Jupyter pocket book opened in Kiro with language and connection selectors in a pocket book cell
As in SageMaker JupyterLab, you get language and connection selectors within the backside proper of every cell. Select the connection selector to see your accessible connections:

Determine 28 — SageMaker connection selector
Choose PySpark to fill within the magic instructions in your cell. Write your code (on this case, enter spark and press Shift+Enter) to confirm the session begins:

Determine 29 — PySpark magic command and spark verification code

Determine 30 — Operating the PySpark cell
If that is your first time utilizing Jupyter with Kiro, you’re prompted to put in the Jupyter extension. After it’s put in, choose the kernel from Python Environments → Base:

Determine 31 — Jupyter kernel choice immediate

Determine 32 — Deciding on the Python kernel from the Base atmosphere
Re-run your cell. After a couple of moments, AWS Glue provisions a PySpark session:

Determine 33 — AWS Glue provisioning a PySpark session in a Jupyter pocket book in Kiro
You see outcomes the best way you’d in JupyterLab within the SageMaker Unified Studio portal:

Determine 34 — PySpark code working in a Jupyter pocket book in Kiro
The pocket book generate button
You’ll discover a Generate button beneath pocket book cells. Let’s take a look at it with a easy immediate:

Determine 35 — Utilizing the Generate button with a pure language immediate

Determine 36 — Generated PySpark code from the immediate
This immediate builder, like different pocket book technology options, doesn’t have good context on the encompassing cells. You have to be express about what you need as a result of it received’t learn different code or cells as enter.
Whereas the Kiro pocket book generate button works for simple edits, for severe code technology, we suggest that you simply use Kiro agent mode. This mode has full mission and SageMaker context, as demonstrated within the “See it in motion” walkthrough earlier on this put up.
What’s taking place underneath the hood
While you join your editor to a SageMaker Unified Studio House, the AWS Toolkit extension establishes a safe SSH tunnel between your native IDE and your cloud-based House.
Key particulars:
- SSH tunnel. The connection is managed totally by the AWS Toolkit (v4.1.0+) or VS Code’s built-in SSH extension. No separate Distant SSH extension is required; the aptitude is in-built.
- File system entry. Your editor sees the House’s persistent storage at
/house/sagemaker-user/, together with shared mission information and notebooks or scripts you create. - SageMaker Unified Studio steering context. The combination generates
AGENTS.mdandsmus-context.mdinformation that present your AI assistant with context about your mission atmosphere and utilities for understanding your information. That is what makes the assistant efficient from the primary immediate. - MCP server integration. MCP servers like
smus_local(for mission metadata and atmosphere utilities) andaws-dataprocessing(for AWS Glue Knowledge Catalog and Amazon Athena) prolong your editor’s AI with direct entry to your information companies. Your individual MCP servers might be equally useful right here. - Credential movement. The Toolkit makes use of your current AWS id (IAM Id Middle or IAM) to authenticate to the House. No separate SSH keys to handle. The
aws_context_providerinstrument from thesmus_localMCP server handles credential discovery for agent operations.
Greatest practices
To work successfully along with your IDE and SageMaker Unified Studio:
- Discover your information earlier than constructing. Begin each session by asking your AI assistant to find your catalog, pattern your information, and perceive the schema. This single step helps cut back the most typical supply of errors in AI-assisted information work: the LLM making assumptions about information it has not seen. See the “See it in motion” walkthrough earlier on this put up for a concrete instance of the distinction this makes.
- Use the SageMaker Unified Studio steering information. When prompted to create
AGENTS.mdandsmus-context.md, settle for. These information are the muse that makes every thing else work: atmosphere context, MCP server configuration, and mission understanding. With out them, your AI assistant begins from zero on each immediate. Kiro detects these routinely; in different editors, add them as context. - Disable unused MCP instruments. The AWS Knowledge Processing MCP server contains instruments for AWS Glue, Amazon EMR, Amazon Athena, and extra. Disable the companies that you simply’re not utilizing for a given mission to save lots of mannequin context and cut back noise.
- Be particular in your prompts. The extra element you give your AI (column names, question patterns you favor, output codecs), the nearer the primary go might be. “Run information high quality analysis utilizing Athena SQL” will get you higher code than “verify my information.”
- All the time take a look at interactively first. Whether or not in notebooks or the terminal, validate code earlier than deploying it. AI brokers can iterate rapidly, however catching points in an interactive session is quicker than debugging a failed AWS Glue job. Athena PySpark and the SageMaker
sqlutilsandsparkutilspackages are nice for this. - Cease your House when idle. Your House runs on compute (the identical occasion varieties as Code Editor and JupyterLab). If idle, the House will terminate after 60 minutes and shut your distant connection. Shut the distant window and reconnect to proceed.
Issues to know
- Pocket book agent mode. For notebook-heavy analytics workflows the place you need agentic AI to generate and run cells instantly, SageMaker Notebooks with Knowledge Agent in SageMaker Unified Studio is the advisable choice at this time. Present pocket book assist in native editors covers enhancing, working, and producing code in particular person cells.
- MCP setup takes iteration. Configuring MCP servers could require iteration, particularly for servers with advanced authentication. Many AI-enabled editors can self-correct when a server fails. For extra deterministic outcomes, use the previous MCP configuration JSON as a place to begin slightly than relying solely on auto-discovery.
- CLI desire. AI brokers usually choose the AWS CLI and bash even when MCP instruments can be found. This doesn’t have an effect on outcomes, however you possibly can steer your assistant towards MCP instruments utilizing a steering doc should you choose consistency.
Safety and governance boundaries
A core advantage of this integration is that your current safety and governance controls stay enforced. Your editor connects to your SageMaker House via a safe SSH tunnel managed by the AWS Toolkit. It doesn’t bypass your group’s entry controls. Knowledge entry is ruled by the identical AWS Lake Formation permissions and IAM Id Middle authentication that apply whenever you work within the SageMaker Unified Studio portal instantly. Your project-level permissions, database grants, and column-level safety insurance policies apply persistently whether or not a question originates from an AI agent, a pocket book cell, or the SageMaker console. Knowledge entry is ruled by the boundaries you outline in your SageMaker Unified Studio area and mission configuration.
Clear up
To keep away from ongoing fees from billable sources (SageMaker House compute fees per hour, AWS Glue periods cost per DPU-hour, Amazon Athena queries cost per TB scanned):
- Cease your House – Within the SageMaker Unified Studio portal, navigate to your mission’s Areas and cease the House you used for this walkthrough.
- Disconnect: Shut the distant connection in your editor (File → Shut Distant Connection).
- Confirm AWS Glue periods are terminated – Should you ran PySpark queries throughout this walkthrough, confirm that the periods are stopped. Within the SageMaker Unified Studio portal, navigate to Knowledge processing and ensure no energetic AWS Glue periods stay. Classes auto-terminate when the House stops, however confirm to keep away from surprising fees.
- Delete demo sources (non-compulsory) – File deletion is everlasting and can’t be undone. Again up any work that you simply need to retain earlier than continuing. Should you created scripts or information throughout this walkthrough that you simply not want, delete them from
/house/sagemaker-user/. For instance, delete any take a look at notebooks, Python scripts, or generated information information. The patternsagemaker_sample_db.churndataset is read-only and doesn’t want cleanup.
Conclusion
This put up confirmed what occurs when agentic AI meets ruled information, and walked via set it up your self.
Three key insights emerged from this hands-on expertise:
- SageMaker Unified Studio steering information remodel the developer expertise. Your AI assistant is project-aware from the primary immediate, understanding your atmosphere and accessible information with out guide setup.
- MCP servers bridge “AI that writes code” with “AI that queries your information”. The
smus_localandaws-dataprocessingservers are important for efficient agentic information work. - The “discover first” sample pays rapid dividends. When your AI assistant understands your information earlier than writing code, it makes smarter engine decisions and produces appropriate analytics on the primary go.
This integration brings collectively two capabilities which might be stronger collectively: your IDE handles the AI-assisted coding and iteration, whereas SageMaker Unified Studio handles information governance, entry management, and compute administration. You get the productiveness of an agentic AI coding assistant with out compromising on the controls your group requires.
To get began, obtain Kiro, set up VS Code or Cursor, and add the AWS Toolkit for Visible Studio Code (v4.1.0 or later). Then go to the Amazon SageMaker Unified Studio documentation and the AWS Knowledge Processing MCP Server to arrange your first House. For associated studying, see Pace up supply of ML workloads utilizing Code Editor in Amazon SageMaker Unified Studio.
Concerning the authors
