mattermost-mcp-server

mattermost-mcp-server

**摘要:** Mattermost MCP Server 使得组织和工作流程能够轻松部署、定制和集成Mattermost,这是一个开源的团队消息平台。

概述

Mattermost MCP Server 是一个实现模型上下文协议的服务器,用于 Mattermost 集成。它连接 Mattermost API,处理信息,并通过标准 MCP 传输提供数据。

系统要求

  • Node.js >= 22
  • npm >= 10

快速安装

# 克隆仓库
git clone https://github.com/kakehashi-inc/mattermost-mcp-server.git
cd mattermost-mcp-server

# 安装依赖
npm install

# 构建服务器
npm run build

基本用法

选择传输模式

SSE 传输模式 (默认,通过端口 8202)

npm start -- --endpoint="https://your-mattermost-server" \
             --token="your-mattermost-token" \
             --team-id="your-team-id" \
             --channels="channel1,channel2"

标准输入/输出模式

npm start -- --endpoint="https://your-mattermost-server" \
             --token="your-mattermost-token" \
             --team-id="your-team-id" \
             --channels="channel1,channel2" \
             --stdio

必需参数

参数描述
endpointMattermost 服务器 URL
tokenMattermost 身份验证令牌
team-id要监控的团队 ID
channels要监控的频道名称(逗号分隔)

可选参数

参数描述默认值
portSSE 模式的端口号8202
stdio启用标准输入/输出模式false

开发命令

  • npm run dev - 开发模式(支持热重载)
  • npm run lint - 代码检查
  • npm run format - 格式化代码
  • npm test - 运行测试
  • npm run inspect - 运行 MCP 检查器

许可证

MIT