Skip to content
Back to search

mcp-interactiveUI-samples

A dedicated MCP app samples repository for lightweight, pattern-focused UI samples.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/microsoft--mcp-interactiveui-samples/badge.svg)](/listings/microsoft--mcp-interactiveui-samples)

HTML

<a href="/listings/microsoft--mcp-interactiveui-samples"><img src="/api/listings/microsoft--mcp-interactiveui-samples/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 197 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # MCP based interactive UI samples for Microsoft 365 Copilot
  2. This repository contains sample MCP servers with rich interactive UI widgets that render inside Microsoft 365 Copilot. Use these samples to learn how to build declarative agents with visually rich tool responses.
  3. ## Interactive UI in Copilot
  4. You can add interactive UI widgets to your declarative agents by adding a Model Context Protocol (MCP) server-based action to your agent and extending the MCP tools used by the agent to include UI. Microsoft 365 Copilot supports UI widgets created using the following methods:
  5. - **[MCP Apps](https://modelcontextprotocol.github.io/ext-apps/api/documents/Overview.html)** — An extension to MCP that enables MCP servers to deliver interactive user interfaces to hosts.
  6. - **[OpenAI Apps SDK](https://developers.openai.com/apps-sdk)** — Tools to build ChatGPT apps based on the MCP Apps standard with extra ChatGPT functionality.
  7. ## Samples
  8. ### Expense Submission — AI-powered Document & File Workflows
  9. MCP server for expense report filing with file handling, Entra SSO with On-Behalf-Of (OBO) flow, and Microsoft Graph API integration. Demonstrates receipt matching from email, OneDrive/SharePoint, and local folders with interactive widgets for expense management.
  10. - [MCP Apps version](mcp-apps/expense-submission/node/README.md)
  11. - Watch demo on YouTube: https://www.youtube.com/watch?v=Jh7w13q-a6I&t=3s
  12. [![Watch demo video](mcp-apps/expense-submission/node/demos/screenshots/image1.png)](https://www.youtube.com/watch?v=Jh7w13q-a6I&t=3s)
  13. | Prompt | What it does |
  14. |---|---|
  15. | Help me file my expense report for this month's business trip. | Lists expense items, lets you select them, creates a draft, auto-matches email receipts, and guides you through submission. |
  16. | *(Upload receipts in Copilot chat)* | The agent automatically matches uploaded receipts with your system of record data (in this example, dummy corporate card transactions). |
  17. ---
  18. ### Field Service Dispatch
  19. MCP server for a field service dispatch workflow with assignment intake, map visualization, dispatch planning, and confirmation flow. Requires a free Mapbox token for map widgets.
  20. - [MCP Apps version](mcp-apps/fieldops/node/src/mcpserver/README.md)
  21. - [OpenAI Apps SDK version](oai-apps-sdk/fieldops/node/README.md)
  22. [![Watch demo video](oai-apps-sdk/fieldops/node/demos/screenshots/dispatchPlan_sbs_play.png)](https://www.youtube.com/watch?v=rsfPzTxCgjQ)
  23. | Prompt | What it does |
  24. |---|---|
  25. | Show me new assignments from the last 24 hours. | Lists intake items in a list widget. |
  26. | Show these assignments on the map. | Renders assignments on an interactive map. |
  27. | Create a dispatch plan for these assignments. | Shows a dispatch planning UI with technician assignments. |
  28. ---
  29. ### Approvals Box — AI-powered Approval Queue Management
  30. MCP server for approval queue management with risk triage, bulk decisions, and inline widgets for reviewing, approving, rejecting, and creating approval requests. Auto-seeded with ~50 realistic demo approvals across 7 types.
  31. - [OpenAI Apps SDK version](oai-apps-sdk/approvals-box/node/README.md)
  32. <a href="https://youtu.be/Zre_6fFKBXg" target="_blank"><img src="https://img.youtube.com/vi/Zre_6fFKBXg/maxresdefault.jpg" alt="Watch the Approvals Box demo"></a>
  33. ![Approvals Box detail widget](oai-apps-sdk/approvals-box/node/demos/screenshots/approvals-box-detail.png)
  34. | Prompt | What it does |
  35. |---|---|
  36. | Show me my pending approvals. | Opens the list widget with all pending approvals, sorted by due date. |
  37. | Which approvals are high risk? | Filters the list to high-risk items and opens the widget. |
  38. | Show me the details for the Activision InComm approval. | Resolves the approval by name and opens the detail widget. |
  39. | Approve the pending purchase order from Kevin Walsh. | Opens the detail widget with the approve dialog pre-opened. |
  40. | Bulk reject all low-priority travel exceptions. | Opens the list filtered to travel exceptions with the bulk-reject dialog. |
  41. | Draft a rejection reason for the capex request. | AI drafts a rejection note; confirm to reject. |
  42. ---
  43. ### Trey Research — HR Consultant Management
  44. MCP server for managing HR consultants, projects, and assignments with Fluent UI React widgets including an HR dashboard, consultant profile cards, bulk editor, and project detail views.
  45. - [Declarative Agent connected to MCP server (MCP Apps)](mcp-apps/trey-research/node/README.md)
  46. - [Declarative Agent connected to MCP server (OpenAI Apps SDK)](oai-apps-sdk/trey-research/node/README.md)
  47. - [MCP Server using MCP Apps](mcp-apps/trey-research/node/src/mcpserver/README.md)
  48. - [MCP Server using OpenAI Apps SDK](oai-apps-sdk/trey-research/node/src/mcpserver/README.md)
  49. <a href="https://www.youtube.com/watch?v=kNXT7Syf9fQ" target="_blank"><img src="./oai-apps-sdk/trey-research/node/demos/fake-play-thumbnail.png" alt="Watch the demo"></a>
  50. | Prompt | What it does |
  51. |---|---|
  52. | Show the HR dashboard. | Opens the HR consultant dashboard widget. |
  53. | I need a React developer for the Copilot project at Consolidated Messenger. Find someone with React skills, show me their profile, and assign them as a Developer. | Searches consultants by skill, displays a profile card, and assigns the consultant to a project — all by name, no IDs needed. |
  54. | Show me the HR dashboard filtered to only billable assignments. Which consultants have the most forecasted hours, and are any of them over-allocated? | Opens the interactive dashboard with a billable filter applied, then the AI analyzes forecast data across consultants to surface workload insights. |
  55. | We need to staff the Disaster Recovery project at Relecloud. Show me the project details, then find all consultants who have Python or Java skills and bulk-assign them as Developers at $120/hr. | Chains project lookup, skill-based consultant search, and bulk assignment in a single conversation — replacing multiple clicks across an HR system. |
  56. | Compare Avery Howard and Sanjay Puranik — show me both their profiles side by side. Who has more certifications, and which projects are they currently assigned to? | Fetches two consultant profiles by name and synthesizes a comparison of certifications, skills, and active assignments. |
  57. ---
  58. ### Zava Insurance — Claims Management
  59. MCP server for insurance claims management with claims dashboard, claim detail with map view, and contractor list widgets.
  60. - [Declarative Agent connected to MCP server (MCP Apps)](mcp-apps/zava-insurance/node/README.md)
  61. - [Declarative Agent connected to MCP server (OpenAI Apps SDK)](oai-apps-sdk/zava-insurance/node/README.md)
  62. - [MCP Server using MCP Apps](mcp-apps/zava-insurance/node/src/mcpserver/README.md)
  63. - [MCP Server using OpenAI Apps SDK](oai-apps-sdk/zava-insurance/node/src/mcpserver/README.md)
  64. <a href="https://www.youtube.com/watch?v=1zrWTtuDaQk" target="_blank"><img src="./oai-apps-sdk/zava-insurance/node/demos/fake-play-thumbnail.png" alt="Watch the demo"></a>
  65. | Prompt | What it does |
  66. |---|---|
  67. | Show the claims dashboard. | Opens the claims dashboard widget with all claims, status metrics, and click-to-detail. |
  68. | Show me all open claims sorted by estimated loss from highest to lowest. | Opens the dashboard filtered to open claims and sorted by estimated loss descending — quickly surfaces the highest-value open claims. |
  69. | Show me Kimberly King's claim details, and tell me what inspections are pending. | Fetches the claim detail widget for the specific policy holder and summarizes pending inspection status. |
  70. | Show me the preferred roofing contractors. | Opens the contractors list filtered to preferred roofing specialists — useful when assigning repair work on storm or roof damage claims. |
  71. | Approve claim 2 with a note that all documentation has been verified, then show me the updated dashboard. | Updates the claim status to Approved, adds a note, and re-opens the dashboard so you can confirm the change — a multi-step workflow in one prompt. |
  72. | Create a high-priority initial inspection for claim CN202504990 scheduled for next Monday, and assign it to an inspector who specializes in fire damage. | Lists inspectors, picks one with fire damage specialization, and creates the inspection — chains three tools automatically. |
  73. | Which claims have the highest estimated losses? Show me the top ones and compare their damage types. | Opens the dashboard sorted by estimated loss descending, then the AI analyzes damage types across high-value claims to surface patterns. |
  74. | Show the claim detail for claim 1. Then approve the pending purchase order and mark the inspection as completed with findings noting that all repairs are satisfactory. | Chains claim detail view, purchase order approval, and inspection update in one conversation — replaces multiple manual steps. |
  75. ---
  76. ### Employee Training
  77. MCP server that recommends learning and training courses with embedded video previews, inline entity cards, and fullscreen course views.
  78. - [MCP Apps version](mcp-apps/employee-training/node/README.md)
  79. ![Employee Training inline](mcp-apps/employee-training/node/demos/screenshots/learningmedia-inline.png)
  80. | Prompt | What it does |
  81. |---|---|
  82. | Recommend a training course about AI agents. | Shows a course card with embedded video. |
  83. | Show me a course on Semantic Kernel. | Renders the course widget with video player. |
  84. | What training is available for Azure AI? | Returns a recommended course card. |
  85. ---
  86. ### Enterprise LOB MCP Apps
  87. > **Pre-built M365 Copilot agents for enterprise LOB systems** — each with interactive React widgets, one-command deploy, and production-ready patterns.
  88. <p align="center">
  89. <img src="https://img.shields.io/badge/🏛️_Salesforce-CRM-00A1E0?style=for-the-badge" alt="Salesforce" />
  90. <img src="https://img.shields.io/badge/🎫_ServiceNow-ITSM-293E40?style=for-the-badge" alt="ServiceNow" />
  91. <img src="https://img.shields.io/badge/⚙️_HubSpot-CRM-FF7A59?style=for-the-badge" alt="HubSpot" />
  92. <br/><br/>
  93. <img src="https://img.shields.io/badge/Python-3.11+-3776AB?logo=python&logoColor=white" alt="Python" />
  94. <img src="https://img.shields.io/badge/React-19-61DAFB?logo=react&logoColor=black" alt="React" />
  95. <img src="https://img.shields.io/badge/Fluent_UI-v9-0078D4" alt="Fluent UI" />
  96. <img src="https://img.shields.io/badge/FastMCP-1.26-6E40C9" alt="FastMCP" />
  97. <img src="https://img.shields.io/badge/M365-Copilot-7B83EB" alt="M365 Copilot" />
  98. <img src="https://img.shields.io/badge/Azure-Container_Apps-0078D4?logo=microsoftazure&logoColor=white" alt="Azure" />
  99. </p>
  100. Every major LOB platform exposes a different API paradigm — Salesforce uses SOQL, ServiceNow exposes a REST Table API. Integrating even a single system into M365 Copilot requires dedicated engineering effort spanning OAuth, data model mapping, pagination, rate limits, and building a UI that makes results **actually useful** rather than dumping raw JSON into chat. These apps solve that.
  101. Each app ships with:
  102. - A **Python MCP server** with production patterns — caching, structured logging, telemetry, and error handling
  103. - An **interactive React widget** on Fluent UI v9 that renders inline in Copilot chat
  104. - A **one-command deploy path** to either a local dev tunnel or Azure Container Apps
  105. | # | App | Tools | Landing page |
  106. |---|---|---|---|
  107. | 1 | 🏛️ **Ask - Salesforce** | 30 | [mcp-apps/salesforce-crm/python/](mcp-apps/salesforce-crm/python/README.md) |
  108. | 2 | 🎫 **Ask - ServiceNow** | 31 | [mcp-apps/servicenow-itsm/python/](mcp-apps/servicenow-itsm/python/README.md) |
  109. | 3 | ⚙️ **Ask - HubSpot** | 19 | [mcp-apps/hubspot-crm/python/](mcp-apps/hubspot-crm/python/README.md) |
  110. [![Watch the demo](https://img.youtube.com/vi/eELXlXAn2ac/maxresdefault.jpg)](https://youtu.be/eELXlXAn2ac)
  111. | Prompt | What it does |
  112. |---|---|
  113. | Show me the latest leads. | Lists recent Salesforce leads in a sortable table with inline edit/create. |
  114. | Show qualification opportunities for Acme. | Filters opportunities by stage and account name. |
  115. | Show me the sales pipeline dashboard. | Aggregates open opportunities by stage with a bar chart. |
  116. | Show me open incidents. | Lists recent ServiceNow incidents with priority indicators. |
  117. | Resolve INC0010001 as solved remotely. | Opens the resolve form with close-code picklist. |
  118. | Search knowledge for VPN setup. | Searches published ServiceNow knowledge base articles. |
  119. | Show me deals for Acme. | Lists HubSpot deals for a company with stage and amount, inline edit/create. |
  120. | Show me orders over 5000. | Filters HubSpot Commerce orders by total amount, with drill-down to line items and companies. |
  121. | Log a note for contact Maria. | Opens a prefilled HubSpot activity form (note/call/task/meeting/email) linked to the contact. |
  122. ## Repository structure
  123. ```
  124. mcp-apps/ # MCP Apps SDK samples
  125. employee-training/node/ # Learning course recommendations
  126. expense-submission/node/ # Expense filing with Entra SSO & file handling
  127. fieldops/node/ # Field service dispatch
  128. hubspot-crm/python/ # Enterprise HubSpot CRM
  129. salesforce-crm/python/ # Enterprise Salesforce CRM
  130. servicenow-itsm/python/ # Enterprise ServiceNow ITSM + HR
  131. trey-research/node/ # HR consultant management
  132. zava-insurance/node/ # Insurance claims management
  133. oai-apps-sdk/ # OpenAI Apps SDK samples
  134. approvals-box/node/ # AI-powered approval queue management
  135. fieldops/node/ # Field service dispatch
  136. trey-research/node/ # HR consultant management (declarative agent)
  137. zava-insurance/node/ # Insurance claims management (declarative agent)
  138. M365-Agents-Toolkit-Instructions.md # Step-by-step guide for building agents
  139. agents-toolkit-screenshots/ # Screenshots for the instructions
  140. ```

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.