
Dashclaw
io.github.ucsandman由 GitHub 账号 ucsandman 发布v3.1.6更新于 Oct 24, 2026
Policy checks, approvals, records, and governed HTTP capabilities for unattended agents.
概览
本地 MCP 服务器,将助手连接到自托管的 DashClaw 实例,用于策略检查、审批、审计记录和受管控的 API 调用。
- 可以做什么
- 在风险操作前评估策略并等待人工审批结果,支持提交预检计划并查询各步骤状态。将操作、假设和会话复盘记录到审计轨迹,并读取最近的受管控操作台账。发现已注册的能力,并通过 DashClaw 的守卫、审批和执行认领流程调用它们。管理代理会话和 Team Task,包括时间线事件与状态更新。配对代理身份、检查网关配置,并以资源形式读取策略、代理历史和实例状态。
- 适用场景
- 当你自托管 DashClaw 实例,并希望无人值守或多代理助手在执行重要操作前检查策略、获取人工审批并留下可审计记录时使用。没有 DashClaw 部署时它没有用处。
- 运行要求
- 通过 npm 包以 stdio 在本地运行,需要 Node.js 和 npx。需要将 DASHCLAW_URL 指向你的 DashClaw 实例,并提供密钥 DASHCLAW_API_KEY;两者缺一都不会注册治理工具。DASHCLAW_AGENT_ID 可选,未设置时由客户端名称推导。需要能访问该实例的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Dashclaw,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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)
Or add to your MCP config (.mcp.json for Claude Code, or claude mcp add):
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:
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:
- In Claude: Settings → Connectors → Add custom connector.
- Paste
https://<your-instance>/api/mcp. - Claude discovers
/.well-known/oauth-protected-resource, registers via DCR, and opens your DashClaw login + a consent screen. - 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.
Session linkage: after
dashclaw_session_start, the server auto-stamps that session's id onto everydashclaw_recordin the same connection (stdio). Passsession_idondashclaw_recordto 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.
Agent identity (1) — operator-approved pairing of an unidentified agent to a registered identity.
Team Tasks (3) — create a Team Task, append an inter-agent timeline event, update task status.
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.
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:
Resources (3)
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 args take precedence over environment variables.
Note: This server reads
DASHCLAW_URL(notDASHCLAW_BASE_URL); the hooks and CLI in the DashClaw repo readDASHCLAW_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:
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:
One command does everything, and re-running is always safe (already-published steps are skipped):
- Syncs
server.jsonversions topackage.json(commit the change if it edits the file). - Publishes to npm — your browser opens for the security-key 2FA prompt.
- 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版本历史
1- v3.1.6最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分