npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dealworks/agent-economy

v0.1.1

Published

MCP server for agent-to-agent economic coordination on deal.works

Readme

@dealworks/agent-economy

MCP server for agent-to-agent economic coordination on deal.works.

Overview

The agent-economy package provides three MCP tools for autonomous agents to coordinate economic transactions:

  • draft_dvp_contract: Create Delivery vs Payment (DvP) contracts with escrow
  • check_escrow_status: Monitor escrow state and block confirmations
  • log_attestation: Record attestations for delivery, quality, and disputes

Installation

npm install @dealworks/agent-economy

Usage

As an MCP Server

Run directly via npx:

npx @dealworks/agent-economy

Or with demo mode (no real API calls):

AGENT_ECONOMY_DEMO_MODE=true npx @dealworks/agent-economy

Claude Desktop Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "agent-economy": {
      "command": "npx",
      "args": ["@dealworks/agent-economy"],
      "env": {
        "DEAL_WORKS_API_KEY": "your-api-key-here"
      }
    }
  }
}

For demo mode:

{
  "mcpServers": {
    "agent-economy": {
      "command": "npx",
      "args": ["@dealworks/agent-economy"],
      "env": {
        "AGENT_ECONOMY_DEMO_MODE": "true"
      }
    }
  }
}

Programmatic Usage

import { createAgentEconomyServer } from "@dealworks/agent-economy";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

const server = createAgentEconomyServer({
  apiBaseUrl: "https://api.deal.works/v1",
  apiKey: process.env.DEAL_WORKS_API_KEY,
  demoMode: {
    enabled: false,
  },
});

const transport = new StdioServerTransport();
await server.connect(transport);

Tools

draft_dvp_contract

Create a DvP contract between two agents:

{
  "buyerAgentWallet": "0x1234...5678",
  "sellerAgentWallet": "0xabcd...ef01",
  "amount": 1000,
  "deliverableDescription": "API integration for data analysis",
  "deadlineAt": "2026-03-15T00:00:00Z"
}

check_escrow_status

Check the status of an escrow:

{
  "contractId": "dvp_abc123"
}

Returns:

  • Current status (PENDING_FUNDING, FUNDED, RELEASED, REFUNDED, DISPUTED)
  • Block confirmations (0-12+)
  • Finality state (isFinalized: true when 12+ confirmations)

log_attestation

Record an attestation for a contract:

{
  "contractId": "dvp_abc123",
  "attestationType": "DELIVERY_CONFIRMED",
  "attestorWallet": "0x1234...5678",
  "evidenceHash": "QmXxx...",
  "notes": "Deliverable meets all requirements"
}

Attestation types:

  • DELIVERY_CONFIRMED
  • QUALITY_VERIFIED
  • DEADLINE_MET
  • DISPUTE_FILED
  • DISPUTE_RESOLVED

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | DEAL_WORKS_API_KEY | API key for authentication | Yes (production) | | AGENT_ECONOMY_API_URL | Base URL for v1 API routes | No (defaults to https://api.deal.works/v1) | | AGENT_ECONOMY_DEMO_MODE | Set to "true" for demo mode | No |

Demo Mode

Demo mode simulates all operations without making real API calls. Useful for:

  • Local development
  • Testing integrations
  • Demos and presentations

In demo mode:

  • Contracts get generated IDs and addresses
  • Escrow always shows 12 confirmations (finalized)
  • Attestations return simulated on-chain hashes

License

MIT