跳到正文
Skillpedia
智能体40k · #7339

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/power-platform-mcp-connector-suite/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.json with x-ms-agentic-protocol: mcp-streamable-1.0
  • apiProperties.json with connector metadata and authentication
  • script.csx with custom C# transformations for MCP JSON-RPC handling
  • readme.md with connector documentation

MCP Integration:

  • POST /mcp endpoint 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-protocol header

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 /mcp with proper protocol header
  • Compliant schema definitions (primitive types only)
  • McpResponse/McpErrorResponse definitions

2. apiProperties.json

  • Connector metadata and branding (iconBrandColor required)
  • 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.0 in 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.json passes 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能