MCP Microsoft Teams Server

by InditexTech
Verified
Apache 2.0
37
  • Linux
  • Apple

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Facilitates GitHub repository interaction and access, as seen in the repository badges and references.

  • Displays dynamic badges for license and release information in the repository documentation.

  • Provides code quality metrics integration as shown in the badges for bugs, maintainability, and reliability ratings.

MCP 团队服务器

用于Microsoft Teams集成的 MCP(模型上下文协议)服务器实现,提供阅读消息、创建消息、回复消息、提及成员的功能。

特征

https://github.com/user-attachments/assets/548a9768-1119-4a2d-bd5c-6b41069fc522

  • 在频道中发起带有标题和内容的讨论,并提及用户
  • 通过消息回复更新现有主题,提及用户
  • 阅读主题回复
  • 列出频道团队成员
  • 阅读频道消息

先决条件

安装

  1. 克隆存储库:
git clone [repository-url] cd mcp-teams-server
  1. 创建虚拟环境并安装依赖项:
uv venv uv sync --frozen --all-extras --dev

团队配置

请阅读本文档,了解如何配置 Microsoft Teams 和所需的 Azure 资源。它并非分步指南,但可以帮助您明确所需内容。

用法

在 shell 或 .env 文件中设置以下环境变量。您可以使用示例文件作为模板:

钥匙描述
团队应用 ID您的 MS Entra ID 应用程序 ID 的 UUID
TEAMS_APP_密码客户端机密
TEAMS_APP_TYPE单租户或多租户
TEAMS_APP_TENANT_ID如果是 SingleTenant,则租户 uuid
球队 IDMS Teams 组 ID 或团队 ID
团队频道 ID带有 URL 转义字符的 MS Teams 频道 ID

启动服务器:

uv run mcp-teams-server

发展

集成测试需要设置以下环境变量:

钥匙描述
测试线程 ID线程 ID 的时间戳
测试消息 ID消息 ID 的时间戳
测试用户名测试用户名
uv run pytest -m integration

预构建的docker镜像

ghcr.io 上托管了一个预构建的镜像。您可以通过运行以下命令来安装此镜像

docker pull ghcr.io/inditextech/mcp-teams-server:latest

构建docker镜像

您可以使用以下命令构建 Docker 镜像来运行 MCP 服务器:

docker build . -t inditextech/mcp-teams-server

运行docker镜像

基本运行配置:

docker run -it inditextech/mcp-teams-server

使用 .env 文件中的环境变量运行:

docker run --env-file .env -it inditextech/mcp-teams-server

设置 LLM 以使用 MCP Teams Server

请按照以下文档中的说明进行操作

变更日志

请参阅CHANGELOG.md了解变更列表和版本历史记录。

贡献

请阅读CONTRIBUTING.md了解我们的行为准则和提交拉取请求的流程的详细信息。

安全

出于安全考虑,请参阅我们的安全政策

执照

该项目根据Apache-2.0文件获得许可,详情请见。

© 2025 INDUSTRIA DE DISEÑO TEXTIL SA (INDITEX SA)

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

集成 Microsoft Teams 消息传递(阅读、发布、提及、列出成员和线程)的 MCP 服务器

  1. Features
    1. Prerequisites
      1. Installation
        1. Teams configuration
          1. Usage
            1. Development
              1. Pre-built docker image
              2. Build docker image
              3. Run docker image
              4. Setup LLM to use MCP Teams Server
            2. Changelog
              1. Contributing
                1. Security
                  1. License
                    ID: 03fcygtadz