agent-tenant-user-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-tenant-user-mcplist all tenants"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-tenant-user-mcp
MCP server for the MSPbots Agent Platform tenant/user API (mb-platform-user service) — lets an Agent list all platform tenants.
Naming note: this is not a third-party vendor integration. It wraps an internal MSPbots App API (path prefix
/apps/mb-platform-user/api/...) on the Agent Platform (agent.mspbots.ai). "MSP" in the header names below refers to the MSPbots Agent Platform itself, not an external MSP tool vendor. Auth convention follows the same pattern already established inticketqa-mcp(another internal Agent Platform App API MCP), per explicit instruction to reuse that pattern.
Overview
Stateless HTTP service. No credentials are ever persisted — each request supplies its own bearer token/tenant/host via headers, used only for the lifetime of that single request.
Supports concurrent requests; per-request credential isolation is done via Python
contextvars, not a global/shared client instance.Entry points:
POST /mcp(MCP protocol) andGET /health(health check).Default port:
8080(configurable viaMCP_HTTP_PORT).
Related MCP server: cipp-mcp
Scope
1 tool, matching the single documented endpoint (tenants.md, attached to PRD-15236):
agent_tenant_user_list_tenants—GET /apps/mb-platform-user/api/tenants(paginated, returns all platform tenants; requiressuperAdmin/adminrole per the source doc).
No larger public API exists to reference for broader scope (this is a first-party internal service), so scope is exactly what the source doc documents.
Authentication
Per the source doc, this endpoint requires:
Authorization: Bearer <JWT>(EdDSA-signed) — tenant/user/role are decoded from the JWT itself.An
X_Tenant_IDvalue for platform routing — the source doc describes this as a Cookie, but the established working convention on this platform (confirmed inticketqa-mcp, where the equivalent header was empirically required because a bearer token alone gets404 App not found) is to forward it as an HTTP header instead. This server follows that same convention rather than the doc's literal wording, for consistency with the platform's other MCP servers.
The Agent Platform host (agent.mspbots.ai or its per-environment equivalent) is also supplied per-request, since different environments (INT/STG/PROD) may use different hosts.
HEADER 授权参数说明
Header | 类型 | 是否必填 | 默认值 | 枚举值 | 字段描述 | Example |
| string | 是 | 无 | 无(自由文本,JWT) | Agent Platform 已签发的访问凭证(EdDSA 签名的 JWT bearer token)。本服务原样转发为下游请求的 |
|
| string | 是 | 无 | 无(自由文本,UUID) | 租户标识。转发给下游 API 时改名为 |
|
| string | 是 | 无 | 无(自由文本,base URL) | Agent Platform 所在的 host。本服务会拼接 |
|
Missing any header returns 401:
{
"error": "Missing credentials",
"message": "This server requires the X-MSP-Token header (Agent Platform bearer access credential), the X-MSP-Tenant-Id header, and the X-MSP-Host header (Agent Platform host)",
"required_headers": ["X-MSP-Token", "X-MSP-Tenant-Id", "X-MSP-Host"],
"optional_headers": []
}Environment Variables
Variable | 类型 | 是否必填 | 默认值 | 说明 |
| int | 否 |
| HTTP 监听端口 |
| string | 否 |
| HTTP 监听地址 |
MCP Endpoint
POST /mcp— MCP protocol (streamable HTTP transport)GET /health— health check, returns{"status": "ok", "service": "agent-tenant-user-mcp", "transport": "http"}
Tool List
Tool | 功能 | 方法+路径 | 参数 |
| 分页获取全平台租户列表(需 superAdmin/admin 角色) | GET /apps/mb-platform-user/api/tenants | page(必填), page_size(必填) |
测试示例
# Health check
curl -s http://localhost:8080/health
# Call the tool via the MCP protocol (streamable HTTP) — requires an
# initialize handshake first per the MCP spec; abbreviated example below
# shows the tool-call request body only:
curl -s -X POST http://localhost:8080/mcp \
-H "X-MSP-Token: <jwt>" \
-H "X-MSP-Tenant-Id: <tenant-id>" \
-H "X-MSP-Host: https://agent.mspbots.ai" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: <session-id-from-initialize>" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agent_tenant_user_list_tenants",
"arguments": {"page": 1, "page_size": 50}
}
}'API Reference
Source doc:
tenants.md, attached to PRD-15236 (per its own notes, fields were captured from one real call on 2026-07-30;codesemantics,timezoneOffsetunit, and timestamp formats are inferred, not officially confirmed by the backend team).
Known Gaps
Live self-test not yet performed — this build has no real JWT/tenant ID for
agent.mspbots.aion hand. Verified structurally only: MCP handshake,tools/list, and 401 credential-gating with placeholder values. Needs a real bearer token + tenant ID to confirm the actual tenant-list response shape end-to-end.The
X_Tenant_ID-as-header-not-cookie assumption is carried over fromticketqa-mcp's empirical finding on the same platform, not independently re-verified for this specificmb-platform-userservice.code/timezoneOffset/timestamp-format semantics are explicitly marked as inferred in the source doc itself.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/MSPbotsAI/agent-tenant-user-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server