power-platform-mcp-connector-suite
它能做什么
这个工具可以为 Power Platform 创建一个连接器,让 Copilot Studio 能够与其他工具和数据进行交互。它会确保所有设置都正确无误,使 Copilot Studio 能够有效地使用这些工具和数据。
适用场景
- ✓当你希望 Copilot Studio 使用外部工具的时候。
- ✓当你需要 Copilot Studio 读取文件或数据的时候。
- ✓当你希望确保连接器能够与 Copilot Studio 良好配合的时候。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/power-platform-mcp-connector-suite/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建一个连接器,让 Copilot Studio 能够获取客户信息并分析趋势,使用“searchCustomers”和“analyzeTrends”这两个工具。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会生成连接器所需的文件,比如 API 定义和脚本。它还会检查连接器是否符合 Copilot Studio 的规范,确保 Copilot Studio 能够理解并使用你提供的工具和数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Power Platform MCP Connector Suite
Generate comprehensive Power Platform custom connector implementations with Model Context Protocol integration for Microsoft Copilot Studio.
MCP Capabilities in Copilot Studio
Currently Supported:
- ✅ Tools: Functions that the LLM can call (with user approval)
- ✅ Resources: File-like data that agents can read (must be tool outputs)
Not Yet Supported:
- ❌ Prompts: Pre-written templates (prepare for future support)
Connector Generation
Create complete Power Platform connector with:
Core Files:
apiDefinition.swagger.jsonwithx-ms-agentic-protocol: mcp-streamable-1.0apiProperties.jsonwith connector metadata and authenticationscript.csxwith custom C# transformations for MCP JSON-RPC handlingreadme.mdwith connector documentation
MCP Integration:
- POST
/mcpendpoint for JSON-RPC 2.0 communication - McpResponse and McpErrorResponse schema definitions
- Copilot Studio constraint compliance (no reference types, single types)
- Resource integration as tool outputs (Resources and Tools supported; Prompts not yet supported)
Schema Validation & Troubleshooting
Validate schemas for Copilot Studio compliance:
- ✅ No reference types (
$ref) in tool inputs/outputs - ✅ Single type values only (not
["string", "number"]) - ✅ Primitive types: string, number, integer, boolean, array, object
- ✅ Resources as tool outputs, not separate entities
- ✅ Full URIs for all endpoints
Common issues and fixes:
- Tools filtered → Remove reference types, use primitives
- Type errors → Single types with validation logic
- Resources unavailable → Include in tool outputs
- Connection failures → Verify
x-ms-agentic-protocolheader
Context Variables
- Connector Name: [Display name for the connector]
- Server Purpose: [What the MCP server should accomplish]
- Tools Needed: [List of MCP tools to implement]
- Resources: [Types of resources to provide]
- Authentication: [none, api-key, oauth2, basic]
- Host Environment: [Azure Function, Express.js, etc.]
- Target APIs: [External APIs to integrate with]
Generation Modes
Mode 1: Complete New Connector
Generate all files for a new Power Platform MCP connector from scratch, including CLI validation setup.
Mode 2: Schema Validation
Analyze and fix existing schemas for Copilot Studio compliance using paconn and validation tools.
Mode 3: Integration Troubleshooting
Diagnose and resolve MCP integration issues with Copilot Studio using CLI debugging tools.
Mode 4: Hybrid Connector
Add MCP capabilities to existing Power Platform connector with proper validation workflows.
Mode 5: Certification Preparation
Prepare connector for Microsoft certification submission with complete metadata and validation compliance.
Mode 6: OAuth Security Hardening
Implement OAuth 2.0 authentication enhanced with MCP security best practices and advanced token validation.
Expected Output
1. apiDefinition.swagger.json
- Swagger 2.0 format with Microsoft extensions
- MCP endpoint:
POST /mcpwith proper protocol header - Compliant schema definitions (primitive types only)
- McpResponse/McpErrorResponse definitions
2. apiProperties.json
- Connector metadata and branding (
iconBrandColorrequired) - Authentication configuration
- Policy templates for MCP transformations
3. script.csx
- JSON-RPC 2.0 message handling
- Request/response transformations
- MCP protocol compliance logic
- Error handling and validation
4. Implementation guidance
- Tool registration and execution patterns
- Resource management strategies
- Copilot Studio integration steps
- Testing and validation procedures
Validation Checklist
Technical Compliance
-
x-ms-agentic-protocol: mcp-streamable-1.0in MCP endpoint - No reference types in any schema definitions
- All type fields are single types (not arrays)
- Resources included as tool outputs
- JSON-RPC 2.0 compliance in script.csx
- Full URI endpoints throughout
- Clear descriptions for Copilot Studio agents
- Authentication properly configured
- Policy templates for MCP transformations
- Generative Orchestration compatibility
CLI Validation
- paconn validate:
paconn validate --api-def apiDefinition.swagger.jsonpasses without errors - pac CLI ready: Connector can be created/updated with
pac connector create/update
…
常见问题
什么是“工具”(Tools)和“资源”(Resources)?
“工具”就像是 Copilot Studio 可以调用的函数,用来执行具体操作。“资源”则是 Copilot Studio 可以读取的数据,类似于文件。
什么是 MCP?
MCP 是 Model Context Protocol(模型上下文协议)的缩写,它是一套规则,帮助 Copilot Studio 以标准化的方式与工具和数据进行通信。
“校验 schema”是什么意思?
意思是检查工具和数据的定义格式是否正确,是否符合 Copilot Studio 能够理解的格式,并且没有使用它不支持的复杂数据类型。
详情
作者的原始描述
Generate complete Power Platform custom connector with MCP integration for Copilot Studio - includes schema generation, troubleshooting, and validation
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7339
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。