MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Power-Platform-Mcp-Development

Power-Platform-Mcp-Development是一款code方向的AI技能,核心价值是Instructions for developing Power Platform custom connectors with Model Context Protocol (MCP) integration for Microsoft Copilot Studio,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Instructions for developing Power Platform custom connectors with Model Context Protocol (MCP) integration for Microsoft Copilot Studio

Last verified on: 2026-05-30
mkdir -p ./skills/power-platform-mcp-development && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/power-platform-mcp-development/SKILL.md -o ./skills/power-platform-mcp-development/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Power Platform MCP Custom Connector Development


Instructions


MCP Protocol Integration

- Always implement JSON-RPC 2.0 standard for MCP communication

- Use `x-ms-agentic-protocol: mcp-streamable-1.0` header for Copilot Studio compatibility

- Structure endpoints to support both standard REST operations and MCP tool invocation

- Transform responses to comply with Copilot Studio constraints (no reference types, single types only)


Schema Design Best Practices

- Remove `$ref` and other reference types from JSON schemas as Copilot Studio cannot handle them

- Use single types instead of arrays of types in schema definitions

- Flatten `anyOf`/`oneOf` constructs to single schemas for Copilot Studio compatibility

- Ensure all tool input schemas are self-contained without external references


Authentication and Security

- Implement OAuth 2.0 with MCP security best practices within Power Platform constraints

- Use connection parameter sets for flexible authentication configuration

- Validate token audience to prevent passthrough attacks

- Add MCP-specific security headers for enhanced validation

- Support multiple authentication methods (OAuth standard, OAuth enhanced, API key fallback)


Custom Script Implementation

- Handle JSON-RPC transformation in the custom script (script.csx)

- Implement proper error handling with JSON-RPC error response format

- Add token validation and audience checking in authentication flow

- Transform MCP server responses for Copilot Studio compatibility

- Use connection parameters for dynamic security configuration


Swagger Definition Guidelines

- Use Swagger 2.0 specification for Power Platform compatibility

- Implement proper `operationId` values for each endpoint

- Define clear parameter schemas with appropriate types and descriptions

- Add comprehensive response schemas for all success and error cases

- Include proper HTTP status codes and response headers


Resource and Tool Management

- Structure MCP resources to be consumable as tool outputs in Copilot Studio

- Ensure proper MIME type declarations for resource content

- Add audience and priority annotations for better Copilot Studio integration

- Implement resource transformation to meet Copilot Studio requirements


Connection Parameter Configuration

- Use enum dropdowns for OAuth version and security level selection

- Provide clear parameter descriptions and constraints

- Support multiple authentication parameter sets for different deployment scenarios

- Include validation rules and default values where appropriate

- Enable dynamic configuration through connection parameter values


Error Handling and Logging

- Implement comprehensive error responses following JSON-RPC 2.0 error format

- Add detailed logging for authentication, validation, and transformation steps

- Provide clear error messages that help with troubleshooting

- Include proper HTTP status codes aligned with error conditions


Testing and Validation

- Test connector with actual MCP server implementations

- Validate schema transformations work correctly with Copilot Studio

- Verify authentication flows for all supported parameter sets

- Ensure proper error handling for various failure scenarios

- Test connection parameter configurations and dynamic behavior


Additional Guidelines


Power Platform Certification Requirements

- Include comprehensive documentation (readme.md, CUSTOMIZE.md)

- Provide clear setup and configuration instructions

- Document all authentication options and security considerations

- Include proper publisher and stack owner information

- Ensure compliance with Power Platform connector certification standards


MCP Server Compatibility

- Design for compatibility with standard MCP server implementations

- Support common MCP methods like `tools/list`, `tools/call`, `resources/list`

- Handle streaming responses appropriately for `mcp-streamable-1.0` protocol

- Implement proper protocol negotiation and capability detection


#

🎯 Best For

  • Claude users
  • GitHub Copilot users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Power-Platform-Mcp-Development to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Power-Platform-Mcp-Development compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Power-Platform-Mcp-Development?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Power-Platform-Mcp-Development?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/power-platform-mcp-development/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills