All skills
github avatar

/mcp-copilot-studio-server-generator

@90921cc official
by githubgithub/awesome-copilot40k stars
5,040

Generate a complete MCP server implementation optimized for Copilot Studio integration with proper schema constraints and streamable HTTP support

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/mcp-copilot-studio-server-generator

This session only. Nothing lands on disk.

SKILL.md

≈46 tokens always: the name and description. ≈1k when used: this file.

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:

  1. Uses Copilot Studio MCP Pattern:

    • Implement x-ms-agentic-protocol: mcp-streamable-1.0
    • Support JSON-RPC 2.0 communication protocol
    • Provide streamable HTTP endpoint at /mcp
    • Follow Power Platform connector structure
  2. 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
  3. 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)
  4. 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:

  1. apiDefinition.swagger.json with:

    • Proper x-ms-agentic-protocol: mcp-streamable-1.0
    • MCP endpoint at POST /mcp
    • Compliant schema definitions (no reference types)
    • McpResponse and McpErrorResponse definitions
  2. apiProperties.json with:

    • Connector metadata and branding
    • Authentication configuration
    • Policy templates if needed
  3. 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
  4. 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
  5. Individual Tools that:

    • Accept only primitive type inputs
    • Return structured outputs
    • Include resources as outputs when needed
    • Provide clear descriptions for Copilot Studio
  6. 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 API

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill functions as a code generation template for building Model Context Protocol (MCP) servers integrated with Microsoft Copilot Studio. It provides structural and schema guidance for developers but does not include any executable code or instructions that pose a security risk.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1/1 file flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 90921cc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 5 months ago
  • MCP
  • copilot-studio
  • power-platform
  • connector
  • json-rpc
  • azure
  • openapi
  • swagger

README badge

README badge for github/awesome-copilot/mcp-copilot-studio-server-generator

Generates a complete MCP server implementation for Microsoft Copilot Studio integration, including Swagger schema, C# transformations, and tool definitions that comply with Power Platform connector standards. Targets teams building custom connectors that expose APIs through Copilot Studio agents with JSON-RPC 2.0 communication and streamable HTTP support.

Generated from the current SKILL.md.

Does this skill work with Copilot Studio?
Yes. The skill generates MCP servers with the `x-ms-agentic-protocol: mcp-streamable-1.0` header and follows Power Platform connector standards for Copilot Studio integration.
What schema constraints does the generated code enforce?
Generated schemas prohibit reference types, use only single type values (not arrays of multiple types), avoid enum inputs, and require all endpoints to return full URIs. These constraints are filtered by Copilot Studio.
Can I use this skill to generate tools that return resources?
Yes. Resources are supported in Copilot Studio when provided as outputs from tools. Prompts are generated but not yet supported by Copilot Studio.
What hosting environments does this skill support?
The skill supports Azure Function, Express.js, FastAPI, and other environments. You specify the target host environment as a context variable.
Does the skill handle authentication configuration?
Yes. The generated code supports none, API-key, and OAuth2 authentication methods, configured in the apiProperties.json file.

Generated from the current SKILL.md. These answers refresh after source changes.