mcp-server-for-copilot

mcp-server-for-copilot

0

This project is an MCP server that integrates Microsoft Copilot Studio agents with any MCP-compatible client. Key features include maintaining conversation context and easy integration through the DirectLine API.

🤖 MCP Server for Copilot Studio Agents

An MCP server implementation that connects to Microsoft Copilot Studio agents, allowing seamless integration with any MCP-compatible client.

✨ Features

  • Connect to Copilot Studio agents through DirectLine API
  • Maintain conversation context across multiple queries
  • Easy integration with any MCP-compatible client
  • Stateful conversations with conversation ID and watermark tracking
  • Configurable agent definitions

🛠️ Tools

  • query_agent: Send queries and receive responses, maintaining context with conversation IDs and watermarks.

🔧 Configuration

  • Update agent_definitions in src/main.py
  • Set DIRECTLINE_ENDPOINT and COPILOT_AGENT_SECRET environment variables

📦 Installation

  • Requires Python 3.12+, uv or pip
  • Commands are provided for setting up a virtual environment

Usage with Claude Desktop

  • Add server configurations to claude_desktop_config.json
  • Run via uv, python, or docker

🌐 Usage with Other MCP Clients

  • Compatible with any MCP client following the MCP protocol specification.

👩‍💻 Development

  • Use uv sync -e dev to set up the dev environment
  • Lint the project with Ruff.