Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure Storage MCP Apps DemoShow me all Azure Storage accounts in my subscription"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure Storage MCP Apps Demo
An interactive MCP Apps demo that renders an Azure Storage dashboard directly inside VS Code Copilot chat. Browse storage accounts, manage containers and blobs, and generate SAS tokens -- all within a rich UI powered by the MCP Apps Extension.
What are MCP Apps?
MCP Apps extend the Model Context Protocol by letting MCP tools return interactive UI components (HTML/CSS/JS) that render directly in the conversation. Instead of plain text responses, tools can display dashboards, forms, visualizations, and multi-step workflows -- all while keeping the AI model informed of user actions.
Demo Flow
Ask Copilot: "Show me all Azure Storage Accounts in my subscription"
Dashboard appears: An interactive card grid showing storage accounts with location, SKU, tier, and size info
Click a storage account: The dashboard calls
get_storage_accountand renders a detail panel with properties, endpoints, and a containers tableManage containers: Create new containers, delete existing ones, or click into a container to browse blobs
Manage blobs: Upload files (drag-and-drop or text), download blobs, preview content inline, or delete blobs
Generate SAS tokens: A form modal lets you select permissions and expiry; the UI calls
generate_sas_tokenand displays the token and full URL with copy buttons
All interactions happen within the embedded UI -- the agent orchestrates tool calls behind the scenes.
Prerequisites
Node.js 18+
VS Code with GitHub Copilot (Copilot Chat)
MCP Apps support in your VS Code version (VS Code Insiders recommended)
Azure subscription with the
AZURE_SUBSCRIPTION_IDenvironment variable setAzure CLI logged in (or another credential source supported by
DefaultAzureCredential)
Quick Start
Development
Project Structure
Architecture
MCP Server (server.ts)
Registers ten tools and one UI resource using @modelcontextprotocol/ext-apps/server:
Tool | Description | Has UI? |
| Lists all accounts in subscription | Yes (dashboard) |
| Returns detailed account info | No (consumed by dashboard UI) |
| Lists blob containers in an account | No (consumed by dashboard UI) |
| Creates a new blob container | No (consumed by dashboard UI) |
| Deletes a blob container | No (consumed by dashboard UI) |
| Lists blobs in a container | No (consumed by dashboard UI) |
| Uploads content as a blob | No (consumed by dashboard UI) |
| Downloads blob content | No (consumed by dashboard UI) |
| Deletes a blob | No (consumed by dashboard UI) |
| Generates a SAS token for a container | No (consumed by dashboard UI) |
Dashboard UI (src/mcp-app.ts)
Uses the App class from @modelcontextprotocol/ext-apps to:
Receive initial tool results via
ontoolresultNavigate between views (accounts → containers → blobs) with breadcrumb navigation
Call server tools via
app.callServerTool()for all CRUD operations (get details, list/create/delete containers, list/upload/download/delete blobs, generate SAS)Display modal dialogs for create container, upload blob, generate SAS token, confirm delete, and blob content preview
Apply host theming via
onhostcontextchanged
Build Pipeline
Vite + vite-plugin-singlefile bundles
mcp-app.html+src/mcp-app.ts+src/mcp-app.cssinto a single self-contained HTML file indist/TypeScript compiles server files (
server.ts,main.ts) todist/The MCP server reads and serves the bundled HTML as a
text/html;profile=mcp-appresource