Skip to content

rabwill/mcp-interactive-ui-samples

Repository files navigation

MCP based interactive UI samples for Microsoft 365 Copilot

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.

Interactive UI in Copilot

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:

  • MCP Apps — An extension to MCP that enables MCP servers to deliver interactive user interfaces to hosts.
  • OpenAI Apps SDK — Tools to build ChatGPT apps based on the MCP Apps standard with extra ChatGPT functionality.

Samples

Field Service Dispatch

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.

Watch demo video

Prompt What it does
Show me new assignments from the last 24 hours. Lists intake items in a list widget.
Show these assignments on the map. Renders assignments on an interactive map.
Create a dispatch plan for these assignments. Shows a dispatch planning UI with technician assignments.

Trey Research — HR Consultant Management

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.

Watch the demo

Prompt What it does
Show the HR dashboard. Opens the HR consultant dashboard widget.
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.
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.
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.
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.

Zava Insurance — Claims Management

MCP server for insurance claims management with claims dashboard, claim detail with map view, and contractor list widgets.

Watch the demo

Prompt What it does
Show the claims dashboard. Opens the claims dashboard widget with all claims, status metrics, and click-to-detail.
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.
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.
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.
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.
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.
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.
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.

Employee Training

MCP server that recommends learning and training courses with embedded video previews, inline entity cards, and fullscreen course views.

Employee Training inline

Prompt What it does
Recommend a training course about AI agents. Shows a course card with embedded video.
Show me a course on Semantic Kernel. Renders the course widget with video player.
What training is available for Azure AI? Returns a recommended course card.

Repository structure

mcp-apps/                        # MCP Apps SDK samples
  employee-training/node/        # Learning course recommendations
  fieldops/node/                 # Field service dispatch
  trey-research/node/            # HR consultant management
  zava-insurance/node/           # Insurance claims management

oai-apps-sdk/                    # OpenAI Apps SDK samples
  fieldops/node/                 # Field service dispatch
  trey-research/node/            # HR consultant management (declarative agent)
  zava-insurance/node/           # Insurance claims management (declarative agent)

M365-Agents-Toolkit-Instructions.md   # Step-by-step guide for building agents
agents-toolkit-screenshots/           # Screenshots for the instructions

About

FHL based

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages