Simple Support System Mcp

io.github.bitterdev由 GitHub 账号 bitterdev 发布v1.0.3更新于 Oct 26, 2026

MCP server for the Simple Support System helpdesk API: read, answer and move tickets.

概览

AI 生成的概览

面向 Concrete CMS 上 Simple Support System 工单 API 的本地 MCP 服务器,让助手读取、回复、流转并管理支持工单。

可以做什么
  • 查找与阅读工单:按项目、状态、类型、优先级、负责人、文本和变更日期筛选列表,并读取单个工单及其评论和附件。
  • 回复与流转工单:发布会触发通知邮件的回复,切换工作流状态,创建、修改和审核通过工单。
  • 管理评论:列出、改写、审核通过或删除工单评论。
  • 管理项目:列出、读取、创建、修改和删除支持项目,包括带访问令牌的私有项目。
  • 处理附件:上传本地文件、将其关联到工单、解析下载地址并删除。
  • 查看配置:显示 API 地址、是否已配置密钥,以及可用的状态、类型和优先级。
适用场景
适用于支持队列运行在 Concrete CMS 的 Simple Support System 插件上的场景,希望助手分诊、回复和流转工单,或在不打开后台界面的情况下维护项目和附件。
运行要求
通过 npm 包以 stdio 在本地运行,需要 Node.js 启动。必须设置 SIMPLE_SUPPORT_SYSTEM_BASE_URL 指向 Concrete CMS 站点;管理类调用需要 SIMPLE_SUPPORT_SYSTEM_API_KEY。可选:SIMPLE_SUPPORT_SYSTEM_API_PATH、SIMPLE_SUPPORT_SYSTEM_PROJECT_TOKEN、SIMPLE_SUPPORT_SYSTEM_PROJECT_ID 和 SIMPLE_SUPPORT_SYSTEM_TIMEOUT_MS。需要能访问该站点的网络。
安装前请注意
API 密钥(SIMPLE_SUPPORT_SYSTEM_API_KEY)和项目令牌(SIMPLE_SUPPORT_SYSTEM_PROJECT_TOKEN)是访问工单系统的机密凭据。回复和状态变更会向相关人员发送通知邮件。四个删除工具不可恢复,没有回收站或还原,且需要 confirm: true;删除项目会一并删除其中所有工单和评论。上传附件会把本地文件发送到站点。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

simple-support-system-mcp

Local MCP server (stdio) for the REST API of the Simple Support System add-on for Concrete CMS. It lets an assistant work a support queue the way a human would: find the ticket, read it with its history, write a reply, move it to the next state. Projects, attachments and moderation are covered as well.

The server talks to any site that runs the package. Nothing is hardcoded, the site URL and the API key come from environment variables. It speaks stdio only and never opens a port.

Install

bash
npm installnpm run build

Register the server in Claude Code:

bash
claude mcp add simple-support-system \  -e SIMPLE_SUPPORT_SYSTEM_BASE_URL=https://support.example.com \  -e SIMPLE_SUPPORT_SYSTEM_API_KEY=your-api-key \  -- node "/absolute/path/to/simple-support-system-mcp/dist/src/index.js"

Or in ~/.claude.json / claude_desktop_config.json:

json
{  "mcpServers": {    "simple-support-system": {      "command": "node",      "args": ["/absolute/path/to/simple-support-system-mcp/dist/src/index.js"],      "env": {        "SIMPLE_SUPPORT_SYSTEM_BASE_URL": "https://support.example.com",        "SIMPLE_SUPPORT_SYSTEM_API_KEY": "your-api-key"      }    }  }}

Environment

VariablePurpose
SIMPLE_SUPPORT_SYSTEM_BASE_URLRequired. Base URL of the Concrete CMS site, for example https://support.example.com. The API path /index.php/api/v1 is appended automatically, a URL that already ends in /api/v1 is used as it is.
SIMPLE_SUPPORT_SYSTEM_API_KEYAPI key of the installation, sent as the X-Api-Key header. Without it only the public part of the API is reachable.
SIMPLE_SUPPORT_SYSTEM_API_PATHOptional. Overrides the default API path for sites that do not use the index.php dispatcher, for example /api/v1.
SIMPLE_SUPPORT_SYSTEM_PROJECT_TOKENOptional. Default access token for private projects, used when a tool call passes no token of its own.
SIMPLE_SUPPORT_SYSTEM_PROJECT_IDOptional. Limits the server to this one project, see Limiting the server to one project.
SIMPLE_SUPPORT_SYSTEM_TIMEOUT_MSOptional. Request timeout in milliseconds, default 30000.

The API key is generated when the package is installed and lives in the site config under simple_support_system.api_key. Calls without it run as an anonymous visitor: reading public projects and their approved tickets, creating tickets and writing comments still work, everything administrative (state changes, deleting, approving, projects) does not.

Tools

The three everyday tools are list_tickets, get_ticket and reply_to_ticket, plus set_ticket_state to move a ticket along.

ToolPurpose
list_ticketsLists tickets with filters for project, state, type, priority, assignee, text search and change date, sorted and paged. Compact summaries by default.
get_ticketReads one ticket with its attachments and, unless switched off, all of its comments.
reply_to_ticketPosts a reply as a comment on a ticket and triggers the notification mails.
set_ticket_stateMoves a ticket to another workflow state and notifies everyone involved.
create_ticketCreates a ticket in a project, by project id or project handle, optionally with uploaded files.
update_ticketChanges title, content, type, priority or assignee. Only the given fields are touched.
approve_ticketApproves a moderated ticket.
delete_ticketDeletes a ticket with all comments and attachment links. Irreversible, needs confirm: true.
list_ticket_commentsLists the comments of a ticket.
update_commentReplaces the text of a comment.
approve_commentApproves a moderated comment.
delete_commentDeletes a comment. Irreversible, needs confirm: true.
list_projectsLists the support projects, with access tokens when an API key is configured.
get_projectReads one project by id.
create_projectCreates a project, private projects get a generated access token.
update_projectChanges name, handle or visibility of a project.
delete_projectDeletes a project with every ticket and comment inside it. Irreversible, needs confirm: true.
list_ticket_attachmentsLists the files attached to a ticket.
upload_attachmentUploads a local file into the file manager and returns its file id.
add_ticket_attachmentsLinks uploaded file ids to a ticket.
download_attachmentResolves the download URL of an attachment and can save it to a local path.
delete_attachmentRemoves a file from a ticket. Irreversible, needs confirm: true.
get_server_infoShows the configured API URL, whether a key is present and the accepted states, types and priorities. The key itself is never returned.

Reading tools are annotated as read only, the four delete_ tools as destructive. All of them additionally require confirm: true, so a delete cannot happen as a side effect of a vague instruction. There is no trash and no restore on the API side, a deleted ticket, comment or project is gone.

Working a ticket

text
list_tickets   { "state": "open", "sortBy": "updatedAt" }get_ticket     { "ticketId": 42 }reply_to_ticket{ "ticketId": 42, "comment": "Thanks for the report, we are on it." }set_ticket_state { "ticketId": 42, "state": "in_progress" }

list_tickets also takes projectHandle instead of projectId and resolves it through the project list first.

Values the API accepts

  • States: new, open, in_progress, on_hold, resolved, duplicate, invalid, wont_fix, closed. set_ticket_state accepts all of them except new, which is only set when a ticket is created.
  • Types: bug, enhancement, proposal, task
  • Priorities: trivial, minor, major, critical, blocker
  • Tickets in the state closed or invalid are locked: the API refuses edits of the ticket, its comments and its attachments until the state changes.

Attachments

text
upload_attachment      { "filePath": "/tmp/screenshot.png" }      -> fileIdadd_ticket_attachments { "ticketId": 42, "fileIds": [123] }

upload_attachment puts the file into the file manager of the site without linking it anywhere, the second call attaches it. create_ticket takes the same ids in attachmentFileIds.

Private projects

A private project is only reachable with its access token. Pass it per call as token, or set SIMPLE_SUPPORT_SYSTEM_PROJECT_TOKEN as the default. With an API key the token is not needed, the key already grants full access.

Limiting the server to one project

Set SIMPLE_SUPPORT_SYSTEM_PROJECT_ID to hand the server to someone who should only work in one project, typically together with that project's access token and without an API key. list_tickets and create_ticket then use this project when none is given, list_projects shows only this project, and every tool that takes a ticket id first checks that the ticket belongs to it. A different project id or handle is rejected. Without an API key the site itself already keeps other private projects closed, the setting additionally keeps the public projects of the installation out of view.

Notes on the API

The package answers in several shapes, the server normalises all of them so tools return the bare resource:

  • Collections come back as a plain array, single tickets and comments inside a ticket or comment key, attachments inside data.
  • Failures arrive either as {"errors": [...]} or as a Concrete EditResponse with an error flag. The second one can come with status 200, so a 200 alone is not treated as success. Every error becomes a tool error with the message the API sent.
  • create_ticket answers with a status envelope and not with the new record, so the id of a freshly created ticket has to be looked up with list_tickets.
  • download_attachment follows the redirect the API returns and reports the resolved URL.

Verification

bash
npm run buildnpm test

The tests run against a stubbed HTTP layer, they never touch a live site and need no credentials. They cover the URL and form encoding the PHP controllers expect (including PHP boolean and array notation), the response envelopes, the error mapping, the filtering and sorting of list_tickets, and the guard rails of the destructive tools.

License

MIT, see LICENSE.

来源:README.md,提交 0b7762e

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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