Skip to main content
Glama
sesme100

Copilot Studio MCP Server

by sesme100

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.cmd

start_mcp_server.cmd 会打开一个新的 PowerShell 窗口来运行服务器,因此只要该窗口保持打开,MCP 服务器就会持续运行。

工具说明

1. echo

  • 说明:将输入的句子重复 3 次并返回

  • 输入:

{
  "message": "안녕하세요"
}
  • 输出:

"안녕하세요 안녕하세요 안녕하세요"

2. multi

  • 说明:将输入的数字平方后返回

  • 输入:

{
  "number": 5
}
  • 输出:

25

Copilot Studio 连接概述

  1. 在 Copilot Studio 中打开代理。

  2. 确认已启用 Generative orchestration

  3. 在添加 MCP 服务器的界面中注册此服务器的 URL。

  4. 连接后,确认 echomulti 工具是否自动显示。

参考

  • Copilot Studio 会自动反映 MCP 服务器的工具名称、说明、输入和输出。

  • Copilot Studio 支持 Streamable transport

  • SSE 在 Copilot Studio 中将于 2025 年 8 月后不再支持。

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sesme100/VSCode_Second_MCPFolder20260425'

If you have feedback or need assistance with the MCP directory API, please join our Discord server