Casemargin Mcp Server

com.casemargin由 casemargin.com 發布v1.0.2更新於 Oct 24, 2026

Turn a support ticket into a structured case brief, or score its L2 escalation readiness.

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

把貼上的支援工單文字轉成結構化案件簡報,或給出 L2 升級就緒度評分,由 CaseMargin 的 AI 驅動。

可以做什麼
  • 依貼上的工單對話產生結構化案件簡報:快速掃描含評估、下一步與狀態,以及目前問題、已採取行動和關鍵背景。
  • 為工單的 L2 升級就緒度評分(0–100),附各面向說明、L2 可能提出的問題與缺漏項目。
  • 兩個工具都只處理你提供的工單文字並回傳結構化 JSON,不會連線到任何工單系統。
適用情境
適合客服人員或團隊主管在轉交工單前快速取得一致、結構化的摘要,或判斷案件是否具備升級到 L2 的證據。適用於能把工單文字貼上或傳入 AI 用戶端的工作流程。
執行需求
透過 npx 以 stdio 在本機執行(需 Node.js),不必事先安裝。選用的 CASEMARGIN_API_KEY 可將簡報產生從匿名依 IP 限額提升為帳號配額;就緒度檢查不需金鑰。需要能連線到 CaseMargin 的 API。
安裝前請注意
傳入的工單內容會送到 CaseMargin 伺服器分析,請勿貼上不允許外流的敏感客戶資料。API 金鑰以請求標頭傳送,若 CASEMARGIN_API_URL 指向非 HTTPS 且非回送位址,伺服器會拒絕啟動。未設定金鑰時,簡報產生受匿名依 IP 限額限制。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Casemargin Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

CaseMargin MCP Server

CaseMargin MCP server exposes support case reasoning tools — generate structured case briefs and check escalation readiness from any MCP-compatible AI client (Claude Desktop, Claude Code, Cursor, and others). It sits above helpdesk data layers: it doesn't read tickets from Zendesk or any ticketing system — you pass ticket content in, it returns structured analysis powered by the same AI that runs casemargin.com.

Tools

generate_case_brief

Generate a structured case brief from a support ticket thread. Returns an assessment, what has been tried, current status, and recommended next step.

Input: ticket_content (string) — the full ticket thread: messages, internal notes, whatever you paste or pipe in. 10–50,000 characters.

Output (structured JSON):

json
{  "quick_scan": {    "assessment": "…what this case is about and how serious it is…",    "next_step": "…the single action the receiving agent should take now…",    "status": "Waiting on customer"  },  "full_brief": {    "current_problem": "…symptoms, blockers, business impact…",    "actions_taken": ["action → outcome", "…"],    "key_context": "…customer plan, history, logs, error codes…"  },  "metadata": {    "input_length": 4210,    "brief_length": 1250,    "compression_ratio": 0.3  }}

check_escalation_readiness

Analyze whether a support ticket is ready to escalate to L2. Returns a readiness score (0–100), dimensional breakdown, predicted L2 questions, and missing items.

Input: ticket_content (string) — the ticket notes to evaluate. 10–20,000 characters.

Output (structured JSON):

json
{  "overall_score": 62,  "readiness": "borderline",  "dimensions": {    "problem_clarity": { "score": 80, "note": "…" },    "troubleshooting_evidence": { "score": 55, "note": "…" },    "business_impact": { "score": 40, "note": "…" },    "next_action": { "score": 70, "note": "…" },    "billing_defensibility": { "score": 65, "note": "…" }  },  "predicted_l2_questions": ["…", "…"],  "missing_items": ["…", "…"]}

Installation

Nothing to install ahead of time — npx fetches the package on first run. Add this to your claude_desktop_config.json and restart Claude Desktop:

json
{  "mcpServers": {    "casemargin": {      "command": "npx",      "args": ["-y", "casemargin-mcp-server"],      "env": {        "CASEMARGIN_API_KEY": "your-api-key-here"      }    }  }}

Cursor and Claude Code take the same shape of config in their own files. The config lives at ~/Library/Application Support/Claude/ on macOS and %APPDATA%\Claude\ on Windows. Quit and reopen the app rather than closing the window — the config is read at process start.

The API key is optional — without it, brief generation runs on the anonymous per-IP tier. Get a free key (8 briefs/month) at casemargin.com/signup. The escalation readiness check is free and needs no key. Drop the whole env block to run keyless.

Also on the MCP Registry as com.casemargin/casemargin-mcp-server, and on npm.

Running from source

Only needed if you're modifying the server:

bash
git clone https://github.com/Casemargin/casemargin-mcp-server.gitcd casemargin-mcp-servernpm installnpm run build

Then point command at node and args at the absolute path of the built dist/index.js.

Example usage

"What's happening with this ticket?"

Paste a ticket thread into your AI client and ask what's going on:

You: What's happening with this ticket?

Customer reports VPN drops every ~30 min since Monday. Rebooted router, reinstalled client v4.2, issue persists. Firewall logs show DHCP lease renewing every 30 min. Customer is on the Premium SLA, CFO is affected. Told them we'd escalate if not fixed by Friday…

Claude calls generate_case_brief and returns a structured brief:

Quick scan — Recurring VPN disconnects tied to a 30-minute DHCP lease renewal on a Premium SLA account with an executive affected; moderate-to-high urgency. Next step: Extend the DHCP lease time on the affected scope and confirm whether the drops track lease renewals. Status: Actively being worked.

…plus the full breakdown of current problem, actions already taken (each with outcome), and key context.

"Is this ticket ready to escalate?"

You: Is this ticket ready to escalate to L2?

(pastes the same thread)

Claude calls check_escalation_readiness and returns the score with a breakdown:

62/100 — borderline. Problem clarity is strong (80), but troubleshooting evidence is thin (55) — no packet capture or client logs attached — and business impact is asserted, not quantified (40). Before escalating, L2 will ask: "What do the VPN client logs show at the moment of the drop?" and "Does the issue follow the user across networks?"

Security and privacy

The server makes network calls and reads environment variables, so supply-chain scanners flag both. SECURITY.md documents the full extent: one outbound origin, two environment variables, and no filesystem, subprocess, dynamic-code, install-script, or telemetry access at all.

Two things worth knowing up front. Only the ticket_content you pass to a tool leaves your machine — nothing else is collected, and raw ticket text is never stored server-side. And because the API key travels as a request header, the server refuses to start if CASEMARGIN_API_URL points at a non-https origin other than loopback, rather than silently sending your key in cleartext.

Releases are published from GitHub Actions with npm provenance, so you can verify the tarball came from this repository:

bash
npm audit signatures

About CaseMargin

CaseMargin turns raw support tickets into structured case briefs so the next agent picks up cold in seconds, not minutes. The web app, Zendesk integration, and free Escalation Readiness Score tool live at casemargin.com.

來源:README.md,提交 f850ea3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分