🎩 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
13
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 and governed execution — guard, record, invoke, discover capabilities, and run provider operations (Vercel, Neon, Stripe, GitHub, and more) through the governance loop.

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

@dashclaw/mcp-server

MCP server for DashClaw governance and governed execution. Exposes 33 governance tools and 6 read-only resources over Model Context Protocol, plus governed provider-execution tools (GitHub, Vercel, Neon, Stripe, and ten more — each provider's tools register only when its credential is present), project/policy context tools, and stateful launch plans. Works with Claude Code, Claude Desktop, Claude Managed Agents, and any MCP-compatible client.

Every provider action runs through one guarded path: local policy × the DashClaw gate × human approvals × an audit trail. Reads are allowed by default and audited; writes, deploys, env changes, live-mode and destructive actions are policy-gated and fail closed when DashClaw is configured but unreachable.

Quick Start

Claude Code / Cowork (stdio)

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):

{
  "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:

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:

  • 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 33 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 (33)

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 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
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.

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

Work orders (2) — submit a typed, budget-capped work order and check its status + receipt.

ToolDescription
dashclaw_work_order_submitSubmit a typed, budget-capped, guard-gated work order; returns work_order_id + status + guard decision
dashclaw_work_order_statusCheck a work order: lifecycle status, worker, guard decision, and (when terminal) the self-verifying receipt

Governed execution (provider + context tools)

Beyond the governance set above, the server registers the governed-execution surface from src/tools/index.ts:

Conditional registration — a provider's tools register at startup only when its credential env var(s) are present (default names below, or a stored connection's custom env var). No token → tools absent, which keeps a connecting agent's context lean. The governance set registers only when DASHCLAW_URL and DASHCLAW_API_KEY are both set. Project/context tools always register (they need no credentials).

Always registered (project context, policy, approvals, audit): list_projects, create_project, select_project, get_project_context, export_context, add_environment, list_environments, map_provider_resource, list_provider_mappings, get_provider_mapping, list_connections, create_connection, set_app_env_vars, check_policy, simulate_action, list_policy_rules, set_policy_rule, list_pending_approvals, approve_action, reject_action, doctor, read_project_memory, write_project_memory, list_audit_log, export_audit_log, explain_action_risk, governed_action_summary, get_app_logs, get_latest_deployment_logs. (dashclaw_status, dashclaw_recent_decisions, export_dashclaw_evidence gate on the DashClaw credentials like the governance set.)

Per provider (token env var → tools):

ProviderCredentialTools
GitHubGITHUB_TOKENget_github_repo_context, get_github_repo_readme, list_github_repo_files, list_github_pull_requests, list_github_branches, get_github_status_checks, list_github_workflow_runs, list_github_workflow_jobs, rerun_github_workflow_run, cancel_github_workflow_run
VercelVERCEL_TOKENget_vercel_project_context, get_vercel_deployments, get_vercel_deployment_status, get_vercel_deployment_logs, get_vercel_logs, set_vercel_env_var, create_vercel_project, add_vercel_domain, create_vercel_deployment
SupabaseSUPABASE_ACCESS_TOKENlist_supabase_projects, get_supabase_project_context, query_supabase, get_supabase_logs, apply_supabase_migration
StripeSTRIPE_TEST_SECRET_KEY / STRIPE_LIVE_SECRET_KEYlist_stripe_products, list_stripe_customers, list_stripe_subscriptions, list_stripe_invoices, create_stripe_product, create_stripe_price, create_stripe_webhook, list_stripe_webhooks
RailwayRAILWAY_TOKENget_railway_project_context, discover_railway_resources, get_railway_deployments, get_railway_logs, create_railway_deployment, set_railway_env_var
NamecheapNAMECHEAP_API_KEYcheck_domain_availability, list_namecheap_domains, purchase_domain, get_dns_records, set_dns_records
NeonNEON_API_KEYlist_neon_projects, create_neon_project, get_neon_connection_uri
UpstashUPSTASH_API_KEYlist_upstash_redis_databases, create_upstash_redis_database, get_upstash_redis_env, get_upstash_qstash_env, list_upstash_qstash_schedules, create_upstash_qstash_schedule
Cloudflare R2CLOUDFLARE_API_TOKENlist_cloudflare_r2_buckets, create_cloudflare_r2_bucket, get_cloudflare_r2_env, list_cloudflare_r2_objects
SentrySENTRY_AUTH_TOKENlist_sentry_projects, create_sentry_project, list_sentry_client_keys, create_sentry_client_key, list_sentry_releases, create_sentry_release, list_sentry_deploys, create_sentry_deploy
PostHogPOSTHOG_PERSONAL_API_KEYlist_posthog_projects, create_posthog_project, get_posthog_project_env, list_posthog_feature_flags, create_posthog_feature_flag
ClerkCLERK_SECRET_KEYget_clerk_app_env, list_clerk_users, list_clerk_domains, list_clerk_redirect_urls, create_clerk_redirect_url
ResendRESEND_API_KEYlist_resend_domains, create_resend_domain, verify_resend_domain, send_resend_email
TwilioTWILIO_AUTH_TOKENlist_twilio_phone_numbers, update_twilio_phone_number_webhooks, send_twilio_sms, create_twilio_call

Tokens are read from the environment at call time and never written to local state, audit, or DashClaw context. Secret-shaped provider responses (connection URIs, webhook signing secrets, REST tokens, DSNs) are shown once in the tool result and redacted everywhere else.

Launch plans

Stateful, verified launch tracking through the existing guarded tools — plans track the launch tail (domain → DNS → deploy → DB → Stripe → email → env wiring); they never execute provider mutations and never bypass guard/policy/approvals. Full lifecycle, reality-check table, and examples in docs/launch-plans.md.

ToolDescription
create_launch_planDerive the ordered step checklist for a declared stack from the launch playbook
get_launch_statusEvaluated (never self-reported) step status + the single next action; resumable
preflight_launchTokens present + valid, mappings complete, Stripe mode sanity, Namecheap IP whitelist
verify_launchDomain resolves, deployment READY, env vars present, webhook enabled, email verified

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

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_HTTP_TIMEOUT_MS30000Provider API request timeout
DASHCLAW_HTTP_RETRIES2Retries for idempotent provider reads (429/5xx/network)
DASHCLAW_HTTP_RETRY_BASE_MS25Retry backoff base
DASHCLAW_LOCK_STALE_MS30000Stale file-lock threshold for local state files
DASHCLAW_LOG_STARTUPfalseStructured CLI startup logs to stderr
DASHCLAW_MEMORY_MAX_ENTRIES(unlimited)Cap retained project-memory entries
DASHCLAW_AUDIT_MAX_ENTRIES(unlimited)Cap retained audit entries
provider tokens(empty)See the per-provider table above — presence enables that provider's tools

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.

CLI

The same binary doubles as an operational CLI — dashclaw-mcp <subcommand>: init, project, select, env, connection, map, doctor, simulate, audit, snapshot, dashclaw, context. Bare dashclaw-mcp (or any --url/--key/--agent-id flags) boots the stdio MCP server. dashclaw-mcp doctor --json is the fastest way to check credentials and mappings; when DASHCLAW_URL + DASHCLAW_API_KEY are configured, the doctor tool also appends a read-only platform section from your instance's GET /api/doctor. dashclaw-mcp context prints the production-context summary.

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.jsonWorkspaces, projects, environments, connections, mappings, policy rules, pending approvals
memory.jsonProject memory entries
audit.logAppend-only JSONL audit trail of every guarded action
config.yamlOptional seed config (dashclaw-mcp init; template at docs/config.example.yaml)
launches/<id>.jsonLaunch plans (see docs/launch-plans.md)

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:

npm run release:mcp

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

  • Syncs server.json versions to package.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 releasesnever npm i -g mcp-publisher, that name is squatted by an unrelated package.

Keywords

mcp

FAQs

Package last updated on 05 Jul 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