Copilot Studio MCP Server
Copilot Studio MCP 服务器
这是可在 Microsoft Copilot Studio 中使用的示例 MCP 服务器。 它使用 Python 和官方 MCP Python SDK,提供以下两种工具:
echo:将输入的句子重复 3 次multi:将输入的数字进行平方运算
技术标准
语言:Python
SDK:
mcp[cli]传输方式:
Streamable HTTP推荐运行配置:
stateless_http=True,json_response=True
Related MCP server: MCP FastAPI Tutorial Server
文件结构
.
├─ server.py
├─ pyproject.toml
├─ README.md
├─ CUSTOM_INSTRUCTIONS.md
└─ MCP_SERVER_REQUIREMENTS.md要求
Python 3.10 或更高版本
若要在 Copilot Studio 中使用 MCP,必须启用
Generative orchestration
安装
使用 uv
uv sync使用 pip
pip install "mcp[cli]>=1.9.0"运行
python server.py服务器以 MCP Streamable HTTP 方式运行。
默认路径通常使用 /mcp。
PowerShell 快速运行
可以在项目文件夹中使用以下脚本运行。
.\start_mcp_server.ps1停止时使用以下脚本。
.\stop_mcp_server.ps1如果因 PowerShell 执行策略导致 .ps1 无法运行,请使用以下 .cmd 文件。
.\start_mcp_server.cmd
.\stop_mcp_server.cmdstart_mcp_server.cmd 会打开一个新的 PowerShell 窗口来运行服务器,因此只要该窗口保持打开,MCP 服务器就会持续运行。
工具说明
1. echo
说明:将输入的句子重复 3 次并返回
输入:
{
"message": "안녕하세요"
}输出:
"안녕하세요 안녕하세요 안녕하세요"2. multi
说明:将输入的数字平方后返回
输入:
{
"number": 5
}输出:
25Copilot Studio 连接概述
在 Copilot Studio 中打开代理。
确认已启用
Generative orchestration。在添加 MCP 服务器的界面中注册此服务器的 URL。
连接后,确认
echo和multi工具是否自动显示。
参考
Copilot Studio 会自动反映 MCP 服务器的工具名称、说明、输入和输出。
Copilot Studio 支持
Streamable transport。SSE 在 Copilot Studio 中将于 2025 年 8 月后不再支持。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
POC MCP server. Tool say_hello returns 'Welcome' (agent -> MCP -> API path).
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA basic MCP server for deployment to Amazon Bedrock AgentCore Runtime, enabling tool integration via FastMCP with streamable HTTP transport.-
- FlicenseNot gradedqualityDmaintenanceA basic MCP server demonstrating tool registration and SSE transport, enabling AI clients to call greeting, arithmetic, and time tools.-
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server offering a hello_world tool that returns a greeting and current UTC time via streamable HTTP.-
- FlicenseNot gradedqualityDmaintenanceA model-agnostic MCP server exposing example tools (add1, multiply2, greet) for learning purposes, working with any LLM through stdio transport.-