Skip to Content

Evolve Your MDK App with Agentic AI using MCP Tools

This tutorial demonstrates how to enhance an existing MDK project created with agentic AI by using MCP tools to modify pages, add features, and generate supporting artifacts. You will also learn how to access MDK documentation and client APIs directly through the MCP-enabled IDE for faster, context-aware development.
You will learn
  • How to enhance an existing MDK application using agentic AI
  • How to access MDK documentation and Client APIs using MCP tools
jitendrakansalJitendra KansalFebruary 3, 2026
Created by
jitendrakansal
January 23, 2026
Contributors
jitendrakansal
  • Step 1

    In this step, you will use the agent to ask project-aware questions about MDK. The agent responds in the context of your existing project, helping you understand Client APIs, implementation choices, and related documentation. You are free to ask the agent any questions related to MDK. To demonstrate this capability, the following steps use a concrete example from the generated project to explore a Client API and its documentation..

    1. In the Cline window, copy and paste the following prompt into the input field and execute it.

      bash
      Copy
      Explain this line.
      let result = clientAPI.actionResults.AppUpdate.data;
      
      MDK
    2. The MCP client analyzes the code and provides a detailed breakdown of the statement.

      MDK

      Generated responses may differ from the examples shown in this tutorial. Minor variations in code or output are expected.

    3. In the Cline window, execute the following prompt:

      bash
      Copy
      I want to allow business users to upload media files to the backend. However, I want to limit the file size to a maximum of 2 MB. Refer documentation and suggest how can I achieve this?
      
    4. The MCP client (Cline) recognizes that the MDK MCP server should be used and executes the request using the mdk-docs tool. You may need to approve certain steps when prompted.

      MDK

      The generated response includes examples showing how to restrict file size using a Form Cell Attachment control. It also generates a README file containing reference examples for different use cases.

      MDK

      Generated responses may differ from the examples shown in this tutorial. Minor variations in code or output are expected.

    5. You can also ask general conceptual questions, for example:

      bash
      Copy
      How does an offline app work on a mobile device?
      

      The MCP client provides a detailed explanation in the context of MDK offline applications.

  • Step 2

    In this step, you will use the agent to modify existing UI screens based on your requirements. You will change the main page layout from a classic list to a bottom bar container and reorder the Sales Orders list page to display more meaningful information.

    1. In the Cline window, execute the following prompt:

      bash
      Copy
      Update main page displaying all information in a bottom bar and include icons for each item. Remove com_sap.. , page caption and Sync options. 
      Also re-generate the sales order list page displaying Order ID, Customer Name, price along with currency,  style the status property (generate style classes if needed), and display the Date value in Date Time (DT) formatter. Once done, validate and deploy project.
      
    2. The MCP client generates the required updates, validates the project, and deploys it. You may need to approve certain steps when prompted.

      MDK

      Generated responses may differ from the examples shown in this tutorial. Minor variations in code or output are expected.

  • Step 3

    Ensure that you select the correct device platform tab above.

  • Step 4

    In this step, you will use the MCP agent to generate business logic that dynamically updates application data.

    1. In the Cline window, execute the following prompt:

      bash
      Copy
      Instead of just displaying text for the caption property (line 11) on the sales order list page, I want to additionally display the total number of sales orders. 
      For example, Sales Orders (total count)
      
      MDK
    2. The MCP client generates a MDK rule in JavaScript containing the required logic and binds it to the caption property. After validation, the project is automatically deployed.

      MDK

      Generated responses may differ from the examples shown in this tutorial. Minor variations in code or output are expected.

  • Step 5

    Ensure that you select the correct device platform tab above.

    In this exercise, you enhanced an existing SAP MDK application using agentic AI powered by MCP tools. You learned how to interact with a project-aware agent to understand MDK Client APIs, explore documentation, and receive contextual guidance directly within the IDE. Using natural language prompts, you modified UI layouts, enhanced list pages, and implemented dynamic business logic.

    With MCP-driven development, there are many opportunities to accelerate and simplify MDK application development. You are encouraged to apply these techniques in your own projects—experiment with different prompts, enhance additional features, and continue your MDK learning with agentic AI as your development companion.


Back to top