Power Platform MCP Connector Suite

Power Platform MCP Connector Suite

Generates a complete Power Platform custom connector with MCP integration for Copilot Studio, including schema generation, validation and troubleshooting of common issues.

Skill files1 file
SKILL.md157 lines
1
---
2
name: power-platform-mcp-connector-suite
3
description: 'Generate complete Power Platform custom connector with MCP integration for Copilot Studio - includes schema generation, troubleshooting, and validation'
4
---
5
6
# Power Platform MCP Connector Suite
7
8
Generate comprehensive Power Platform custom connector implementations with Model Context Protocol integration for Microsoft Copilot Studio.
9
10
## MCP Capabilities in Copilot Studio
11
12
**Currently Supported:**
13
- ✅ **Tools**: Functions that the LLM can call (with user approval)
14
- ✅ **Resources**: File-like data that agents can read (must be tool outputs)
15
16
**Not Yet Supported:**
17
- ❌ **Prompts**: Pre-written templates (prepare for future support)
18
19
## Connector Generation
20
21
Create complete Power Platform connector with:
22
23
**Core Files:**
24
- `apiDefinition.swagger.json` with `x-ms-agentic-protocol: mcp-streamable-1.0`
25
- `apiProperties.json` with connector metadata and authentication
26
- `script.csx` with custom C# transformations for MCP JSON-RPC handling
27
- `readme.md` with connector documentation
28
29
**MCP Integration:**
30
- POST `/mcp` endpoint for JSON-RPC 2.0 communication
31
- McpResponse and McpErrorResponse schema definitions
32
- Copilot Studio constraint compliance (no reference types, single types)
33
- Resource integration as tool outputs (Resources and Tools supported; Prompts not yet supported)
34
35
## Schema Validation & Troubleshooting
36
37
**Validate schemas for Copilot Studio compliance:**
38
- ✅ No reference types (`$ref`) in tool inputs/outputs
39
- ✅ Single type values only (not `["string", "number"]`)
40
- ✅ Primitive types: string, number, integer, boolean, array, object
41
- ✅ Resources as tool outputs, not separate entities
42
- ✅ Full URIs for all endpoints
43
44
**Common issues and fixes:**
45
- Tools filtered → Remove reference types, use primitives
46
- Type errors → Single types with validation logic
47
- Resources unavailable → Include in tool outputs
48
- Connection failures → Verify `x-ms-agentic-protocol` header
49
50
## Context Variables
51
52
- **Connector Name**: [Display name for the connector]
53
- **Server Purpose**: [What the MCP server should accomplish]
54
- **Tools Needed**: [List of MCP tools to implement]
55
- **Resources**: [Types of resources to provide]
56
- **Authentication**: [none, api-key, oauth2, basic]
57
- **Host Environment**: [Azure Function, Express.js, etc.]
58
- **Target APIs**: [External APIs to integrate with]
59
60
## Generation Modes
61
62
### Mode 1: Complete New Connector
63
Generate all files for a new Power Platform MCP connector from scratch, including CLI validation setup.
64
65
### Mode 2: Schema Validation
66
Analyze and fix existing schemas for Copilot Studio compliance using paconn and validation tools.
67
68
### Mode 3: Integration Troubleshooting
69
Diagnose and resolve MCP integration issues with Copilot Studio using CLI debugging tools.
70
71
### Mode 4: Hybrid Connector
72
Add MCP capabilities to existing Power Platform connector with proper validation workflows.
73
74
### Mode 5: Certification Preparation
75
Prepare connector for Microsoft certification submission with complete metadata and validation compliance.
76
77
### Mode 6: OAuth Security Hardening
78
Implement OAuth 2.0 authentication enhanced with MCP security best practices and advanced token validation.
79
80
## Expected Output
81
82
**1. apiDefinition.swagger.json**
83
- Swagger 2.0 format with Microsoft extensions
84
- MCP endpoint: `POST /mcp` with proper protocol header
85
- Compliant schema definitions (primitive types only)
86
- McpResponse/McpErrorResponse definitions
87
88
**2. apiProperties.json**
89
- Connector metadata and branding (`iconBrandColor` required)
90
- Authentication configuration
91
- Policy templates for MCP transformations
92
93
**3. script.csx**
94
- JSON-RPC 2.0 message handling
95
- Request/response transformations
96
- MCP protocol compliance logic
97
- Error handling and validation
98
99
**4. Implementation guidance**
100
- Tool registration and execution patterns
101
- Resource management strategies
102
- Copilot Studio integration steps
103
- Testing and validation procedures
104
105
## Validation Checklist
106
107
### Technical Compliance
108
- [ ] `x-ms-agentic-protocol: mcp-streamable-1.0` in MCP endpoint
109
- [ ] No reference types in any schema definitions
110
- [ ] All type fields are single types (not arrays)
111
- [ ] Resources included as tool outputs
112
- [ ] JSON-RPC 2.0 compliance in script.csx
113
- [ ] Full URI endpoints throughout
114
- [ ] Clear descriptions for Copilot Studio agents
115
- [ ] Authentication properly configured
116
- [ ] Policy templates for MCP transformations
117
- [ ] Generative Orchestration compatibility
118
119
### CLI Validation
120
- [ ] **paconn validate**: `paconn validate --api-def apiDefinition.swagger.json` passes without errors
121
- [ ] **pac CLI ready**: Connector can be created/updated with `pac connector create/update`
122
- [ ] **Script validation**: script.csx passes automatic validation during pac CLI upload
123
- [ ] **Package validation**: `ConnectorPackageValidator.ps1` runs successfully
124
125
### OAuth and Security Requirements
126
- [ ] **OAuth 2.0 Enhanced**: Standard OAuth 2.0 with MCP security best practices implementation
127
- [ ] **Token Validation**: Implement token audience validation to prevent passthrough attacks
128
- [ ] **Custom Security Logic**: Enhanced validation in script.csx for MCP compliance
129
- [ ] **State Parameter Protection**: Secure state parameters for CSRF prevention
130
- [ ] **HTTPS Enforcement**: All production endpoints use HTTPS only
131
- [ ] **MCP Security Practices**: Implement confused deputy attack prevention within OAuth 2.0
132
133
### Certification Requirements
134
- [ ] **Complete metadata**: settings.json with product and service information
135
- [ ] **Icon compliance**: PNG format, 230x230 or 500x500 dimensions
136
- [ ] **Documentation**: Certification-ready readme with comprehensive examples
137
- [ ] **Security compliance**: OAuth 2.0 enhanced with MCP security practices, privacy policy
138
- [ ] **Authentication flow**: OAuth 2.0 with custom security validation properly configured
139
140
## Example Usage
141
142
```yaml
143
Mode: Complete New Connector
144
Connector Name: Customer Analytics MCP
145
Server Purpose: Customer data analysis and insights
146
Tools Needed:
147
- searchCustomers: Find customers by criteria
148
- getCustomerProfile: Retrieve detailed customer data
149
- analyzeCustomerTrends: Generate trend analysis
150
Resources:
151
- Customer profiles (JSON data)
152
- Analysis reports (structured data)
153
Authentication: oauth2
154
Host Environment: Azure Function
155
Target APIs: CRM REST API
156
```
157

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…