原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

ConnectWise PSA

作者:mspstack版本 0.12.0i★ 6i在你的电脑上运行
注册名称io.github.mspstack/mcp-connectwise-psa

安装方法

What it does

ConnectWise PSA (Manage) MCP server — tickets, time entries, companies, configurations, BYOK

  • Connects 在你的电脑上运行
  • Account or key Needs CW_PUBLIC_KEY, CW_PRIVATE_KEY, CW_DB_PASSWORD · 3 settings to fill in (CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID)
  • Category 其他

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 注册并创建 ConnectWise PSA 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 ConnectWise PSA 网站 ↗

  3. 填写 3 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • CW_SITE ConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted)
    • CW_COMPANY_ID ConnectWise login company id
    • CW_CLIENT_ID Integration clientId from developer.connectwise.com

    说明仍为英文原文。

  4. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  5. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "connectwise-psa": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-connectwise-psa"
          ],
          "env": {
            "CW_SITE": "your-value",
            "CW_COMPANY_ID": "your-value",
            "CW_CLIENT_ID": "your-value",
            "CW_PUBLIC_KEY": "your-value",
            "CW_PRIVATE_KEY": "your-value",
            "CW_DB_PASSWORD": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 退出 Claude 再重新打开

  7. 试一试

    用 ConnectWise PSA 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 ConnectWise PSA,或回答中出现 ConnectWise PSA 的工具名称,就表示连接成功

6 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CW_MEMBER_IDENTIFIER Member identifier the API keys belong to — enables "my tickets"/"my time" tools
  • CW_TOOLSETS Comma list of toolsets/presets (default: all). Add sql for database queries.
  • CW_DB_HOST ConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset
  • CW_DB_NAME ConnectWise Manage database, e.g. cwwebapp_acme
  • CW_DB_USER Dedicated read-only database login (db_datareader)
  • CW_DB_QUERY_LIBRARY Path to a writable JSON file holding saved SQL queries

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 ConnectWise PSA

ConnectWise PSA 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 ConnectWise PSA 的应用

  • 需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次)

B · 其他 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 注册并创建 ConnectWise PSA 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 ConnectWise PSA 网站 ↗

  3. 填写 3 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • CW_SITE ConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted)
    • CW_COMPANY_ID ConnectWise login company id
    • CW_CLIENT_ID Integration clientId from developer.connectwise.com

    说明仍为英文原文。

  4. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  5. 粘贴这条命令并按 Enter

    claude mcp add --scope user connectwise-psa --env CW_SITE=your-value --env CW_COMPANY_ID=your-value --env CW_CLIENT_ID=your-value --env CW_PUBLIC_KEY=your-value --env CW_PRIVATE_KEY=your-value --env CW_DB_PASSWORD=your-value -- npx -y mcp-connectwise-psa

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Claude Code 中输入 /mcp

    应能看到 ConnectWise PSA 在列表中并显示已连接

  7. 试一试

    用 ConnectWise PSA 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 ConnectWise PSA,或回答中出现 ConnectWise PSA 的工具名称,就表示连接成功

6 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CW_MEMBER_IDENTIFIER Member identifier the API keys belong to — enables "my tickets"/"my time" tools
  • CW_TOOLSETS Comma list of toolsets/presets (default: all). Add sql for database queries.
  • CW_DB_HOST ConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset
  • CW_DB_NAME ConnectWise Manage database, e.g. cwwebapp_acme
  • CW_DB_USER Dedicated read-only database login (db_datareader)
  • CW_DB_QUERY_LIBRARY Path to a writable JSON file holding saved SQL queries

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 注册并创建 ConnectWise PSA 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 ConnectWise PSA 网站 ↗

  3. 填写 3 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • CW_SITE ConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted)
    • CW_COMPANY_ID ConnectWise login company id
    • CW_CLIENT_ID Integration clientId from developer.connectwise.com

    说明仍为英文原文。

  4. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 ConnectWise PSA 的设置中,CW_PUBLIC_KEY, CW_PRIVATE_KEY, CW_DB_PASSWORD, CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Cursor 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 ConnectWise PSA 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 ConnectWise PSA,或回答中出现 ConnectWise PSA 的工具名称,就表示连接成功

6 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CW_MEMBER_IDENTIFIER Member identifier the API keys belong to — enables "my tickets"/"my time" tools
  • CW_TOOLSETS Comma list of toolsets/presets (default: all). Add sql for database queries.
  • CW_DB_HOST ConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset
  • CW_DB_NAME ConnectWise Manage database, e.g. cwwebapp_acme
  • CW_DB_USER Dedicated read-only database login (db_datareader)
  • CW_DB_QUERY_LIBRARY Path to a writable JSON file holding saved SQL queries

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 ConnectWise PSA 的密钥(在开发者网站创建) · 需要填写 3 项设置(CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID) · 需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 注册并创建 ConnectWise PSA 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 ConnectWise PSA 网站 ↗

  3. 填写 3 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • CW_SITE ConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted)
    • CW_COMPANY_ID ConnectWise login company id
    • CW_CLIENT_ID Integration clientId from developer.connectwise.com

    说明仍为英文原文。

  4. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 ConnectWise PSA 的设置中,CW_PUBLIC_KEY, CW_PRIVATE_KEY, CW_DB_PASSWORD, CW_SITE, CW_COMPANY_ID, CW_CLIENT_ID 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 VS Code 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 ConnectWise PSA 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 ConnectWise PSA,或回答中出现 ConnectWise PSA 的工具名称,就表示连接成功

6 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CW_MEMBER_IDENTIFIER Member identifier the API keys belong to — enables "my tickets"/"my time" tools
  • CW_TOOLSETS Comma list of toolsets/presets (default: all). Add sql for database queries.
  • CW_DB_HOST ConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset
  • CW_DB_NAME ConnectWise Manage database, e.g. cwwebapp_acme
  • CW_DB_USER Dedicated read-only database login (db_datareader)
  • CW_DB_QUERY_LIBRARY Path to a writable JSON file holding saved SQL queries

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 ConnectWise PSA 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user connectwise-psa --env CW_SITE=your-value --env CW_COMPANY_ID=your-value --env CW_CLIENT_ID=your-value --env CW_PUBLIC_KEY=your-value --env CW_PRIVATE_KEY=your-value --env CW_DB_PASSWORD=your-value -- npx -y mcp-connectwise-psa

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "connectwise-psa": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-connectwise-psa"
      ],
      "env": {
        "CW_SITE": "your-value",
        "CW_COMPANY_ID": "your-value",
        "CW_CLIENT_ID": "your-value",
        "CW_PUBLIC_KEY": "your-value",
        "CW_PRIVATE_KEY": "your-value",
        "CW_DB_PASSWORD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "connectwise-psa": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-connectwise-psa"
      ],
      "env": {
        "CW_SITE": "your-value",
        "CW_COMPANY_ID": "your-value",
        "CW_CLIENT_ID": "your-value",
        "CW_PUBLIC_KEY": "your-value",
        "CW_PRIVATE_KEY": "your-value",
        "CW_DB_PASSWORD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "connectwise-psa": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-connectwise-psa"
      ],
      "env": {
        "CW_SITE": "your-value",
        "CW_COMPANY_ID": "your-value",
        "CW_CLIENT_ID": "your-value",
        "CW_PUBLIC_KEY": "your-value",
        "CW_PRIVATE_KEY": "your-value",
        "CW_DB_PASSWORD": "your-value"
      }
    }
  }
}

需要你填写的值

  • CW_SITE 必填 env
    ConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted)
  • CW_COMPANY_ID 必填 env
    ConnectWise login company id
  • CW_CLIENT_ID 必填 env
    Integration clientId from developer.connectwise.com
  • CW_PUBLIC_KEY 机密 必填 env
    API member public key
  • CW_PRIVATE_KEY 机密 必填 env
    API member private key
  • CW_MEMBER_IDENTIFIER env
    Member identifier the API keys belong to — enables "my tickets"/"my time" tools
  • CW_TOOLSETS env
    Comma list of toolsets/presets (default: all). Add sql for database queries.
  • CW_DB_HOST env
    ConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset
  • CW_DB_NAME env
    ConnectWise Manage database, e.g. cwwebapp_acme
  • CW_DB_USER env
    Dedicated read-only database login (db_datareader)
  • CW_DB_PASSWORD 机密 必填 env
    Password for the read-only database login
  • CW_DB_QUERY_LIBRARY env
    Path to a writable JSON file holding saved SQL queries

说明仍为英文原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
116/周
连接方式
在你的电脑上运行
最新版本i
0.12.0
分类i
其他
发布到注册中心i
2026年10月7日
代码最后更新i
2026年10月7日
作者
mspstack
软件包
npm: mcp-connectwise-psa
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mspstack 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于38天前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 19776 个服务器的 95%
  • 发布到注册中心的时间比此分类中其他 19776 个服务器的 54% 更新
  • 基础检查结果等于或优于此分类中其他 19776 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

ConnectWise PSA 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:CW_PUBLIC_KEY, CW_PRIVATE_KEY, CW_DB_PASSWORD

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于38天前,最新版本(0.12.0)于38天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:World Monitor, Claude Flow, Windmill

同类别的其他选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.

作者:koala73广泛使用★ 9.1万今天更新

在云端运行✓ 服务方 · worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

作者:ruvnet广泛使用↓ 1.4万/周★ 8.2万14个月前更新

在你的电脑上运行

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

作者:windmill-labs广泛使用★ 1.9万前天更新

在云端运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mcp-connectwise-psa

An MCP (Model Context Protocol) server for ConnectWise PSA (Manage) — curated tools across 8 toolsets covering technicians, dispatchers, and billing, plus an escape hatch for the rest of the API and a read-only SQL toolset for on-prem deployments, so an AI assistant works PSA the way each role does:

  • Tickets — search / my tickets / full detail with notes, create, update status/priority/owner, add discussion/internal notes, plus board·status·priority discovery and per-ticket time & tasks. Covers **service *and* project tickets** — ConnectWise keeps them on separate resources, so the read tools query both and the by-id tools detect which one an id belongs to
  • Time — log time against tickets (with work role, work type and CW's Deduct for breaks), review your own time, work-role and work-type lookup, and list & submit your timesheets
  • Companies & contacts — fast lookup, contact detail (phones/emails), company sites
  • Configurations — devices/assets with serials, IPs, OS, warranty (read-only)
  • Dispatch *(schedule)* — schedule entries (list/mine/create/reschedule/cancel), and members with their timezone, working hours, and free-vs-booked availability
  • Invoicing *(finance, read-only)* — invoices, agreements, and unbilled billable time ready to bill
  • SQL *(on-prem only)* — read-only T-SQL straight against the cwwebapp_* Manage database for the cross-table reporting REST cannot express, with a searchable schema catalog and a library of saved queries the assistant can grow. Enabled by configuring CW_DB_*; where it is, every session that does not narrow its toolsets has it
  • Toolsets & personas — enable only what a session needs via the x-cw-toolsets header (or CW_TOOLSETS); presets tech / dispatch / invoicing / all. Default is all — narrow it per session when a smaller surface is wanted. Each tool also reports its toolset as _meta.group, so an aggregator (the MSPStack gateway) can group and switch tools by capability
  • Per-member API keys (BYOK) — each user supplies their own ConnectWise member keys; ConnectWise enforces that member's security role, and every write is attributed to the *actual person*
  • Transports — stdio for local use, streamable HTTP for shared deployments; Docker image included

Quick start (local, stdio)

npm install && npm run build

CW_SITE=na.myconnectwise.net \ CW_COMPANY_ID=yourcompany \ CW_CLIENT_ID= \ CW_PUBLIC_KEY=xxxx CW_PRIVATE_KEY=yyyy \ CW_MEMBER_IDENTIFIER=jdoe \ node dist/index.js

Claude Desktop / Claude Code config:

{

"mcpServers": { "connectwise": { "command": "node", "args": ["/path/to/mcp-connectwise-psa/dist/index.js"], "env": { "CW_SITE": "na.myconnectwise.net", "CW_COMPANY_ID": "yourcompany", "CW_CLIENT_ID": " ", "CW_PUBLIC_KEY": "xxxx", "CW_PRIVATE_KEY": "yyyy", "CW_MEMBER_IDENTIFIER": "jdoe" } } } }

A clientId is required by the ConnectWise API — register a (free) integration at developer.connectwise.com. API member keys are created in ConnectWise under My Account → API Keys (per member) or System → Members → API Members (integration accounts).

HTTP deployment

CW_SITE=… CW_COMPANY_ID=… CW_CLIENT_ID=… \

node dist/index.js --transport http --port 3000

Or with Docker: docker build -t mcp-connectwise-psa . && docker run -p 3000:3000 -e CW_SITE -e CW_COMPANY_ID -e CW_CLIENT_ID mcp-connectwise-psa

RoutePurpose
POST/GET/DELETE /mcpMCP streamable-http endpoint
GET /healthLiveness probe

Sessions are held in memory — run a single instance (or sticky sessions).

Access control — bring your own keys (BYOK)

Over HTTP there is no MCP-level role system. Each session presents its own ConnectWise member API keys, and ConnectWise itself is the access control: the member's security role decides what succeeds, and every note and time entry is attributed to that member.

Send your keys on the initialize request (and on every subsequent request in the session):

x-cw-public-key:  <public key>

x-cw-private-key: x-cw-member-id: (optional — enables "my tickets"/"my time")

  • A request with no keys is rejected with 401; both key headers are required together.
  • Keys are never logged. A session is bound to a SHA-256 hash of the key pair; presenting a different pair on the same session id → 403.
  • Create member API keys in ConnectWise under My Account → API Keys. Each tech uses their own.

Local stdio is single-user and uses the CW_PUBLIC_KEY/CW_PRIVATE_KEY from the environment instead of headers.

Toolsets

Tools are grouped into toolsets so a session only sees the capabilities it needs — a dispatcher doesn't need the invoicing tools, and a small tool surface keeps the assistant focused (and its context cheap). Whether a write actually succeeds is still governed by the member's ConnectWise security role.

Toolset keyTools
ticketscw_search_tickets, cw_my_tickets, cw_get_ticket, cw_create_ticket, cw_update_ticket, cw_add_ticket_note, cw_bundle_tickets, cw_list_boards, cw_get_board, cw_list_priorities, cw_list_ticket_time, cw_list_ticket_tasks
timecw_create_time_entry, cw_update_time_entry, cw_list_my_time, cw_list_work_roles, cw_list_work_types, cw_list_my_timesheets, cw_submit_timesheet
companiescw_search_companies, cw_get_company, cw_search_contacts, cw_get_contact, cw_list_company_sites
configurationscw_list_configurations, cw_get_configuration
schedulecw_list_schedule_entries, cw_my_schedule, cw_schedule_ticket, cw_update_schedule_entry, cw_delete_schedule_entry, cw_member_availability, cw_list_members, cw_get_member
financecw_list_invoices, cw_get_invoice, cw_list_agreements, cw_get_agreement, cw_list_unbilled_time
advancedcw_find_endpoint (search the full CW API — ~1,150 endpoints), cw_get (read-only GET on any path)
sql *(on-prem, needs CW_DB_*)*cw_db_query (read-only T-SQL), cw_db_find_table (schema catalog), cw_db_find_query / cw_db_save_query (saved-query library)

Presets bundle keys per persona: tech = tickets + time + companies + configurations · dispatch = tickets + schedule + companies + configurations · invoicing = finance + time + companies · all = every key. The persona presets deliberately exclude sql — a technician surface is not a database surface.

The `advanced` toolset is the escape hatch (in all, but in no persona preset): cw_find_endpoint searches a bundled catalog of the whole ConnectWise API, and cw_get performs a read-only GET on any path — so an assistant can reach the long tail (procurement, sales, projects, system…) the curated tools don't wrap. To drop it, name the keys or a persona preset instead (x-cw-toolsets: tech).

Select toolsets with a comma list mixing keys and presets:

  • HTTP — the x-cw-toolsets header, per session: x-cw-toolsets: dispatch or x-cw-toolsets: tech,finance.
  • stdio — the CW_TOOLSETS env var or --toolsets flag: CW_TOOLSETS=invoicing.

The default is the `all` preset — every capability the server is configured for; a client that wants a smaller surface names the keys or persona it needs. Unknown keys in CW_TOOLSETS/--toolsets fail fast; unknown tokens in the x-cw-toolsets header are ignored. The only destructive tool is cw_delete_schedule_entry (dispatch); finance is read-only. cw_db_save_query writes, but to the query-library file — database access itself is SELECT-only by grant.

Exception: the sql toolset

Every other toolset runs on the caller's own ConnectWise keys, so ConnectWise filters what comes back. sql does not: it reads the database through a server-wide read-only login, so its results are not attributed to a member and are not filtered by that member's security role, board restrictions or record permissions.

Configuring CW_DB_* is therefore the decision that matters. Once a server has a database, sql is an ordinary key: it is in all, it is in the default selection, and every session that does not narrow its toolsets can read the whole PSA database. A server without CW_DB_* prunes it silently, so nothing breaks for deployments that never wanted it.

If you need database access for some callers but not others, do it per session (x-cw-toolsets: tech) or in front of the server — an aggregating gateway can tier the cw_db_* tools separately. What bounds the damage on the server side is the login: see the runbook below, and keep it to db_datareader with credential columns denied.

SQL toolset (on-prem database)

Cloud-hosted ConnectWise gives you no database access, so this toolset is for on-prem deployments only. Point it at the Manage database with a login created for exactly this purpose:

CW_DB_HOST=sqlhost CW_DB_NAME=cwwebapp_acme \

CW_DB_USER=cw_mcp_ro CW_DB_PASSWORD=… \ CW_DB_QUERY_LIBRARY=/data/cw-queries.json \ node dist/index.js

That is all it takes: with a database configured the sql toolset is part of the default selection. Naming sql without CW_DB_* fails at startup (a selection that only *includes* it, like all, is pruned instead). Nothing connects to the database until a session actually uses a tool.

Start from the reporting views. ConnectWise ships denormalized v_rpt_* views that already join board, status, company and contact onto a record — v_rpt_service, v_rpt_time, v_rpt_company, v_rpt_invoices, v_rpt_agreementlist. cw_db_find_table knows them and the base tables behind them; it carries key columns only, because the exact column list is one INFORMATION_SCHEMA query away and is always right for *your* version.

The saved-query library is the committed core plus a writable overlay at CW_DB_QUERY_LIBRARY (JSON, { version, queries[] }). Overlay entries win by slug, cw_db_save_query appends to it, and scripts/import-queries.mjs fills it from an existing BrightGauge export:

node scripts/import-queries.mjs /path/to/brightgauge-export

Imported queries stay outside this repository — they are your reporting and can carry company names and rates. On a container, point CW_DB_QUERY_LIBRARY at mounted storage or saved queries die with the container.

The login is the security boundary

There is no statement validation: the server sends the model's SQL to SQL Server as written, so what the login is allowed to do is exactly what can happen. Two scripts set it up and prove it.

Create it — edit the four variables at the top, run as sysadmin. @WhatIf defaults to 1, so the first run only prints the plan:

sqlcmd -S SQLHOST\CWPROD -d master -i scripts/create-readonly-login.sql

It creates the login in no server role, adds it to db_datareader in one database, DENYs everything else (EXECUTE, all writes, DDL, BACKUP), and DENYs SELECT on every credential-looking column it *discovers* — the names move between Manage versions and every MSP adds its own, so they are found rather than hard-coded. Re-running is safe and is how you re-apply the DENYs after an upgrade adds tables. It reports the instance-wide settings that must be off but never changes them: disabling xp_cmdshell can break other applications, so that stays a decision.

Verify it — as the new login, not as an admin:

sqlcmd -S SQLHOST\CWPROD -d cwwebapp_acme -U cw_mcp_ro -P '<password>' -i scripts/verify-readonly-login.sql

Every check prints PASS or FAIL: SELECT works, UPDATE/CREATE TABLE are refused (inside a transaction that always

只显示了开头部分;其余内容请在仓库中阅读