Custom Integrations

For beta, the recommended integration path is MCP through @dcprotocol/agent. Use the lower-level client only when you are building DCP runtime code or a custom service integration.

Recommended: MCP

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

HTTP MCP

dcp-agent run --mode http-mcp --agent my_agent --host 127.0.0.1 --port 8420

Low-level TypeScript Client

@dcprotocol/client is published, but it is primarily a runtime client used by DCP packages. If you use it directly, expect to handle pairing, service identity, and relay/local mode correctly.

npm install @dcprotocol/client

Non-TypeScript Runtimes

Python, Go, Rust, and other runtimes should connect through MCP or HTTP MCP during beta.