🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@dashclaw/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dashclaw/mcp-server

MCP server for DashClaw governance — guard, record, invoke, and discover capabilities.

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
92
-60.34%
Maintainers
1
Weekly downloads
 
Created
Source

@dashclaw/mcp-server

MCP server for DashClaw governance. Exposes 30 governance tools and 6 read-only resources over Model Context Protocol. Works with Claude Code, Claude Desktop, Claude Managed Agents, and any MCP-compatible client.

Quick Start

Claude Desktop / Claude Code (stdio)

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

Or add to claude_desktop_config.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-desktop"
      }
    }
  }
}

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:

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 (one-click .mcpb)

Build the bundle from the DashClaw repo root (the build script ships in the repo, not the npm package), then install it without touching claude_desktop_config.json:

node scripts/build-mcpb.mjs    # → dist/dashclaw.mcpb

Then double-click dist/dashclaw.mcpb (or Settings → Extensions → Install Extension…). The installer prompts for your instance URL, API key, and an agent ID (default claude-desktop). The 30 governance tools then appear in Claude.

Cowork caveat: Cowork tool availability runs through its VM, and the host .mcpb install path is unverified for Cowork. The OAuth remote connector (below) is the verified cross-surface path.

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 30 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 (30)

Grouped by domain. See lib/tools.js for the canonical definitions.

Core governance (8) — 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 governed capabilities (guard + run + record)
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

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.

Optimal files (2) — Code Sessions optimizer output (root CLAUDE.md, path-scoped rules, hooks, skill packs).

ToolDescription
dashclaw_optimal_files_previewPreview optimizer output for a session
dashclaw_optimal_files_manifestGenerate optimal-files manifest

Session continuity (3) — agent-runtime handoff bundle for the next session.

ToolDescription
dashclaw_handoff_createWrite handoff bundle for next session
dashclaw_handoff_latestFetch latest unconsumed handoff
dashclaw_handoff_consumeMark handoff consumed (idempotent)

Credential hygiene (3) — check rotation due-dates before acting on tracked credentials.

ToolDescription
dashclaw_secret_listList tracked secrets (metadata only)
dashclaw_secret_dueSecrets coming due for rotation
dashclaw_secret_mark_rotatedMark secret rotated (operator-confirmed)

Skill safety (1) — static safety scan of untrusted skill files; results cached by content hash.

ToolDescription
dashclaw_skill_scanScan skill files for unsafe patterns

Open loops (3) — action-scoped commitments ("I will X later" tracker).

ToolDescription
dashclaw_loop_addRegister action-scoped commitment
dashclaw_loop_listList open/resolved loops
dashclaw_loop_closeResolve an open loop

Learning + retrospection (4) — record assumptions; log and query non-obvious decisions; recent governed-action ledger.

ToolDescription
dashclaw_assumption_recordRecord an unverified assumption underpinning an action
dashclaw_learning_logLog non-obvious decision + outcome
dashclaw_learning_queryQuery prior decisions/lessons
dashclaw_decisions_recentRecent governed-action ledger

Agent inbox (2) — read this agent's DashClaw inbox + mark messages read.

ToolDescription
dashclaw_inbox_listList inbox messages + unread count
dashclaw_messages_mark_readMark inbox messages read

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

Behavior learning (1) — observe-only Policy Coach suggestions learned from this agent's recorded behavior.

ToolDescription
dashclaw_behavior_suggestionsList observe-only Policy Coach suggestions learned from this agent's recorded behavior

Governance posture (2) — read the org governance posture score + remediation queue (read-only).

ToolDescription
dashclaw_postureRead the org governance posture score + 6 dimensions + findings queue
dashclaw_posture_nextThe next prioritized remediation finding from the posture queue

Resources (6)

URIDescription
dashclaw://policiesActive policy set
dashclaw://capabilitiesAvailable capabilities and health
dashclaw://agent/{agent_id}/historyRecent action history (last 50)
dashclaw://statusInstance health + operational metrics
dashclaw://code-sessions/projectsClaude Code projects with ingested session data and per-project rollups
dashclaw://code-sessions/sessions/{session_id}Full detail for one ingested Code Session (session, messages, tool uses)

Configuration

CLI ArgEnv VarDefaultDescription
--urlDASHCLAW_URLhttp://localhost:3000DashClaw instance URL
--keyDASHCLAW_API_KEY(empty)API key (oc_live_ prefix)
--agent-idDASHCLAW_AGENT_ID(empty)Default agent ID

CLI args take precedence over environment variables.

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

Keywords

mcp

FAQs

Package last updated on 11 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts