mcp-copilot-studio-server-generator

โดย github

สร้างการใช้งานเซิร์ฟเวอร์ MCP ที่สมบูรณ์ซึ่งปรับ

npx skills add https://github.com/github/awesome-copilot --skill mcp-copilot-studio-server-generator

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

Skills เพิ่มเติมจาก github

console-rendering
github
คำแนะนำสำหรับการใช้ระบบเรนเดอร์คอนโซลที่ใช้ struct tag ใน Go
official
acquire-codebase-knowledge
github
ใช้ทักษะนี้เมื่อผู้ใช้ขอให้ทำแผนที่ จัดทำเอกสาร หรือเริ่มต้นใช้งานในโค้ดเบสที่มีอยู่จริง โดยจะเริ่มทำงานเมื่อมีข้อความแจ้งเช่น "ทำแผนที่โค้ดเบสนี้" "จัดทำเอกสาร…
official
acreadiness-assess
github
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc…
official
acreadiness-generate-instructions
github
สร้างไฟล์คำแนะนำ AI agent ที่ปรับแต่งตามคำสั่ง AgentRC instructions สร้างไฟล์ .github/copilot-instructions.md (ค่าเริ่มต้น แนะนำสำหรับ Copilot ใน VS…)
official
acreadiness-policy
github
ช่วยผู้ใช้เลือก เขียน หรือใช้ AgentRC policy นโยบายปรับแต่งการให้คะแนนความพร้อมโดยปิดการตรวจสอบที่ไม่เกี่ยวข้อง เปลี่ยนระดับผลกระทบ/ระดับ การตั้งค่า…
official
add-educational-comments
github
เพิ่มความคิดเห็นเชิงการศึกษาให้กับไฟล์โค้ดเพื่อเปลี่ยนให้เป็นแหล่งเรียนรู้ที่มีประสิทธิภาพ ปรับระดับความลึกและน้ำเสียงของคำอธิบายตามระดับความรู้ที่กำหนดได้สามระดับ: ผู้เริ่มต้น ระดับกลาง และระดับสูง ขอไฟล์โดยอัตโนมัติหากไม่มีไฟล์ที่ให้ไว้ พร้อมการจับคู่รายการแบบมีหมายเลขเพื่อการเลือกที่รวดเร็ว ขยายไฟล์ได้สูงสุด 125% โดยใช้เฉพาะความคิดเห็นเชิงการศึกษา (ขีดจำกัดสูงสุด: 400 บรรทัดใหม่; 300 บรรทัดสำหรับไฟล์ที่มีมากกว่า 1,000 บรรทัด) รักษาการเข้ารหัสไฟล์ รูปแบบการเยื้อง ความถูกต้องของไวยากรณ์ และ...
official
adobe-illustrator-scripting
github
เขียน ดีบัก และปรับสคริปต์อัตโนมัติของ Adobe Illustrator ให้เหมาะสมโดยใช้ ExtendScript (JavaScript/JSX) ใช้เมื่อสร้างหรือแก้ไขสคริปต์ที่จัดการ...
official
agent-governance
github
นโยบายเชิงประกาศ การจำแนกเจตนา และเส้นทางการตรวจสอบสำหรับควบคุมการเข้าถึงเครื่องมือและพฤติกรรมของเอเจนต์ AI นโยบายการกำกับดูแลที่ประกอบได้กำหนดเครื่องมือที่อนุญาต/บล็อก ตัวกรองเนื้อหา การจำกัดอัตรา และข้อกำหนดการอนุมัติ — จัดเก็บเป็นคอนฟิกูเรชัน ไม่ใช่โค้ด การจำแนกเจตนาเชิงความหมายตรวจจับพรอมต์อันตราย (การขโมยข้อมูล การยกระดับสิทธิ์ การฉีดพรอมต์) ก่อนการดำเนินการเครื่องมือโดยใช้สัญญาณตามรูปแบบ ตัวตกแต่งการกำกับดูแลระดับเครื่องมือบังคับใช้นโยบายที่ฟังก์ชัน...
official