P+4 · @trdnetwork/mcp-server · v0.1.1 on npm

MCP Server

Wraps DCS provenance + memory + payment stack as a Model Context Protocol server. Any MCP-aware client gets instant native access. One-line npm install.

specifications

The fundamentals

Package
@trdnetwork/mcp-server
Version
v0.1.1
License
MIT
Runtime
Node 18+ / Bun
Protocol
MCP v1.0 (Anthropic)
Status
Live · public on npm
compatible clients

Drop-in for every MCP client

Claude Desktop

Anthropic's official

Cursor

AI code editor

Windsurf

Codeium agentic IDE

Zed

Multiplayer editor

Any MCP-compatible host. The MCP spec is open; DCS server is a vendor-neutral implementation.

install

One-line install

npm install @trdnetwork/mcp-server

Then add to your client's MCP config (Claude Desktop example):

{
  "mcpServers": {
    "dcs": {
      "command": "npx",
      "args": ["@trdnetwork/mcp-server"],
      "env": {
        "DCS_AGENT_ID":  "did:dcs:base:0xbDd1...0f5F:42",
        "DCS_API_KEY":   "sk_..."
      }
    }
  }
}

Restart Claude Desktop. The DCS tools appear in the tool picker. Done.

tools exposed

What the server gives your agent

code

Using it in practice

// Inside Claude Desktop, ask Claude:
// "Remember that the customer asked about Q3 pricing.
//  Then check our agent reputation network for a
//  pricing analyst agent and negotiate a 1-hour consultation."

// Claude will call:
//   1. dcs_memory_write({ content: "Q3 pricing question..." })
//   2. dcs_negotiate_open({ capability: "pricing-analysis", duration: 60 })
//   3. dcs_treasury_settle({ to: ..., amount: deal_price })
//
// Every step emits an R+2 receipt to your audit trail.
// Full transcript verifiable by you, regulator, customer.

Read more: Full MCP API reference · Quickstart tutorial