QuDAG

Developer tools

QuDAG Protocol (Quantum-Resistant DAG-Based Anonymous Communication System) - Claude Code implementation of a Test-Driven Development Implementation Plan for QuDAG Protocol with Claude Code.

Your AI app calls the QuDAG MCP server, which does the developer tools work and sends the result back to the chat.

About QuDAG

QuDAG is a community MCP server from ruvnet, filed in our directory under developer tools. QuDAG Protocol (Quantum-Resistant DAG-Based Anonymous Communication System) - Claude Code implementation of a Test-Driven Development Implementation Plan for QuDAG Protocol with Claude Code.

QuDAG runs on your own machine: your AI app starts it with the command npx -y qudag and talks to it over standard input and output.

At a glance

Publisher
ruvnet (community)
Runs
Locally on your machine
Install from
Node.js package on npm: qudag
Written in
Rust
License
MIT
GitHub stars
200

How to set up QuDAG

  1. Install Node.js on the machine that runs your AI app, because QuDAG starts with npx and downloads its package on first run.
  2. Check the QuDAG README for keys or settings; the registry lists none that QuDAG requires.
  3. Add QuDAG to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the QuDAG tools to confirm the connection.
  5. Run one read-only task with QuDAG first, and keep your app asking before each tool call until the results look right.

QuDAG compared with similar servers

  • Smart Coding by omar-haris has fewer GitHub stars than QuDAG (200 against 200); both are community servers, and both run locally.
  • Piyaz by FrkAk has fewer GitHub stars than QuDAG (200 against 200); both are community servers, and both run locally.
  • Catia V5 by daiemon12 has fewer GitHub stars than QuDAG (199 against 200); both are community servers, and both run locally.

Before you connect QuDAG

  • Give QuDAG its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each QuDAG tool call until you trust what it does with them.
  • Treat text that QuDAG fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for QuDAG on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for QuDAG

How marketing and sales teams put QuDAG to work, by company size. Pick the size closest to yours and start QuDAG on one use case.

Small business

  • A small business with a developer can use QuDAG to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask QuDAG to explain and fix a marketing site issue without context switching between tools.
  • QuDAG runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use QuDAG to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect QuDAG to keep scripts and automations documented and versioned as they change.
  • Start QuDAG on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out QuDAG with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on QuDAG so web and marketing engineering share one reviewed way of working with AI.
  • QuDAG is a community server, so have security review the code and pin a version before QuDAG touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

QuDAG README

From ruvnet/QuDAG on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

QuDAG v2 engineering preview

Release status: not production qualified. This branch repairs core security and local DAG correctness, adds RuFlo federation integration, and records reproducible validation. It does not claim a completed distributed consensus protocol or a post-quantum Nostr network.

Run scripts/validate-v2.sh --targeted --ruflo for the implemented boundaries. scripts/validate-v2.sh --release is a separate gate and currently fails. See the evidence before relying on historical capability descriptions below.

QuDAG: The Future of Autonomous, Quantum-Resistant, Zero-Person Businesses 🌐

The Darkest of Darknets - Built for the Quantum Age and Autonomous AI Swarms

QuDAG is a revolutionary quantum-resistant distributed communication platform built for the quantum age, designed to support the next generation of autonomous AI agents, swarm intelligence, and zero-person businesses.

Imagine a decentralized darknet that enables autonomous agents to communicate, coordinate, and perform tasks without human oversight. That's exactly what QuDAG provides, a robust infrastructure for Agentic Organizations, where AI-driven systems run businesses entirely on their own. With quantum-resistant security, high-performance communication, and seamless integration with the Model Context Protocol (MCP), QuDAG makes it possible to create fully autonomous organizations, where agents collaborate, exchange resources, and generate revenue in a decentralized ecosystem.

In this new landscape, zero-person businesses are no longer a futuristic concept. QuDAG allows businesses to operate autonomously and decentrally, without the need for traditional human involvement. This platform enables everything from AI-driven customer service to automated logistics, all handled by intelligent agents that communicate through a quantum-secure, decentralized darknet. QuDAG's MCP-first architecture is specifically optimized for agentic swarms, allowing autonomous agents to coordinate and execute tasks seamlessly and securely.

🚀 The Opportunity: A Glimpse Into the Future of Autonomous Zero-Person Businesses

QuDAG isn't just a platform for secure communication and decentralized resource exchange. It's the foundation for the future of autonomous businesses. Through its agentic swarm coordination and secure exchange features, QuDAG enables businesses to operate without human intervention. Autonomous AI agents can handle everything from logistics and customer service to decision-making and revenue generation.

With quantum-resistant security and a decentralized infrastructure, QuDAG makes it possible to run self-sustaining organizations where AI agents coordinate, trade resources, and perform tasks without human oversight. This zero-person business model offers several advantages:

  • Autonomous AI Agents: AI agents can independently handle various business functions, from operational tasks to customer service, without requiring constant human intervention.
  • Decentralized Operations: The peer-to-peer network ensures that businesses run continuously without relying on central servers or management structures, making them more resilient and scalable.
  • Quantum-Resistant Security: QuDAG's post-quantum cryptography keeps all operations secure against the future threats posed by quantum computers.
  • Immutable Deployments: Business configurations are locked in place, ensuring stability and predictability in long-term autonomous operations.
  • Resource Exchange: rUv tokens enable agents to exchange resources and generate revenue, supporting self-sustaining autonomous businesses.

💱 Revenue Generation: Secure Exchange & Resource Trading

QuDAG's secure exchange system allows agents to exchange computational resources, generating revenue in the process. Using rUv tokens (Resource Utilization Vouchers), agents can trade resources like CPU power, storage, and bandwidth, all secured by ML-DSA signatures.

The dynamic fee models within QuDAG incentivize agents to provide resources, rewarding high-usage agents with lower transaction fees and priority access to network resources. This creates a self-sustaining economy within the network, where autonomous agents can generate revenue through resource exchanges, handling computational tasks and executing operations on behalf of their owner.

🌟 Key Features of QuDAG

1. Quantum-Resistant Cryptography

Security is a top priority in the world of autonomous systems, and QuDAG has that covered with its quantum-resistant cryptography. Using ML-KEM-768 for key encapsulation and ML-DSA for digital signatures, QuDAG secures all communications and transactions against the looming threat of quantum computing.

  • BLAKE3 hashing and HQC encryption provide additional layers of security, ensuring that all data exchanges remain secure even as quantum computing advances.
2. DAG Architecture for High-Performance Communication

Unlike traditional blockchain systems, which rely on linear chains, QuDAG employs a Directed Acyclic Graph (DAG) for consensus, enabling fast, parallel message processing. This allows QuDAG to:

  • Process multiple messages in parallel, increasing throughput and minimizing latency.
  • Use the QR-Avalanche consensus to maintain Byzantine fault tolerance, ensuring secure and efficient message validation.
3. Anonymous Onion Routing

QuDAG employs multi-hop onion routing, powered by ChaCha20Poly1305, to ensure complete anonymity for all communication within the system. This is key for autonomous systems where privacy is paramount.

  • This encryption strategy obfuscates the origin and destination of messages, ensuring that no trace of communication can be followed, which is essential for agentic organizations operating in sensitive environments.
4. Quantum-Resistant Dark Domain System

The .dark domain system is one of QuDAG's most distinctive features, allowing users to create their own decentralized darknets.

  • Register and resolve human-readable .dark domains (e.g., mynode.dark) without any central authority.
  • Create temporary shadow addresses that are perfect for ephemeral communication, ensuring that sensitive data remains private and secure.
5. Agent Swarm Coordination and AI Integration with MCP

QuDAG is built for autonomous AI agent coordination. Its MCP-first architecture integrates seamlessly with the Model Context Protocol (MCP), allowing autonomous agents to coordinate tasks and share resources in a decentralized environment.

  • The MCP server enables real-time communication and task distribution among agents, making it ideal for creating AI-driven businesses where agents handle everything from customer service to decision-making without human involvement.
  • MCP integration supports multiple communication protocols, including stdio, HTTP, and WebSocket, ensuring compatibility with modern AI workflows and enabling scalable, distributed AI systems.
6. Post-Quantum Password Vaults

QuDAG includes a quantum-resistant password vault to securely store and manage credentials for autonomous systems. Using AES-256-GCM encryption and ML-KEM for key encapsulation, the vault protects sensitive data from quantum decryption threats.

  • The vault allows for secure password generation, backup/restore, and encrypted recovery mechanisms, ensuring that businesses can store credentials safely while operating autonomously.
7. Resource Exchange with rUv Tokens

rUv tokens (Resource Utilization Vouchers) are used within QuDAG to exchange computational resources between agents. This secure resource trading platform allows autonomous agents to:

  • Trade CPU power, storage, and bandwidth without relying on centralized authorities.
  • Dynamic fee models incentivize verified agents with lower fees and reward high-usage participants, enabling a self-sustaining marketplace for resources within Agentic Organizations.
8. Immutable Deployment and Governance-Free Operations

QuDAG's immutable deployment feature ensures that once a system configuration is set, it cannot be changed without proper authorization. This feature is crucial for zero-person businesses that require stability and security over long periods.

  • ML-DSA-87 signatures lock configurations and ensure that deployed systems remain unchanged, guaranteeing that businesses can operate autonomously without fear of unauthorized alterations.
9. Dynamic Performance Metrics and Benchmarking

QuDAG includes tools for real-time performance monitoring, allowing businesses to track key metrics like network performance, resource usage, and transaction throughput.

  • SIMD acceleration and adaptive routing allow QuDAG to scale efficiently, handling high data volumes while minimizing resource consumption.
10. P2P Networking with Kademlia DHT

QuDAG uses LibP2P for its peer-to-peer networking, enabling decentralized peer discovery and message routing without relying on central servers.

  • Kademlia DHT ensures efficient routing and high availability in a fully decentralized network.

Technical Foundation:

  • 🔒 Post-quantum cryptography using ML-KEM-768 & ML-DSA with BLAKE3
  • ⚡ High-performance asynchronous DAG with QR-Avalanche consensus
  • 🌐 Built-in .dark domain system for decentralized darknet addressing
  • 🕵️ Anonymous onion routing with ChaCha20Poly1305 traffic obfuscation
  • 🔐 Quantum-resistant password vault with AES-256-GCM encryption
  • 🛡️ Memory-safe Rust implementation with zero unsafe code
  • 🔗 LibP2P-based networking with Kademlia DHT peer discovery
  • 📊 Real-time performance metrics and benchmarking
  • 🤖 Native MCP server with stdio/HTTP/WebSocket transports for AI integration
  • 🌍 WebAssembly support for browser and Node.js applications
  • 💱 Business Plan payouts with automated fee distribution for contributors

🚀 Quick Installation

For Users (CLI Tool)
# Install QuDAG CLI directly from crates.io
cargo install qudag-cli

# Verify installation
qudag --help

# Start your first node
qudag start --port 8000

# Use the built-in password vault
qudag vault generate --length 16
qudag vault config show
For Developers (Library)
# Add QuDAG to your Rust project
cargo add qudag

# Or add specific components
cargo add qudag-crypto      # Quantum-resistant cryptography
cargo add qudag-network     # P2P networking with dark addressing
cargo add qudag-dag         # DAG consensus implementation
cargo add qudag-vault-core  # Password vault with post-quantum crypto
cargo add qudag-mcp         # Model Context Protocol server
For Web/JavaScript (WASM)
# Use QuDAG in browser or Node.js via npm
npx qudag@latest --help

# Or install globally
npm install -g qudag

# Or use programmatically
npm install qudag
Quick Start Example (Rust)
use qudag::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Create quantum-resistant keys
    let keypair = MlDsaKeyPair::generate()?;
    
    // Create a new DAG
    let mut dag = Dag::new();
    
    // Register a .dark domain
    let network_manager = NetworkManager::new()?;
    // network_manager.register_domain("mynode.dark").await?;
    
    println!("QuDAG node ready! 🌐");
    Ok(())
}
Quick Start Example (JavaScript/WASM)
import { QuDAGClient, WasmMlDsaKeyPair, Blake3Hash } from 'qudag';

// Initialize QuDAG client
const client = new QuDAGClient();
console.log(`QuDAG version: ${client.getVersion()}`);

// Generate quantum-resistant keys
const keyPair = new WasmMlDsaKeyPair();
const publicKey = keyPair.getPublicKey();

// Create quantum fingerprints
const message = "Hello QuDAG WASM!";
const hash = Blake3Hash.hash(message);

console.log("QuDAG WASM client ready! 🌐");

📦 Available Packages:

🌐 Live Testnet Deployment

QuDAG has a live testnet deployed across 4 global regions, demonstrating the platform's real-world capabilities:

Testnet Nodes
Node Location Domain Status Features
node1 Toronto (yyz) qudag-testnet-node1.fly.dev ✅ Healthy Bootstrap, MCP Server (HTTPS), Enhanced P2P
node2 Amsterdam (ams) qudag-testnet-node2.fly.dev ✅ Healthy Full node, 4 peers connected
node3 Singapore (sin) qudag-testnet-node3.fly.dev ✅ Healthy Full node, 4 peers connected
node4 San Francisco (sjc) qudag-testnet-node4.fly.dev ✅ Healthy Full node, 4 peers connected
Testnet Features
  • Quantum-Resistant Security: All nodes use ML-DSA signatures and ML-KEM encryption
  • P2P Network: Nodes 2-4 form a fully connected mesh network
  • Real-time Metrics: Prometheus-compatible metrics at /metrics endpoint
  • Health Monitoring: JSON health status at /health endpoint
  • Global Distribution: Low-latency coverage across North America, Europe, and Asia
  • MCP Server: Model Context Protocol server on node1 with HTTPS support
Accessing the Testnet
# Check node health
curl https://qudag-testnet-node1.fly.dev/health | jq

# View node metrics
curl https://qudag-testnet-node1.fly.dev/metrics

# Connect your QuDAG node to testnet
qudag start --bootstrap-peers /dns4/qudag-testnet-node1.fly.dev/tcp/4001

# Access MCP server for AI integration (HTTPS - recommended)
curl https://qudag-testnet-node1.fly.dev/mcp | jq

# Test MCP capabilities and tools
curl https://qudag-testnet-node1.fly.dev/mcp/tools | jq
curl https://qudag-testnet-node1.fly.dev/mcp/info | jq

# Test other nodes
curl https://qudag-testnet-node2.fly.dev/health | jq
curl https://qudag-testnet-node3.fly.dev/health | jq
curl https://qudag-testnet-node4.fly.dev/health | jq
Testnet Verification

Run the verification script to check all nodes:

cd qudag-testnet
./verify-deployment.sh
Testnet MCP Client Configuration

To connect AI tools (like Claude Desktop) to the QuDAG testnet MCP server:

  1. Quick Setup - Add to your MCP configuration:
{
  "qudag-testnet": {
    "command": "npx",
    "args": [
      "qudag-mcp-proxy",
      "https://qudag-testnet-node1.fly.dev"
    ],
    "description": "QuDAG Testnet MCP Server"
  }
}
  1. Full Configuration - See MCP Integration Examples for complete setup with HTTP proxy script.

  2. Available Tools: qudag_crypto, qudag_vault, qudag_dag, qudag_network, qudag_exchange

Use Cases

Category Applications Description
🤖 Zero-Person Businesses Autonomous organizations Fully automated businesses run entirely by AI agents
Self-sustaining operations Revenue generation without human intervention
Decentralized governance Immutable configurations for stable autonomous operations
Agent-driven services AI agents providing services and generating income
🤖 Distributed AI Systems Agent swarm coordination Secure communication backbone for autonomous AI agents
Swarm intelligence Decentralized coordination for AI agent swarms
MCP integration Native Model Context Protocol server for AI tools
Tool orchestration Distributed tool execution across agent networks
💱 Resource Exchange rUv token economy Resource Utilization Vouchers for computational trading
Dynamic fee model Tiered fee structure with agent verification benefits
Autonomous trading AI agents buying/selling resources independently
Self-sustaining marketplace Decentralized resource marketplace for AI agents
🌐 Agentic Infrastructure Agent communication Quantum-resistant messaging between autonomous agents
Task distribution Decentralized job allocation across agent swarms
Resource pooling Shared computational resources for agent collectives
Performance monitoring Real-time metrics for autonomous operations
🔐 Secure Communication End-to-end messaging Quantum-resistant encrypted messaging between peers
Secure file transfer Protected file sharing with ML-KEM encryption
Private group communication Multi-party secure channels with perfect forward secrecy
Data streaming Real-time encrypted data transmission
🌐 Network Infrastructure P2P message routing Decentralized message relay without central servers
Distributed content storage Content-addressed storage with quantum fingerprints
Secure relay networks Anonymous relay nodes for traffic obfuscation
Anonymous networking Onion routing with quantum-resistant encryption
🌐 Dark Domain System Decentralized naming Register human-readable .dark domains without central authority
Quantum-resistant DNS ML-DSA authenticated domain resolution with quantum fingerprints
Shadow addresses Temporary .shadow domains for ephemeral communication
Darknet namespaces Create your own darknet identity and addressing system
🛡️ Privacy Applications Anonymous messaging Metadata-resistant communication channels
Private data transfer Untraceable data exchange between parties
Secure group coordination Private collaboration without identity exposure
Metadata protection Full protocol-level metadata obfuscation
🔐 Password Management Quantum-resistant vault AES-256-GCM encrypted passwords with ML-KEM/ML-DSA
Secure password generation Cryptographically secure random password generation
DAG-based organization Hierarchical password storage with categories
Encrypted backup/restore Secure vault export/import functionality

Core Features

🔐 Quantum-Resistant Cryptography
Feature Implementation Security Level Standard Status
Key Encapsulation ML-KEM-768 NIST Level 3 FIPS 203 ✅ Production Ready
Digital Signatures ML-DSA (Dilithium-3) NIST Level 3 FIPS 204 ✅ Production Ready
Code-Based Encryption HQC-128/192/256 128/192/256-bit NIST Round 4 ✅ Production Ready
Hash Functions BLAKE3 256-bit quantum-resistant RFC Draft ✅ Production Ready
Data Authentication Quantum Fingerprinting ML-DSA based signatures Custom ✅ Production Ready
Memory Protection ZeroizeOnDrop Automatic secret clearing - ✅ Production Ready
Side-Channel Defense Constant-time operations Timing attack resistant - ✅ Production Ready
📊 DAG Architecture
Component Technology Benefits
Message Processing Asynchronous handling Non-blocking, high throughput
Consensus Algorithm QR-Avalanche Byzantine fault-tolerant
Conflict Handling Automatic resolution Self-healing network
Parent Selection Optimal tip algorithm Efficient DAG growth
Performance Monitoring Real-time metrics Latency & throughput tracking
State Transitions Atomic operations Consistency guaranteed
🌐 Network Layer
Feature Implementation Purpose
P2P Framework LibP2P Decentralized networking
Anonymous Routing Multi-hop onion routing Traffic anonymization
Traffic Protection ChaCha20Poly1305 Message disguising
Peer Discovery Kademlia DHT Decentralized lookup
Transport Security ML-KEM TLS Quantum-resistant channels
Session Management Secure handshakes Authenticated connections
🌐 Dark Addressing
Address Type Format Features
Dark Domains name.dark Quantum-resistant, human-readable
Shadow Addresses shadow-[id].dark Temporary, auto-expiring
Quantum Fingerprints 64-byte hash ML-DSA authentication
Resolution System Decentralized No central authority

Technical Achievements

🏆 Major Milestones Completed
Achievement Description Impact
NIST Compliance Full implementation of NIST post-quantum standards Future-proof security
Zero Unsafe Code Entire codebase with #![deny(unsafe_code)] Memory safety guaranteed
LibP2P Integration Complete P2P stack with advanced features Production-ready networking
Onion Routing ML-KEM encrypted multi-hop routing True anonymity
DAG Consensus QR-Avalanche with parallel processing High throughput
SIMD Optimization Hardware-accelerated crypto operations 10x performance boost
NAT Traversal STUN/TURN/UPnP implementation Works behind firewalls
Dark Addressing Quantum-resistant domain system Decentralized naming
MCP Integration Model Context Protocol server AI development tools integration

🤖 MCP Server Integration

QuDAG includes a complete Model Context Protocol (MCP) server implementation, enabling seamless integration with AI development tools like Claude Desktop, VS Code, and custom applications. This MCP-first approach makes QuDAG the ideal infrastructure for distributed AI agent systems.

MCP Features
  • Quantum-Resistant Security: All MCP operations secured with post-quantum cryptography
  • Comprehensive Tool Suite: 6 built-in tools for vault, DAG, network, crypto, system, and config operations
  • Rich Resource Access: 4 dynamic resources providing real-time system state
  • Multiple Transports: stdio (for Claude Desktop), HTTP, and WebSocket support
  • AI-Ready Prompts: 10 pre-built prompts for common QuDAG workflows
  • Real-time Updates: Live resource subscriptions for dynamic data
  • JWT Authentication: Secure authentication with configurable RBAC
  • Audit Logging: Complete audit trail of all MCP operations
Available MCP Tools
Tool Description Key Operations
vault Quantum-resistant password management create, list, read, delete, search
dag DAG consensus operations query, add, validate, status
network P2P network management peers, connect, discover, status
crypto Cryptographic operations keygen, sign, verify, encrypt, hash
system System information and monitoring info, resources, processes, health
config Configuration management get, set, list, validate, export
Available MCP Resources
Resource URI Description
Vault State qudag://vault/state Current vault entries and metadata
DAG Status qudag://dag/status DAG consensus state and metrics
Network Info qudag://network/info Peer connections and network stats
System Status qudag://system/status System health and performance metrics
Quick MCP Setup
# Start MCP server (default: HTTP on port 3000)
qudag mcp start

# Start with stdio transport (for Claude Desktop)
qudag mcp start --transport stdio

# Start with WebSocket support
qudag mcp start --transport ws --port 8080

# Configure MCP server settings
qudag mcp config init
qudag mcp config show

# List available tools and resources
qudag mcp tools
qudag mcp resources

# Test server connectivity
qudag mcp test --endpoint http://localhost:3000
Integration Examples
Claude Desktop Configuration
// ~/.claude/claude_desktop_config.json
{
  "mcpServers": {
    "qudag": {
      "command": "qudag",
      "args": ["mcp", "start", "--transport", "stdio"]
    }
  }
}
Testnet MCP Configuration
// ~/.roo/mcp.json or claude_desktop_config.json
{
  "mcpServers": {
    "qudag-testnet": {
      "command": "node",
      "args": [
        "/path/to/mcp-http-proxy.js",
        "https://qudag-testnet-node1.fly.dev"
      ],
      "alwaysAllow": [
        "qudag_crypto",
        "qudag_vault", 
        "qudag_dag",
        "qudag_network",
        "qudag_exchange"
      ],
      "description": "QuDAG Testnet MCP Server (Toronto Node)",
      "timeout": 600
    }
  }
}

For the HTTP proxy script, create mcp-http-proxy.js:

// mcp-http-proxy.js - Bridge HTTP MCP to stdio transport
const readline = require('readline');
const baseUrl = process.argv[2] || 'https://qudag-testnet-node1.fly.dev';

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});

async function makeRequest(endpoint, method = 'GET', body = null) {
  const url = `${baseUrl}/mcp${endpoint}`;
  const options = { method, headers: { 'Content-Type': 'application/json' } };
  if (body) options.body = JSON.stringify(body);
  const response = await fetch(url, options);
  return response.json();
}

rl.on('line', async (line) => {
  try {
    const request = JSON.parse(line);
    let result;
    
    switch (request.method) {
      case 'initialize':
        const discovery = await makeRequest('');
        result = {
          protocolVersion: '2024-11-05',
          capabilities: discovery.mcp?.capabilities || {},
          serverInfo: discovery.mcp?.serverInfo || {}
        };
        break;
      case 'tools/list':
        result = await makeRequest('/tools');
        break;
      case 'tools/call':
        result = await makeRequest('/tools/execute', 'POST', request.params);
        break;
      case 'resources/list':
        result = await makeRequest('/resources');
        break;
      case 'resources/read':
        result = await makeRequest(`/resources/read?uri=${encodeURIComponent(request.params.uri)}`);
        break;
      default:
        throw new Error(`Unknown method: ${request.method}`);
    }
    
    const response = { jsonrpc: '2.0', id: request.id, result };
    console.log(JSON.stringify(response));
  } catch (error) {
    const response = { jsonrpc: '2.0', id: request.id, error: { code: -32603, message: error.message } };
    console.log(JSON.stringify(response));
  }
});
VS Code Extension
// Use QuDAG MCP in VS Code extensions
import { MCPClient } from 'qudag-mcp-client';

const client = new MCPClient('http://localhost:3000');
await client.connect();

// Use tools
const passwords = await client.callTool('vault', {
  operation: 'list',
  category: 'development'
});

// Subscribe to resources
client.subscribe('qudag://network/info', (data) => {
  console.log('Network update:', data);
});
Python Integration
# Use QuDAG MCP from Python
from qudag_mcp import MCPClient

client = MCPClient("http://localhost:3000")
client.connect()

# Query DAG status
dag_status = client.call_tool("dag", {
    "operation": "status"
})

# Monitor system resources
for update in client.subscribe("qudag://system/status"):
    print(f"CPU: {update['cpu_usage']}%, Memory: {update['memory_usage']}%")

💱 QuDAG Exchange

QuDAG Exchange is a quantum-resistant resource trading platform that enables autonomous AI agents to exchange computational resources using rUv (Resource Utilization Voucher) tokens. The exchange features a dynamic tiered fee model, immutable deployment capabilities, and seamless integration with the QuDAG DAG consensus system.

🎯 Key Features
  • 🪙 rUv Token System: Native Resource Utilization Vouchers for computational resource trading
  • 📊 Dynamic Tiered Fee Model: Mathematical fee structure that rewards verification and high usage
  • 🔒 Immutable Deployment: Quantum-resistant configuration locking with ML-DSA-87 signatures
  • 🤖 Agent Verification: Reduced fees for verified agents with proof-based authentication
  • ⚡ DAG Integration: Seamless integration with QuDAG's quantum-resistant consensus
  • 🛡️ Security First: All operations secured with post-quantum cryptography
🏗️ Architecture Overview
┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   Agent Pool    │    │  Fee Calculator │    │ Immutable Lock  │
│                 │    │                 │    │                 │
│ ┌─────────────┐ │    │ ┌─────────────┐ │    │ ┌─────────────┐ │
│ │ Verified    │ │◄──►│ │ Dynamic     │ │◄──►│ │ ML-DSA-87   │ │
│ │ Agents      │ │    │ │ Tiered      │ │    │ │ Signatures  │ │
│ └─────────────┘ │    │ │ Model       │ │    │ └─────────────┘ │
│ ┌─────────────┐ │    │ └─────────────┘ │    │ ┌─────────────┐ │
│ │ Unverified  │ │    │ ┌─────────────┐ │    │ │ Grace       │ │
│ │ Agents      │ │    │ │ Usage       │ │    │ │ Period      │ │
│ └─────────────┘ │    │ │ Tracking    │ │    │ └─────────────┘ │
└─────────────────┘    │ └─────────────┘ │    └─────────────────┘
                       └─────────────────┘
🪙 rUv Token Economics

Resource Utilization Vouchers (rUv) are the native tokens for computational resource trading:

  • Purpose: Facilitate trustless exchange of computational resources between agents
  • Quantum Security: All transfers protected with ML-DSA signatures
  • Precision: 64-bit integer precision for micro-transactions
  • Supply: Configurable maximum supply with mint/burn operations
  • Integration: Native support in QuDAG DAG consensus system
Token Operations
# Create account and manage tokens
qudag exchange create-account --name alice
qudag exchange balance --account alice
qudag exchange transfer --from alice --to bob --amount 1000
qudag exchange mint --account alice --amount 5000
qudag exchange supply
📊 Dynamic Tiered Fee Model

The exchange implements a sophisticated mathematical fee model that incentivizes agent verification and rewards high-usage participants:

Fee Structure
Agent Type Base Fee Maximum Fee Usage Behavior
Unverified 0.1% 1.0% Increases with time and usage
Verified 0.25% 0.50% → 0.25% Decreases with high usage
Mathematical Formulation

Unverified Agent Fee:

f_unv(u,t) = F_min + (F_max - F_min) × α(t) × β(u)
where:
α(t) = 1 - e^(-t/T)     # Time phase-in (3 months)
β(u) = 1 - e^(-u/U)     # Usage scaling (10,000 rUv threshold)

Verified Agent Fee:

f_ver(u,t) = F_min_ver + (F_max_ver - F_min_ver) × α(t) × (1 - β(u))
# Rewards high usage with lower fees
Fee Examples
Scenario Time Usage Fee Rate Description
New unverified agent 0 months 0 rUv/month 0.100% Introductory rate
Moderate unverified 3 months 5,000 rUv/month 0.324% Standard progression
High-usage unverified 6 months 50,000 rUv/month 0.873% Penalty for unverified high usage
New verified agent 0 months 0 rUv/month 0.250% Verified base rate
High-usage verified 6 months 20,000 rUv/month 0.279% Reward for verified high usage
Configure Fee Parameters
# Update fee model parameters
qudag exchange configure-fees \
  --f-min 0.002 \
  --f-max 0.012 \
  --f-min-verified 0.003 \
  --f-max-verified 0.006 \
  --time-constant-days 90 \
  --usage-threshold 10000

# View current fee status and examples
qudag exchange fee-status --examples

# Calculate specific fees
qudag exchange calculate-fee --account alice --amount 1000
🔒 Immutable Deployment System

The exchange supports optional immutable deployment mode for governance-free operation:

Read the rest of the QuDAG README on GitHub

Questions about QuDAG

What is the QuDAG MCP server?

QuDAG Protocol (Quantum-Resistant DAG-Based Anonymous Communication System) - Claude Code implementation of a Test-Driven Development Implementation Plan for QuDAG Protocol with Claude Code. QuDAG is maintained by ruvnet on GitHub at ruvnet/QuDAG, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the QuDAG MCP server?

Add QuDAG to your AI app's MCP config with the command npx -y qudag. In Claude Code, run claude mcp add --transport stdio qudag -- npx -y qudag. To run QuDAG this way you need Node.js installed.

Does QuDAG need an API key?

The registry lists no required keys for QuDAG. Check the QuDAG README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is QuDAG an official MCP server?

No. QuDAG is a community server maintained by ruvnet. Community servers can be excellent; read the code and the open issues before you give QuDAG access to company data.

What license is QuDAG under?

QuDAG is released under the MIT license, according to its GitHub repository. The license covers the code of QuDAG; the service it connects to has its own terms.