
Adaptive Cards Mcp
io.github.VikrantSingh01由 GitHub 帳號 VikrantSingh01 發布v2.3.0更新於 Oct 24, 2026
Generate, validate, and optimize Adaptive Cards for Teams, Outlook, and Copilot.
概覽
一個本機 MCP 伺服器,讓助理為 Teams、Outlook、Copilot 等 Microsoft 平台產生、驗證、最佳化並轉換 Adaptive Cards。
- 可以做什麼
- 依自然語言描述或原始資料產生 Adaptive Card,並自動選擇表格、事實集、圖表或清單等版面。驗證卡片的結構描述錯誤、無障礙評分與宿主相容性,並針對無障礙與效能進行最佳化。把靜態卡片轉為資料綁定的範本,並在不同結構描述版本與宿主設定之間升級或降級卡片。推薦版面模式,並執行產生、驗證、最佳化、範本化、轉換的多步驟流程。讀取 v1.6 結構描述、宿主相容性矩陣、範例卡片與版面模式等參考資源。
- 適用情境
- 當你為 Teams、Outlook、Copilot、Viva Connections 或 Webex 建置或維護 Adaptive Card,希望助理產出有效 JSON、修正轉譯或無障礙問題,或讓卡片適配特定宿主與結構描述版本時使用。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js,無需安裝步驟。透過 MCP 宿主使用時不需要 API 金鑰,智慧由宿主模型提供。選用設定包括 SSE 模式的 TRANSPORT 與 PORT、HTTP 驗證的 MCP_API_KEY 與 MCP_AUTH_MODE,以及獨立使用時所需的 ANTHROPIC_API_KEY、OPENAI_API_KEY 或 AZURE_OPENAI_API_KEY 等供應商金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Adaptive Cards Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Adaptive Cards MCP
[License: MIT] [TypeScript] [Adaptive Cards] [CI] [npm] [npm downloads] [MCP Registry] [GitHub stars]
[adaptive-cards-mcp — 9 tools, 21 patterns, 924 tests, 0 competitors]
An MCP server that helps AI assistants generate valid, accessible Adaptive Cards for Teams, Outlook, Copilot, and other Microsoft surfaces. 9 tools, 3 guided workflows, 924 tests.
Blog: I Built an MCP Server That Makes AI 10x Better at Adaptive Cards
Demo
Your browser does not support the video tag.
Quick Start
No install needed — npx downloads and runs it automatically.
1. Add to your AI assistant
Claude Code
GitHub Copilot (VS Code)
Add to .vscode/mcp.json:
Cursor
Add to .cursor/mcp.json:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Microsoft 365 Copilot / Copilot Studio (HTTP/SSE)
- Open Copilot Studio → your agent → Tools → Add a tool → New tool → Model Context Protocol
- Enter your MCP server URL (e.g.,
https://your-server.azurewebsites.net/sse) - Select the tools to expose
OpenAI ChatGPT
- Enable Developer mode in ChatGPT settings
- Go to Settings → Connectors → Create
- Enter your MCP server HTTPS URL
2. Start using it
Just ask your AI assistant in natural language:
The AI picks the right tools, generates a valid card, validates it, and returns production-ready JSON you can paste directly into the Adaptive Cards Designer to preview.
Usage
Natural language (recommended)
Describe what you need — the AI figures out which tools to call:
Approvals and workflows:
Notifications and alerts:
Data and reports:
Forms and input:
Profiles and status:
Cross-host and versioning:
Validation and optimization:
Slash commands (MCP prompts)
For guided, multi-step workflows, use the built-in prompts directly:
Create a card:
Runs: generate → validate → optimize → host config
Convert data to a card:
Runs: analyze data → pick best layout → validate output
Review an existing card:
Runs: validate schema + accessibility → auto-fix issues → summary report
npm library (programmatic)
For use in your own code (bots, APIs, CI pipelines), install the package:
See the Library API reference for full details.
What you get back
Card-producing tools return two clean blocks — card JSON you can copy, and a metadata summary:
Tools, Prompt and Usage
[9 MCP tools for Adaptive Cards]
[generate_card producing a leave approval card for Teams]
Reference
MCP Tools (9)
MCP Prompts (3)
MCP Resources (5) + Templates (2)
Host Compatibility
Configuration
Note: When used via MCP (Claude Code, Copilot, Cursor), the host LLM provides the intelligence — no API key needed. Set an API key only for standalone/library usage.
Telemetry & Privacy
Telemetry is opt-in and disabled by default. When enabled, the server collects anonymous usage metrics and sends aggregated data to PostHog to help improve the project.
How to enable:
- VS Code extension: A one-time consent prompt appears on first install. You can change it anytime in Settings → Adaptive Cards → Telemetry.
- CLI / MCP server: Set
MCP_TELEMETRY=truein your environment, or edit~/.adaptive-cards-mcp/config.jsonand set"telemetry": true.
What is sent: Tool names, call counts, durations, error rates, platform (OS), Node version, package version, transport type.
What is never sent: Card content, user prompts, data payloads, IP addresses, file paths, environment variables.
A random session ID is generated each time the server starts — no persistent identifier is stored across sessions.
To disable: Set MCP_TELEMETRY=false or leave unconfigured (default is off).
Development
Local Testing
Smoke test all tools and prompts:
MCP Inspector (visual UI):
Terminal (stdio):
SSE mode:
Architecture
Ecosystem
What's New in v2.3.0
- Accessibility 100/100 — All generated cards now include
speakproperty automatically - No more broken JSON — Newlines in content sanitized, titles no longer truncate at version numbers
- Host-aware generation —
generate_and_validateauto-downgrades card version for Outlook (v1.4), Webex (v1.3) - CSV fix — CSV data correctly parsed before building FactSet/Table cards
- Telemetry —
/metricsendpoint with session tracking, per-tool call distribution, host/intent usage - MCP Registry — Listed on the official MCP Registry
- E2E test suite — 28 tool tests + 10 prompt tests with quality gates (a11y score, element count)
See the full CHANGELOG for details.
Links
- npm — Install and package details
- GitHub — Source code, issues, and contributions
- MCP Registry — Official MCP server listing
Related Projects
- AdaptiveCards-Mobile — Cross-platform Adaptive Cards renderer
- openclaw-adaptive-cards — OpenClaw AI agent plugin using this library
- Adaptive Cards Documentation — Official docs
- Adaptive Cards Designer — Interactive card designer
- Adaptive Cards Schema Explorer — Interactive schema reference
License
MIT
來源:README.md,提交 0e439bb
工具
0版本歷史
1- v2.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分