Kaseya BMS

io.github.wyre-technology由 GitHub 账号 wyre-technology 发布v1.1.4更新于 Oct 24, 2026

MCP server for Kaseya BMS PSA — tickets, accounts, time entries, contracts.

已验证STDIO仅桌面效率与工作流商业与电商

概览

AI 生成的概览

让助手读取并操作 Kaseya BMS PSA 数据,例如工单、客户、联系人、合同、工时条目和知识库文章。

可以做什么
将 AI 助手连接到 Kaseya BMS PSA API。工具可列出和获取工单、创建工单、追加工单备注、按日期范围列出工时条目,并列出客户、联系人、合同和服务目录项,还提供知识库搜索。在支持 MCP Apps 的宿主中,获取工单会渲染为可交互卡片,并可在卡片内添加备注;其他宿主仍返回普通 JSON。当缺少筛选条件或请求破坏性操作时,服务器会提示选择或确认。
适用场景
适合已在使用 Kaseya BMS 的支持与服务团队,希望助手在不切换 PSA 界面的情况下查询工单、客户和合同,查看工时条目,搜索知识库,或起草并记录工单更新。
运行要求
以本地进程通过 stdio 运行,通常使用已发布的容器镜像。需要租户子域名 KASEYA_BMS_TENANT_SUBDOMAIN,以及 KASEYA_BMS_API_TOKEN 或 KASEYA_BMS_K1_TOKEN 之一。AUTH_MODE 选择本地环境凭据或网关请求头注入;MCP_TRANSPORT 和 MCP_HTTP_PORT 控制传输方式与端口。需要访问 Kaseya BMS API 的网络连接。
安装前请注意
该服务器处理 PSA 凭据:KASEYA_BMS_API_TOKEN 或 KASEYA_BMS_K1_TOKEN 属于机密,应通过环境变量或网关请求头提供,切勿提交到代码库。创建工单和添加工单备注会写入 PSA,被标记为破坏性操作,需要确认。在网关模式下,凭据通过 X-Kaseya-BMS-API-Token 等逐请求请求头传入,因此必须信任请求头的处理环节。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Kaseya BMS,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Kaseya BMS MCP Server

[Release] [License: Apache 2.0]

Model Context Protocol (MCP) server for the Kaseya BMS PSA API. Exposes tickets, accounts, contacts, contracts, time entries, the service catalog, and the knowledge base to AI assistants.

Tools

ToolDescription
kaseya_bms_list_ticketsList tickets. Optional $filter; status pick if omitted.
kaseya_bms_get_ticketGet a ticket by id.
kaseya_bms_create_ticketCreate a new ticket (destructive — confirmation required).
kaseya_bms_add_ticket_noteAppend a note to a ticket (destructive — confirmation required).
kaseya_bms_list_time_entriesTime entries by date range (24h / 7d / 30d / custom / all).
kaseya_bms_list_accountsAccounts (clients).
kaseya_bms_list_contactsContacts.
kaseya_bms_list_contractsContracts.
kaseya_bms_list_service_catalogService catalog items.
kaseya_bms_search_knowledge_baseKnowledge base search.

When the user omits required filters or runs a destructive action, the server uses MCP elicitation to prompt for choices or confirm.

Interactive Ticket Card (MCP Apps)

kaseya_bms_get_ticket renders as an interactive card in MCP Apps hosts (Claude Desktop/web) with an in-card "Add note" round-trip via kaseya_bms_add_ticket_note (always posted internal-only); plain-JSON behavior is unchanged in other hosts. The card is neutral by default and brandable via window.__BRAND__ injection or MCP_BRAND_* env vars (MCP_BRAND_NAME, MCP_BRAND_LOGO_URL, MCP_BRAND_PRIMARY_COLOR, MCP_BRAND_ACCENT_COLOR, MCP_BRAND_BG, MCP_BRAND_TEXT) — no rebuild needed. After editing ui/, regenerate the embedded bundle with npm run build:ui.

Configuration

Copy .env.example. Stdio and AUTH_MODE=env read the Kaseya BMS variables. Gateway mode does not.

VariableRequiredDescription
KASEYA_BMS_TENANT_SUBDOMAINFor stdio and AUTH_MODE=envTenant subdomain (e.g. yourcompany)
KASEYA_BMS_API_TOKENOne of, for stdio and AUTH_MODE=envBMS API token
KASEYA_BMS_K1_TOKENOne of, for stdio and AUTH_MODE=envKaseya One SSO token
MCP_TRANSPORTNostdio (default) or http
AUTH_MODENoenv (default) or gateway. Gateway mode requires X-Kaseya-BMS-Tenant-Subdomain plus X-Kaseya-BMS-API-Token or X-Kaseya-BMS-K1-Token on each /mcp request and never falls back to KASEYA_BMS_*.
CONDUIT_S2S_SECRETYes for HTTPService-to-service secret. The HTTP server logs an error and exits non-zero when this is empty or a known placeholder. Compose will not start without it. Never commit a real value. Generate one with openssl rand -hex 32.
MCP_ALLOW_INSECURE_DEVNoSet to 1 only for local development to start HTTP without CONDUIT_S2S_SECRET. The process logs a warning, does not enforce X-Gateway-S2S, and binds 127.0.0.1 only. A non-loopback MCP_HTTP_HOST refuses startup. A known placeholder secret is still refused.
MCP_HTTP_HOSTNoBind address when a real CONDUIT_S2S_SECRET is set. Unset keeps 0.0.0.0, which is what the container image sets, so container deploys stay on every interface inside the container. Without a secret the dev bypass binds 127.0.0.1 instead.
MCP_HTTP_PORTNoHTTP port. Defaults to 8080.

/health stays unauthenticated and does not read credentials. The stdio transport does not use CONDUIT_S2S_SECRET.

HTTP authentication

With MCP_TRANSPORT=http and CONDUIT_S2S_SECRET set, every /mcp request must include X-Gateway-S2S. The value is t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of the exact string t=<unix seconds> keyed by CONDUIT_S2S_SECRET (64 lowercase hex characters). The timestamp must be within 300 seconds of the server clock. A missing or invalid header returns 401. The secret is never written to logs.

js
import { createHmac } from "node:crypto";
const t = Math.floor(Date.now() / 1000);const v1 = createHmac("sha256", process.env.CONDUIT_S2S_SECRET)  .update(`t=${t}`)  .digest("hex");const xGatewayS2s = `t=${t},v1=${v1}`;

In AUTH_MODE=gateway, /mcp also requires X-Kaseya-BMS-Tenant-Subdomain and either X-Kaseya-BMS-API-Token or X-Kaseya-BMS-K1-Token. Those headers are the only credential source for that request. A request missing them returns 401 and does not read KASEYA_BMS_* from the environment. Each request creates a fresh server instance with isolated credentials.

Docker Compose

The checked-in Compose service is gateway mode. It publishes 127.0.0.1:8080:8080, requires CONDUIT_S2S_SECRET, and does not set KASEYA_BMS_TENANT_SUBDOMAIN, KASEYA_BMS_API_TOKEN, KASEYA_BMS_K1_TOKEN, or env_file. The image build reads GitHub Packages credentials from the npmrc build secret (the repo .npmrc only sets the registry).

bash
CONDUIT_S2S_SECRET="$(openssl rand -hex 32)" docker compose up --build

Single-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses KASEYA_BMS_*:

bash
docker build -t kaseya-bms-mcp .docker run --rm \  -e CONDUIT_S2S_SECRET="$(openssl rand -hex 32)" \  -e AUTH_MODE=env \  -e KASEYA_BMS_TENANT_SUBDOMAIN=yourcompany \  -e KASEYA_BMS_API_TOKEN=... \  -p 127.0.0.1:8080:8080 \  kaseya-bms-mcp

Local development

bash
npm installnpm run buildKASEYA_BMS_TENANT_SUBDOMAIN=yourcompany \  KASEYA_BMS_API_TOKEN=... \  npm start

HTTP refuses to start until CONDUIT_S2S_SECRET is a real secret:

bash
MCP_TRANSPORT=http CONDUIT_S2S_SECRET="$(openssl rand -hex 32)" npm startcurl http://127.0.0.1:8080/health

Local HTTP without a secret is development-only. It binds 127.0.0.1 and logs a warning:

bash
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm start

License

Apache-2.0

来源:README.md,提交 3ad28d3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分