🎩 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.2
Version published
Weekly downloads
92
-60.34%
Maintainers
1
Weekly downloads
 
Created
Source

@dashclaw/mcp-server

MCP server for DashClaw governance. Exposes 23 governance tools and 4 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"
    }],
)

Tools (23)

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

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 (3) — log and query non-obvious decisions; recent governed-action ledger.

ToolDescription
dashclaw_learning_logLog non-obvious decision + outcome
dashclaw_learning_queryQuery prior decisions/lessons
dashclaw_decisions_recentRecent governed-action ledger

Resources (4)

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

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.

Keywords

mcp

FAQs

Package last updated on 14 May 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