18.9 C
New York
Tuesday, September 9, 2025

Introducing enhanced AI help in Amazon SageMaker Unified Studio: Agentic chat, Amazon Q Developer CLI, and MCP integration


Amazon Q Developer offers generative AI help inside Amazon SageMaker Unified Studio for knowledge discovery, knowledge processing, SQL analytics, and machine studying workflows. At this time, we’re saying enhancements to the Amazon Q Developer chat expertise in SageMaker Unified Studio JupyterLab built-in growth atmosphere (IDE) and including Amazon Q Developer within the command line in JupyterLab and Code Editor IDEs. By integrating with Mannequin Context Protocol (MCP) servers, Amazon Q Developer is conscious of your SageMaker Unified Studio undertaking assets, together with knowledge, compute, and code, and offers customized, related responses for knowledge engineering and machine studying growth. You should utilize this improved AI help to setup your growth atmosphere extra shortly, and for duties like code refactoring, file modification, and troubleshooting whereas sustaining transparency into how the AI assistant is appearing in your behalf.

Answer implementation

On this put up, we’ll stroll by way of how you should use the improved Amazon Q Developer chat and the brand new built-in Amazon Q Developer CLI in SageMaker Unified Studio for coding ETL duties, to repair code errors, and generate ML growth workflows. Each interfaces use MCP to learn recordsdata, run instructions, and work together with AWS providers straight from the IDE. You too can configure further MCP servers to increase Amazon Q Developer’s capabilities with customized instruments and integrations particular to your workflow.

Stipulations

Earlier than beginning this tutorial, you need to have the next conditions:

  • Entry to a SageMaker Unified Studio area. If you happen to don’t have a Unified Studio area, you’ll be able to create one utilizing the fast setup or handbook setup possibility.
  • Entry to or can create a SageMaker Unified Studio undertaking with the All capabilities undertaking profile enabled.
  • Entry to or can create a JupyterLab or Code Editor compute area. We’ll stroll by way of a JupyterLab IDE instance. There isn’t any minimal occasion sort requirement to make use of the brand new options. On this put up, we use an ml.t3.medium occasion. At launch, SageMaker Distribution pictures 2.9 (comprises Amazon Q Developer chat and Amazon Q Developer CLI) or 3.4 (comprises Amazon Q Developer CLI) are required.

Importing the dataset to an Amazon S3 bucket

  1. Obtain the Diabetes 130-US hospitals dataset. This dataset comprises 10 years (1999–2008) of medical care knowledge from 130 US hospitals and built-in supply networks.
  2. On the Information part in the midst of your undertaking web page, select + on the highest. This opens Add knowledge on the best.
  3. On Add knowledge, select Create desk.
  4. Choose Select file or drag and drop the diabetic_data CSV file.
  5. Choose S3/exterior desk and full the data within the type.
  6. Choose Subsequent to add the dataset.

Amazon Q Developer chat

Amazon Q Developer chat in SageMaker Unified Studio is an agentic AI assistant that robotically understands your undertaking, together with knowledge, compute assets, and code to offer extremely related recommendations and insights. It helps you reply questions on your undertaking, perceive advanced datasets, write code, and create notebooks, making it a strong coding companion for creating ETL workflows, constructing ML fashions, or growing generative AI purposes. We’ll stroll by way of consumer personas, knowledge engineer and ML engineer, to point out methods to use the Amazon Q Developer chat to do exploratory knowledge evaluation, troubleshoot code, and carry out predictive evaluation. Be aware: Amazon Q Developer code safety scanning will auto-scan the code as it’s being written within the IDE and supply suggestions for remediation and in some instances a code repair as properly. This helps you proactively establish and take away safety vulnerabilities in your codebase, each in current codebase and in new code as you write it within the IDE.

To launch Amazon Q Developer chat:

  1. Navigate to your undertaking. Entry the JupyterLab IDE. On the time of launch, Amazon Q Developer chat is barely accessible within the JupyterLab IDE.
  2. Select the icon on the left for Amazon Q Developer chat. If that is the primary time opening, a message shows so that you can acknowledge the AWS insurance policies for accountable AI.
  3. Enter the inquiries to work together with Amazon Q Developer chat. Enter over the Ask a query… line.

width="1140"

Configure further MCP servers

You may add further MCP servers such because the Amazon Datazone MCP server or the AWS Information Processing MCP Server to be used in Amazon Q Developer chat and the Amazon Q Developer CLI. Within the following steps, we add the AWS Information Processing MCP Server, an open supply device that makes use of MCP to simplify analytics atmosphere setup. The AWS Information Processing MCP Server contains entry to AWS Glue job statuses, Amazon Athena question outcomes, Amazon EMR cluster metrics, and AWS Glue Information Catalog metadata. For extra data on configuring MCP servers, see MCP configuration for Q Developer within the IDE.

The next are the steps to configure further MCP servers:

  1. Navigate to Amazon Q Developer chat and choose the Configure MCP servers instruments icon within the higher proper. You even have the choice edit the configuration file situated at /house/sagemaker-user/.aws/amazonq/brokers/default.json so as to add an MCP sever in Amazon Q Developer chat. You too can navigate to /house/sagemaker-user/.aws/amazonq/mcp.json within the terminal and edit the configuration file so as to add an MCP server in Amazon Q Developer CLI.
    UI for configuring additional MCP server in Amazon Q Developer chat within SageMaker Studio
  2. Choose the + image to Add new MCP server.
  3. Add the next data within the type:
  4. Choose the scope: International
  5. Identify: Enter awsdp-mcp
  6. Transport: Choose stdio
  7. Command: Enteruvx
  8. Arguments-optional: Enter awslabs.aws-dataprocessing-mcp-server@newest
    Configuration panel for Data Processing MCP server in Amazon Q Developer chat
  9. Select Save.

Information engineer

As a knowledge engineer, you would possibly construct ETL jobs and knowledge pipelines. Amazon Q Developer chat helps cut back setup time and improves workflow effectivity by refactoring code, implementing finest practices, and troubleshooting errors. Amazon Q Developer makes use of AI to offer code suggestions, and that is non-deterministic. The outcomes you get may be completely different from those proven within the following examples. Instance immediate:

You're a knowledge engineer. Your duty is to carry out descriptive and exploratory knowledge evaluation.
* Use the diabetic_data dataset in SageMaker Lakehouse.
* Discover record of connections and word down their names
* Create a pocket book. Use getting_started.ipynb for finest practices and for example pocket book.
* Be sure to make use of appropriate connection names in cell magic instructions
* Be sure to deal with lacking values, carry out descriptive evaluation, and have evaluation.
* Create a complete README.md file.
* Create a brand new working listing beneath the /src listing.

Run the next steps, after the answer is created.

  1. Go to the pocket book.
  2. Run the created pocket book and evaluation every part:
    • Information loading
    • Descriptive evaluation
    • Correlation matrix
    • Information preprocessing comparable to dealing with lacking values
    • Analyze significance of options
  3. Evaluate the README.md file.
  4. You can also make modifications on the created recordsdata.
  5. You may immediate the Amazon Q Developer chat to make further modifications for you.

Data engineer's guided conversation with Amazon Q for exploratory data analysis with dataset insights
Comprehensive EDA notebook featuring Amazon Q generated code blocks, statistical analysis, and interactive visualizations

Repair errors with out specifying the error

You can provide directions in a conversational technique to Amazon Q Developer chat. With out the necessity to specify the error, Amazon Q Developer chat will entry your pocket book and repair the error.

  1. Open your pocket book.
  2. Immediate The pocket book isn’t operating, are you able to repair it? Amazon Q Developer chat will establish the error from the pocket book.
  3. Evaluate the difficulty and the answer. Run the pocket book once more.

 Amazon Q Developer chat debugging a notebook error with solution

ML engineer

As an ML engineer, you would possibly analyze advanced datasets and run ML experiments. You may ask Amazon Q Developer chat to tackle an ML engineer position and carry out a predictive ML mannequin on the dataset. Additionally, you’ll be able to ask to take the output from the info engineer under consideration. Instance immediate:

You're a machine studying engineer. Your duty is to carry out predictive machine studying mannequin on the info. The information engineer carried out exploratory evaluation. Use the output from the info engineer in your pocket book. 
- Create a pocket book to construct a diabetes prediction mannequin utilizing Amazon SageMaker.
- Be sure to have mannequin analysis.
- Clarify your selection for options and mannequin choice.
- Create a complete README.md file
- Do that within the working listing you created

Run the next steps, after the answer is created:

  1. Run the created pocket book and evaluation every part:
    • Be aware that the pocket book is operating efficiently.
    • Amazon Q chat integrated characteristic engineering part primarily based on knowledge engineer’s output.
  2. 4 ML fashions (Logistic Regression, Random Forest, Gradient Boosting, and XGBoost) had been recognized for diabetes readmission prediction.
  3. Fashions had been evaluated utilizing a complete metrics suite together with accuracy, precision, recall, F1 rating, and ROC AUC to assist guarantee balanced efficiency.
  4. Characteristic engineering produced vital predictors comparable to earlier inpatient visits and drugs modifications, whereas hyperparameter tuning optimized mannequin efficiency.
  5. The ultimate implementation balances predictive energy with medical interpretability, enabling efficient identification of high-risk sufferers.

Amazon Q chat interface showing ML model creation process
 Interactive Amazon Q session building comprehensive ML notebook with code, visualizations, and markdown explanations

Amazon Q Developer CLI

The Amazon Q Developer CLI additionally understands your code, knowledge, and compute assets, however is optimized for customers preferring working within the terminal. It helps you execute and automate knowledge processing, mannequin coaching, and generative AI duties by way of pure language prompts.To launch the Amazon Q Developer CLI:

  1. On the highest menu of your SageMaker Unified Studio undertaking web page, select Construct, and beneath IDE & APPLICATIONS, select JupyterLab.
  2. Look forward to the area to be prepared.
  3. From the Launcher tab, open a brand new terminal. Or navigate to File > New > Terminal.
  4. Enter q chat

Terminal window launching Amazon Q Developer CLI in SageMaker Studio

At launch, Anthropic’s Claude Sonnet 4 in Amazon Bedrock is the default giant language mannequin (LLM). You may select different LLMs, relying in your AWS Area. To view the accessible fashions or change the fashions enter /mannequin. MCP instruments are executable capabilities that MCP servers expose to the Amazon Q Developer CLI. They allow Amazon Q Developer to carry out actions, course of knowledge, and work together with exterior methods in your behalf. To view the accessible instruments, enter /instruments.

Instance immediate:

Discover the datasets accessible within the undertaking’s knowledge catalog and do exploratory evaluation.

Terminal window showing Amazon Q Developer CLI commands and responses

Clear up

SageMaker Unified Studio by default shuts down idle assets comparable to JupyterLab and Code Editor areas after 1 hour. Nonetheless, you want to delete the Amazon Easy Storage Service (Amazon S3) bucket to cease incurring further fees. You may delete any real-time endpoints you created utilizing the SageMaker console. For directions, see Delete Endpoints and Assets.

Conclusion

The improved AI help accessible in JupyterLab and Code Editor IDEs in SageMaker Unified Studio helps streamline knowledge engineering and machine studying workflows by offering solutions related to your undertaking recordsdata, notebooks, knowledge, and compute. Whether or not you’re a knowledge engineer constructing ETL pipelines, a knowledge scientist conducting exploratory evaluation, or an ML engineer growing predictive fashions, these options now perceive what you’re engaged on and make it easier to do it extra effectively. That is simply the beginning of our agentic journey in SageMaker Unified Studio. To be taught extra, evaluation the SageMaker Unified Studio Consumer Information. We encourage you to discover the MCP capabilities and the AWS MCP Servers repository on GitHub.


In regards to the authors

Lauren Mullennex is a Senior GenAI/ML Specialist Options Architect at AWS. She has over a decade of expertise in ML, DevOps, and infrastructure. She is a broadcast creator of a guide on laptop imaginative and prescient. Exterior of labor, you’ll find her touring and mountaineering along with her two canine.

Siddharth Gupta is heading Generative AI inside SageMaker’s Unified Experiences. His focus is on driving agentic experiences, the place AI methods act autonomously on behalf of customers to perform advanced duties. Beforehand, he led edge machine studying options at AWS. This cutting-edge work goals to revolutionize how builders and knowledge scientists work together with AI, creating extra intuitive knowledge integrations and highly effective instruments for constructing and deploying machine studying fashions. An alumnus of the College of Illinois at Urbana-Champaign, he brings in depth expertise from his roles at Yahoo, Glassdoor, and Twitch. You may attain out to him on LinkedIn.

Ishneet Kaur is a Software program Improvement Supervisor on the Amazon SageMaker Unified Studio group. She leads the engineering group to design and construct GenAI capabilities in SageMaker Unified Studio

Mohan Gandhi is a Senior Software program Engineer at AWS. He has been with AWS for the final 10 years and has labored on numerous AWS providers like Amazon EMR, Amazon EFA, and Amazon RDS. At the moment, he’s centered on bettering the SageMaker inference expertise. In his spare time, he enjoys mountaineering and marathons.

Mukul Prasad is a Senior Utilized Science Supervisor within the AWS Agentic AI group. He leads the Information Processing Brokers Science group growing DevOps brokers to simplify and optimize the shopper journey in utilizing AWS Huge Information processing providers together with Amazon EMR, AWS Glue, and Amazon SageMaker Unified Studio. Exterior of labor, Mukul enjoys meals, journey, images, and Cricket.

Murali Narayanaswamy is a Principal Machine Studying Scientist within the Agentic AI group in AWS engaged on merchandise together with Amazon Bedrock, Amazon SageMaker Unified Studio, Amazon Redshift and Amazon RDS. His analysis pursuits lie on the intersection of AI, optimization, studying and inference notably utilizing them to grasp, mannequin and fight noise and uncertainty in actual world purposes and Reinforcement Studying in follow and at scale. Broadly, he works on utilizing concepts from on-line algorithms, optimization beneath uncertainty, management idea, sport idea, synthetic intelligence, graphical fashions and estimation idea to resolve essential issues at Amazon scale.

Necibe Ahat is a Senior AI/ML Specialist Options Architect at AWS, working with Healthcare and Life Sciences prospects. Necibe helps prospects to advance their generative AI and machine studying journey. She has a background in laptop science with 15 years of trade expertise serving to prospects ideate, design, construct and deploy options at scale. She is a passionate inclusion and variety advocate.

Vipin Mohan is a Principal Product Supervisor at Amazon Internet Companies, the place he leads generative AI product technique. He makes a speciality of constructing AI/ML merchandise, container platforms, and search applied sciences that serve 1000’s of shoppers. Exterior of labor, he mentors aspiring product managers, enjoys studying about monetary investing and entrepreneurship, and loves exploring the world by way of the eyes of his two children.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles