Dashclaw

io.github.ucsandman由 GitHub 帳號 ucsandman 發布v3.1.6更新於 Oct 24, 2026

Policy checks, approvals, records, and governed HTTP capabilities for unattended agents.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機 MCP 伺服器,將助理連接到自架的 DashClaw 執行個體,用於政策檢查、核准、稽核記錄與受控管的 API 呼叫。

可以做什麼
在風險操作前評估政策並等待人工核准結果,支援提交預檢計畫並查詢各步驟狀態。將操作、假設與工作階段回顧記錄到稽核軌跡,並讀取最近的受控管操作台帳。探索已註冊的能力,並透過 DashClaw 的守門、核准與執行認領流程呼叫它們。管理工作階段與 Team Task,包括時間軸事件與狀態更新。配對代理身分、檢查閘道設定,並以資源形式讀取政策、代理歷史與執行個體狀態。
適用情境
當你自架 DashClaw 執行個體,並希望無人值守或多代理助理在執行重要操作前檢查政策、取得人工核准並留下可稽核記錄時使用。沒有 DashClaw 部署時它沒有用處。
執行需求
透過 npm 套件以 stdio 在本機執行,需要 Node.js 與 npx。需要將 DASHCLAW_URL 指向你的 DashClaw 執行個體,並提供密鑰 DASHCLAW_API_KEY;兩者缺一都不會註冊治理工具。DASHCLAW_AGENT_ID 為選用,未設定時由用戶端名稱推導。需要能存取該執行個體的網路。
安裝前請注意
API 金鑰是工作區憑證,應透過用戶端的 env 設定提供,而非寫入 shell。守門、記錄與核准工具是協作式的:是否遵守由模型或宿主決定,並非強制關卡。呼叫能力會發出真實的外部請求,並消耗核准與計畫授權。若結果無法記錄,執行狀態會回報為未知,重試並不安全。README 警告 Claude Desktop 內建的 Node 會使此 stdio 伺服器崩潰,應改用 OAuth 連接器。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@dashclaw/mcp-server

MCP server for DashClaw governance. Exposes 17 governance tools, 2 stdio-only support tools, and 3 read-only resources over Model Context Protocol: evaluate policy, record evidence, invoke registered capabilities, wait for approvals, and read the decision ledger. Works with Claude Code, Claude Desktop, Claude Managed Agents, and any MCP-compatible client.

The governance tools register only when DASHCLAW_URL and DASHCLAW_API_KEY are both set; without them the server registers nothing and warns on stderr if exactly one is present.

Quick Start

Claude Code / Cowork (stdio)

bash
npx -y @dashclaw/mcp-server --url https://your-dashclaw.vercel.app --key oc_live_xxx --agent-id claude-code

Or add to your MCP config (.mcp.json for Claude Code, or claude mcp add):

json
{  "mcpServers": {    "dashclaw": {      "command": "npx",      "args": ["-y", "@dashclaw/mcp-server"],      "env": {        "DASHCLAW_URL": "https://your-dashclaw.vercel.app",        "DASHCLAW_API_KEY": "oc_live_xxx",        "DASHCLAW_AGENT_ID": "claude-code"      }    }  }}

Claude Desktop main chat: do not use stdio. Desktop runs local MCP servers on its bundled Node, which crashes this server. Use the OAuth custom connector instead — no local process, works in chat and Cowork.

About DASHCLAW_AGENT_ID: this is the name that shows up on /fleet, /decisions, and every other governance surface. If you omit it, the server auto-derives an agent_id from the MCP protocol's clientInfo.name (e.g. claude-ai for Claude Desktop, cursor-vscode for Cursor) so calls don't silently commingle with other agents — but a human-friendly name like claude-desktop is what you actually want for dashboard readability. Explicit configuration always wins over auto-derivation.

Claude Managed Agents (Streamable HTTP)

If you're running DashClaw, the MCP endpoint is built in at /api/mcp:

python
agent = client.beta.agents.create(    name="Governed Agent",    model="claude-sonnet-4-6",    tools=[{"type": "agent_toolset_20260401"}],    mcp_servers=[{        "type": "url",        "url": "https://your-dashclaw.vercel.app/api/mcp",        "headers": {"x-api-key": "oc_live_xxx"},        "name": "dashclaw"    }],)

Claude Desktop

Use the OAuth custom connector (next section) — it is the verified path for Desktop chat, web, and Cowork, and needs no install. The old one-click .mcpb bundle is retired: it ran the stdio server on Desktop's bundled Node, which crash-loops. If you still have a dashclaw extension installed from it, uninstall it (Settings → Extensions) before adding the connector.

Claude custom connector (remote, OAuth)

Self-hosted DashClaw is addable as a Claude custom connector with no API key in the UI — Claude's connector flow requires OAuth, not headers:

  1. In Claude: Settings → Connectors → Add custom connector.
  2. Paste https://<your-instance>/api/mcp.
  3. Claude discovers /.well-known/oauth-protected-resource, registers via DCR, and opens your DashClaw login + a consent screen.
  4. Authorize → the 17 governance tools appear, scoped to your workspace.

Works on Free/Pro/Max/Team/Enterprise (Free is capped at one custom connector). The legacy x-api-key path (Managed Agents) is unchanged.

Plugin (skills) via marketplace

To also load the DashClaw skills (governance protocol + platform intelligence) in the Claude app: Customize → Plugins → "+" → Add marketplace → github: ucsandman/DashClaw, then install the dashclaw plugin.

Tools (17 governance + 2 stdio support)

Grouped by domain. See src/tools.ts for the canonical definitions.

Core governance (9) — the guard / record / invoke loop plus discovery and session lifecycle.

ToolDescription
dashclaw_guardEvaluate policies before risky actions
dashclaw_recordLog actions to audit trail
dashclaw_invokeExecute a registered capability through the server's guard, approval, execution-claim, effect, and outcome seam
dashclaw_capabilities_listDiscover available APIs
dashclaw_policies_listSee active governance policies
dashclaw_wait_for_approvalBlock until a human resolves an approval
dashclaw_session_startRegister agent session
dashclaw_session_endClose agent session
dashclaw_session_retroRead the session's own defensibility retro (clean/review/flagged posture)

Session linkage: after dashclaw_session_start, the server auto-stamps that session's id onto every dashclaw_record in the same connection (stdio). Pass session_id on dashclaw_record to override, or to attribute explicitly on the HTTP transport (POST /api/mcp), where each request is stateless.

Enforcement boundary

dashclaw_guard, dashclaw_record, and dashclaw_wait_for_approval are cooperative tools. They return policy and audit state, but the MCP host or model still chooses whether to honor it. Use a host interception hook when you need a mechanical gate around ordinary MCP tools.

dashclaw_invoke is the bounded effect seam. DashClaw holds the registered capability configuration, evaluates the exact invocation against current policy, records it, enforces approval, and atomically claims one execution attempt before making the external call. Approval and plan grants are consumed at that claim, not by the earlier guard evaluation. If execution finishes but the outcome cannot be recorded, the tool reports unknown execution state and does not describe a retry as safe. Reconcile the external system first.

Retrospection (2) — record assumptions; recent governed-action ledger.

ToolDescription
dashclaw_assumption_recordRecord an unverified assumption underpinning an action
dashclaw_decisions_recentRecent governed-action ledger

Agent identity (1) — operator-approved pairing of an unidentified agent to a registered identity.

ToolDescription
dashclaw_pairEnroll agent identity: keypair locally, public key to /api/pairings

Team Tasks (3) — create a Team Task, append an inter-agent timeline event, update task status.

ToolDescription
dashclaw_task_createCreate a Team Task — one record per multi-agent /team run
dashclaw_task_eventAppend one event to a Team Task timeline (delegation, reply, status, approval_needed, result, error, done)
dashclaw_task_updateUpdate a Team Task: status transitions and stored transport session ids

Plans (2) — submit a preflight plan for one-card operator review and poll its review state. Preview and review responses are evidence; the live action is re-evaluated and any grant is consumed only by its execution claim.

ToolDescription
dashclaw_plan_submitSubmit an ordered step list for preflight review; approved steps become scoped, expiring grants consumed only by an execution claim
dashclaw_plan_statusCheck a submitted plan's overall and per-step verdict

DashClaw-gated stdio tools (2)

Registered by src/tools/index.ts on the local stdio server only, gated on the same DASHCLAW_URL + DASHCLAW_API_KEY credentials as the governance set:

ToolDescription
dashclaw_statusCheck DashClaw gate configuration and reachability
export_dashclaw_evidenceExport local audit entries carrying DashClaw guard/evidence metadata

Resources (3)

URIDescription
dashclaw://policiesActive policy set
dashclaw://agent/{agent_id}/historyRecent action history (last 50)
dashclaw://statusInstance health + operational metrics

Configuration

Set these in your MCP client's env block (preferred — scoped to the server process, invisible to your terminals) or your shell. The annotated template lives in .env.example.

CLI ArgEnv VarDefaultDescription
--urlDASHCLAW_URLhttp://localhost:3000DashClaw instance URL — with DASHCLAW_API_KEY, enables the governance tool set
--keyDASHCLAW_API_KEY(empty)API key (oc_live_ prefix)
--agent-idDASHCLAW_AGENT_ID(empty)Default agent ID (auto-derived from MCP clientInfo.name when empty)
DASHCLAW_MODEauthoritativeDashClaw gate mode (only authoritative is supported)
DASHCLAW_LOCAL_HOME<cwd>/.dashclaw-localWhere local state lives (see Storage below)
DASHCLAW_TIMEOUT_MS30000DashClaw API request timeout
DASHCLAW_LOCK_STALE_MS30000Stale file-lock threshold for local state files
DASHCLAW_AUDIT_MAX_ENTRIES(unlimited)Cap retained audit entries

CLI args take precedence over environment variables.

Note: This server reads DASHCLAW_URL (not DASHCLAW_BASE_URL); the hooks and CLI in the DashClaw repo read DASHCLAW_BASE_URL.

Storage

Local-first state under .dashclaw-local/ in the working directory (override with DASHCLAW_LOCAL_HOME). Plain JSON — human-readable, diffable, zero native dependencies:

FileHolds
state.jsonThe local default workspace
audit.logAppend-only JSONL audit trail read by the DashClaw evidence tools

Secrets are never written here — tokens stay in the environment, read at call time.

License

Apache-2.0. This package incorporates code from an upstream Apache-2.0 project — see NOTICE for the attribution.

Releasing

After bumping version in mcp-server/package.json, run from the repo root:

bash
npm run release:mcp

One command does everything, and re-running is always safe (already-published steps are skipped):

  1. Syncs server.json versions to package.json (commit the change if it edits the file).
  2. Publishes to npm — your browser opens for the security-key 2FA prompt.
  3. Publishes to the official MCP Registry via mcp-publisher — if the saved GitHub token expired, it re-runs the device-flow login (enter the printed code at github.com/login/device) and retries.

Prereqs (one-time): npm login, and the official mcp-publisher binary from modelcontextprotocol/registry releases — never npm i -g mcp-publisher, that name is squatted by an unrelated package.

來源:mcp-server/README.md,提交 073f7d2

工具

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

版本歷史

1
  1. v3.1.6最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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