mspbots-agent-mcp
Exposes MSPbots Agent Platform connector inventory to MCP clients, listing connectors with installation and connection status. Supports per-request header authentication over Streamable HTTP/SSE.
README
mspbots-agent-mcp
MCP server for the MSPbots Agent Platform capabilities API — exposes the Agent Platform's connector inventory to MCP clients.
It follows the same design as the sibling ticketqa-mcp service: stateless, no
stored credentials, per-request header authentication over the
Model Context Protocol (Streamable HTTP/SSE
transport).
Tools
| Tool | 功能 | 参数 |
|---|---|---|
mspbotsagent_get_connectors |
列出当前租户的所有 connector,返回每个的名称、是否已安装、连接状态 | 无(凭证全部来自请求头) |
mspbotsagent_get_connectors returns one row per connector:
| Field | 说明 |
|---|---|
name |
Connector 显示名 |
integration |
Connector/integration key (如 connectwise-command) |
scope |
Connector 作用域 (如 mspbots) |
managed |
管理方式 (如 gateway) |
installed |
是否已安装/启用 (bool,来自 API 的 enabled) |
connected |
当前是否已连接 (bool,来自 API 的 connected) |
status |
派生状态:not_installed / connected / installed_disconnected |
API 返回的每个 connector 还带一个很大的 base64
logo字段——本服务会将其剥离, 以保持响应精简。
Backing endpoint: GET /apps/mb-platform-agent/api/capabilities/connectors, which
returns {"success": true, "data": {"list": [ {connector}, ... ]}}.
Quick Start
Docker (recommended)
docker compose up --build
The server starts on http://localhost:8080.
Local (uv)
uv sync
python -m mspbots_agent_mcp
Health Check
curl http://localhost:8080/health
# {"status": "ok", "service": "mspbots-agent-mcp", "transport": "http"}
No credentials are required for the health endpoint.
授权参数说明 (Authentication)
Every request to /mcp must include the following HTTP headers (provided by the
MCP caller — kept consistent with ticketqa-mcp):
| Header | 类型 | 是否必填 | 字段描述 | Example |
|---|---|---|---|---|
X-MSP-Token |
string | 必填 | Agent Platform 已签发的访问凭证 (JWT bearer token)。本服务原样转发为下游请求的 Authorization: Bearer <token>。 |
X-MSP-Token: <jwt-bearer-token> |
X-MSP-Tenant-Id |
string | 必填 | 租户标识。转发给下游 API 时改名为 X_Tenant_ID header(租户也已内嵌在 JWT 中)。 |
X-MSP-Tenant-Id: <tenant-id> |
X-MSP-Host |
string | 必填 | Agent API 所在的 host。本服务会拼接 /apps/mb-platform-agent/api/capabilities/<endpoint> 得到完整请求地址。 |
X-MSP-Host: https://agent.mspbots.ai |
Missing any of the three headers returns 401 Unauthorized.
Environment Variables
| Variable | Default | Description |
|---|---|---|
MCP_HTTP_PORT |
8080 |
Listening port |
MCP_HTTP_HOST |
0.0.0.0 |
Listening host |
MCP Endpoint
POST http://localhost:8080/mcp
Connect your MCP client with:
- Transport:
http(Streamable HTTP / SSE) - Headers:
X-MSP-Token,X-MSP-Tenant-Id,X-MSP-Host(all required)
测试示例 (Test Example)
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-MSP-Token: <token>" \
-H "X-MSP-Tenant-Id: <tenant-id>" \
-H "X-MSP-Host: https://agent.mspbots.ai" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": { "name": "mspbotsagent_get_connectors", "arguments": {} }
}'
⚠️ 本仓库为公开仓库,请勿在任何提交的文件中写入真实的 token / tenant id 等敏感信息, 上面的
<token>/<tenant-id>仅为占位符。
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。