Open-source SPFx webparts for exploring Microsoft 365's MCP and Foundry surface. Two patterns:
- Work IQ MCP servers, called directly from an SPFx webpart — no backend, no proxy, just
fetch+AadTokenProvider+ JSON-RPC. One webpart per server. - Microsoft Foundry behind a protected Function App — keyless backend, Easy Auth + managed identity, deployed in one command via
spfx-foundry-deploy. Starts withmcp365-foundry-chat(chat-only showcase).
Each webpart pairs with a blog post.
Preview notice: The Agents 365 Tools and MCP servers are part of the Microsoft Agent 365 tooling servers preview. These features are in preview, may change, and should not be used in production workloads.
No backend. AAD bearer + JSON-RPC straight to the Work IQ MCP server.
| Server | ID | Tools | Status |
|---|---|---|---|
| Work IQ User | mcp_MeServer |
5 | Available |
| Work IQ SharePoint | mcp_SharePointRemoteServer |
35 | Available |
| Work IQ Calendar | mcp_CalendarTools |
13 | Available |
| Work IQ Mail | mcp_MailTools |
22 | Available |
| Work IQ Teams | mcp_TeamsServer |
28 | Available |
| Work IQ OneDrive | mcp_OneDriveRemoteServer |
13 | Available |
| Work IQ Word | mcp_WordServer |
4 | Available |
Foundry-backed Azure Function App, keyless to Foundry, Easy Auth-protected from the browser. Provisioned with spfx-foundry-deploy.
| Webpart | Backend | Purpose | Status |
|---|---|---|---|
| mcp365-foundry-chat | Foundry (chat-completions) | Chat-only showcase — proves the deployment + auth chain end-to-end | Available |
- Showcase mode — click a button, see the result. No JSON, no parameters.
- Explorer mode — browse tools, inspect live schemas from
tools/list, auto-generated parameter forms, formatted responses, searchable log viewer - Custom presets — save your own parameter sets to browser localStorage
For the Work IQ webparts:
- Microsoft Frontier AI Program — Enrollment
- Work IQ Tools Service Principal — Run
New-Agent365ServicePrincipal.ps1(one-time admin operation). See Microsoft's guide. - Power Platform Environment ID — From Power Platform admin center. See how to find it.
- Node.js 22+ and SPFx 1.22
For the Foundry-backed webparts — additionally:
- Azure subscription with quota for
gpt-5-mini(or your chosen model) in the target region - Azure CLI ≥ 2.69 and Azure Functions Core Tools v4 (
func) — both pre-installed in the included Codespaces devcontainer
Note on service principal naming: These webparts use
"resource": "Work IQ Tools"inpackage-solution.json. If you ran the service principal script before March 12, 2026, your enterprise app is named "Agent 365 Tools" instead. In that case, change"resource": "Work IQ Tools"to"resource": "Agent 365 Tools"in each webpart'sconfig/package-solution.json— otherwise the SharePoint admin center will reject the API permission request.
cd webparts/mcp365-user-profile
npm install
npx heft build --clean
npx heft test --clean --production && npx heft package-solution --productionUpload .sppkg, approve McpServers.Me.All, add to a page.
cd webparts/mcp365-sharepoint-lists
npm install
npx heft build --clean
npx heft test --clean --production && npx heft package-solution --productionUpload .sppkg, approve McpServers.SharePoint.All, add to a page.
cd webparts/mcp365-foundry-chat
npm install
npm run deploy # provisions the proxy + auto-wires serve.json (~5 min)
npm start # workbench opens with the property pane pre-fillednpm run deploy walks you through a one-screen review form (region, model, prefix), then provisions everything: AI Foundry resource + model deployment, Storage Account, Function App with managed identity, Backend API Entra app, Easy Auth, platform hardening, App Insights. No function key in the browser. Full breakdown at spfx-foundry-deploy.
npm run teardown removes everything — resource group, soft-delete purge, Entra app — so you can experiment without lingering infra.
- MCP365 Explorer — Introduction + User Profile
- MCP365 Explorer — Work IQ SharePoint: 35 tools
- MCP365 Explorer — Work IQ Calendar: events, meetings, and availability
- MCP365 Explorer — Work IQ Mail: search, draft, send, and reply
- MCP365 Explorer — Work IQ Teams: teams, channels, and messages
- MCP365 Explorer — Foundry chat showcase + protected backend deployer — coming with the next post
- More posts coming — one per server
- Work IQ MCP Servers Overview
- Model Context Protocol Specification
spfx-foundry-deploy— the Foundry-backed deployer- GriMoire
- SPFx Documentation
