MCP Integration

DCP exposes vault capabilities through @dcprotocol/agent. Use stdio MCP for local desktop clients and streamable HTTP MCP for URL-based clients.

Local stdio MCP

Use this for Claude Desktop, Cursor, VS Code, and other stdio MCP clients.

{
  "mcpServers": {
    "dcp": {
      "command": "npx",
      "args": ["-y", "@dcprotocol/agent", "run", "--mode", "mcp", "--agent", "agent_local_dev"]
    }
  }
}

OpenClaw Local

openclaw mcp set dcp '{"command":"npx","args":["-y","@dcprotocol/agent","run","--mode","mcp","--agent","agent_openclaw_local"]}'

Hermes Local

mcp_servers:
  dcp:
    enabled: true
    command: "dcp-agent"
    args:
      - "run"
      - "--mode"
      - "mcp"
      - "--agent"
      - "agent_hermes_local"
    tools:
      prompts: false
      resources: false

After editing Hermes config, run /reload-mcp or restart Hermes.

HTTP MCP

Use this when a client expects a streamable HTTP MCP endpoint.

dcp-agent run --mode http-mcp --agent openclaw_local --host 127.0.0.1 --port 8420
http://127.0.0.1:8420/mcp

Tools

ToolUse
vault_get_addressGet the user's Solana public address.
vault_budget_checkCheck amount against DCP budget policy.
vault_scope_guideReturn canonical data scopes.
vault_readRead approved vault data.
vault_writeStore approved vault data.
vault_sign_txSign an unsigned Solana transaction.
vault_sign_messageSign a Solana wallet message.
vault_sign_x402Sign a Solana x402 payment payload.

Canonical Scopes

  • Name: identity.name
  • Email: identity.email
  • Phone: identity.phone
  • Home address: address.home
  • OpenAI key: credentials.api.openai
  • Anthropic key: credentials.api.anthropic
  • GitHub token: credentials.api.github

Agent Prompts

What is my email from DCP?
What is my Solana wallet address?
Send 0.00001 SOL to <address>
Send 1000 1LY to <address>