MCP Copilot Studio Server Generator
GitHubOfficialOriginally contributed by @troystaylor as prompts/mcp-copilot-studio-server-generator.prompt.md; moved into a skill by pull request #761Distributed by GitHub
- Skill
- Content generator
- Automation and integrations
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow for generating a complete Model Context Protocol (MCP) server tailored for Microsoft Copilot Studio. It ensures that the generated code adheres to specific Power Platform connector standards, including the required x-ms-agentic-protocol headers, JSON-RPC 2.0 communication, and strict schema constraints necessary for Copilot Studio compatibility. The process produces the essential configuration files, custom C# transformation scripts, and server-side logic required to deploy an MCP-enabled connector.
What it does
- Generates Power Platform connector definitions including swagger and property files.
- Creates custom C# scripts for request and response transformations.
- Implements MCP server logic with JSON-RPC 2.0 support.
- Enforces strict schema constraints to ensure Copilot Studio compatibility.
- Structures tool and resource handlers for agentic integration.
- Provides deployment configuration templates for Power Platform environments.
When to use it
- When building a custom connector for Microsoft Copilot Studio using the Model Context Protocol.
- When you need to integrate external APIs into a Copilot Studio agent.
- When you require a streamable HTTP endpoint for agentic communication.
- When you need to ensure your API schema meets Power Platform's strict type requirements.
Advantages
- Ensures compliance with Power Platform connector standards.
- Automates the creation of complex boilerplate code for MCP servers.
- Prevents common schema errors by enforcing primitive-only types.
- Streamlines the integration process between external services and Copilot Studio.
Usage examples
- “Generate an MCP server for a CRM system using OAuth2 and Azure Functions.”
- The agent provides a complete project structure including apiDefinition.swagger.json, apiProperties.json, script.csx, and the server code configured for CRM tool integration.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/github/mcp-copilot-studio-server-generator/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip mcp-copilot-studio-server-generator.zip -d .agents/skills
Documentation by troystaylor
Power Platform MCP Connector Generator
Generate a complete Power Platform custom connector with Model Context Protocol (MCP) integration for Microsoft Copilot Studio. This prompt creates all necessary files following Power Platform connector standards with MCP streamable HTTP support.
Instructions
Create a complete MCP server implementation that:
Uses Copilot Studio MCP Pattern:
Implement
x-ms-agentic-protocol: mcp-streamable-1.0Support JSON-RPC 2.0 communication protocol
Provide streamable HTTP endpoint at
/mcpFollow Power Platform connector structure
Schema Compliance Requirements:
NO reference types in tool inputs/outputs (filtered by Copilot Studio)
Single type values only (not arrays of multiple types)
Avoid enum inputs (interpreted as string, not enum)
Use primitive types: string, number, integer, boolean, array, object
Ensure all endpoints return full URIs
MCP Components to Include:
Tools: Functions for the language model to call (✅ Supported in Copilot Studio)
Resources: File-like data outputs from tools (✅ Supported in Copilot Studio - must be tool outputs to be accessible)
Prompts: Predefined templates for specific tasks (❌ Not yet supported in Copilot Studio)
Implementation Structure:
/apiDefinition.swagger.json (Power Platform connector schema) /apiProperties.json (Connector metadata and configuration) /script.csx (Custom code transformations and logic) /server/ (MCP server implementation) /tools/ (Individual MCP tools) /resources/ (MCP resource handlers)
Context Variables
Server Purpose: [Describe what the MCP server should accomplish]
Tools Needed: [List of specific tools to implement]
Resources: [Types of resources to provide]
Authentication: [Auth method: none, api-key, oauth2]
Host Environment: [Azure Function, Express.js, FastAPI, etc.]
Target APIs: [External APIs to integrate with]
Expected Output
Generate:
apiDefinition.swagger.json with:
Proper
x-ms-agentic-protocol: mcp-streamable-1.0MCP endpoint at POST
/mcpCompliant schema definitions (no reference types)
McpResponse and McpErrorResponse definitions
apiProperties.json with:
Connector metadata and branding
Authentication configuration
Policy templates if needed
script.csx with:
Custom C# code for request/response transformations
MCP JSON-RPC message handling logic
Data validation and processing functions
Error handling and logging capabilities
MCP Server Code with:
JSON-RPC 2.0 request handler
Tool registration and execution
Resource management (as tool outputs)
Proper error handling
Copilot Studio compatibility checks
Individual Tools that:
Accept only primitive type inputs
Return structured outputs
Include resources as outputs when needed
Provide clear descriptions for Copilot Studio
Deployment Configuration for:
Power Platform environment
Copilot Studio agent integration
Testing and validation
Validation Checklist
Ensure generated code:
[ ] No reference types in schemas
[ ] All type fields are single types
[ ] Enum handling via string with validation
[ ] Resources available through tool outputs
[ ] Full URI endpoints
[ ] JSON-RPC 2.0 compliance
[ ] Proper x-ms-agentic-protocol header
[ ] McpResponse/McpErrorResponse schemas
[ ] Clear tool descriptions for Copilot Studio
[ ] Generative Orchestration compatible
Example Usage
Server Purpose: Customer data management and analysis
Tools Needed:
- searchCustomers
- getCustomerDetails
- analyzeCustomerTrends
Resources:
- Customer profiles
- Analysis reports
Authentication: oauth2
Host Environment: Azure Function
Target APIs: CRM System REST APIFiles
- ATTRIBUTION.mdAdded by AutoGineer1.2 KiB
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md4.2 KiB
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Originally contributed by
@troystayloras prompts/mcp-copilot-studio-server-generator.prompt.mdmoved into a skill by pull request #761
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/mcp-copilot-studio-server-generator · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- troystaylor
AutoGineer is not affiliated with or endorsed by troystaylor or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download mcp-copilot-studio-server-generator.zip