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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tenzro/daml-coder-mcp

v1.1.0

Published

Model Context Protocol server for DAML Coder

Readme

DAML Coder MCP Server

Model Context Protocol server for DAML Coder AI - bringing AI-powered DAML development to Claude Desktop, VSCode, Cursor, Zed, and other MCP-compatible applications.

Version: 1.1.0
Model: DAML Coder v1.1.3

Developed by Tenzro Labs

Installation

npm install -g @tenzro/daml-coder-mcp

Or install locally in your project:

npm install @tenzro/daml-coder-mcp

Quick Start

1. Get an API Key

Contact us at [email protected] to obtain a DAML Coder API key.

2. Configure Your Editor

Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "daml-coder": {
      "command": "daml-coder-mcp",
      "env": {
        "DAML_CODER_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

VSCode

Add to .vscode/mcp.json or your global settings:

{
  "mcpServers": {
    "daml-coder": {
      "command": "npx",
      "args": ["@tenzro/daml-coder-mcp"],
      "env": {
        "DAML_CODER_API_KEY": "${env:DAML_CODER_API_KEY}"
      }
    }
  }
}

Enable agent mode: Set chat.agent.enabled to true in VSCode settings.

Cursor

Add to Cursor settings:

{
  "mcp.servers": {
    "daml-coder": {
      "command": "npx",
      "args": ["@tenzro/daml-coder-mcp"],
      "env": {
        "DAML_CODER_API_KEY": "your-api-key-here"
      }
    }
  }
}

3. Restart Your Editor

Completely quit and reopen your editor. The MCP server will appear as a local integration.

Usage

Simply ask your AI assistant in natural language. The MCP server automatically selects the right tool:

Generate contracts:

Generate a DAML Token template with Transfer choice

Create an Escrow contract with buyer, seller, and arbiter

Build a CIP-0056 compliant token with two-step transfer pattern

Explain concepts:

What are consuming choices in DAML?

Explain the difference between signatories and observers

How does Canton Protocol v7 handle smart contract upgrades?

Debug code:

I'm getting error: Choice Transfer is consuming but does not archive self

Help me fix this authorization issue: [paste code]

Review this DAML contract for security vulnerabilities

Available Tools

The MCP server provides six tools that your AI assistant uses automatically:

  • generate_daml_code - Generate DAML smart contracts from natural language descriptions
  • review_daml_code - Comprehensive security review and analysis
  • explain_daml_concept - Get detailed explanations of DAML concepts and patterns
  • debug_daml_error - Debug errors with AI-powered root cause analysis and fix suggestions
  • generate_daml_tests - Automatic generation of comprehensive Daml.Script test cases
  • chat_with_daml_coder - Conversational AI assistant with context awareness

Supported Applications

  • Claude Desktop - Native MCP support
  • VSCode (v1.99+) - Agent mode with MCP tools
  • Cursor - Full MCP integration
  • Zed Editor - Built-in MCP support
  • Windsurf - MCP compatible
  • Cline - VSCode extension with MCP
  • Any MCP-compatible client

Features

Latest DAML Standards (Model v1.1.3)

  • DAML SDK 2.10.2 LTS (October 2025)
  • DAML-LF 1.17 (Latest Ledger Format)
  • Canton Protocol Version 7
  • CIP-0056 Token Standard (Approved March 2025)
  • Smart Contract Upgrade patterns

Security-First Approach

  • Always uses two-step (propose/accept) patterns for transfers
  • Automatic authorization bug detection
  • Validates all state transitions
  • Implements multi-party authorization correctly
  • Prevents common security vulnerabilities

Production-Ready Output

  • Complete contracts with validation logic
  • Proper signatory and observer separation
  • Comprehensive error handling
  • Professional code structure and documentation
  • No truncated or incomplete generation
  • Fast responses (2-3 seconds)

Troubleshooting

MCP server not appearing

  1. Verify config file location and JSON syntax is correct
  2. Ensure API key is set correctly (no quotes if using environment variable)
  3. Completely quit your editor (not just close the window)
  4. Check for typos in the server name and command

For Claude Desktop: Check logs at ~/Library/Logs/Claude/mcp*.log (macOS)

For VSCode: Open Command Palette → "MCP: List Servers" to see registered servers

API key errors

# Verify your API key is set
echo $DAML_CODER_API_KEY

# Test API connectivity
curl -H "Authorization: Bearer $DAML_CODER_API_KEY" \
  https://api.damlcoder.tenzro.network/health

Ensure your API key is valid and properly set in the config. Contact [email protected] if you need a new key.

Tool not being called

The MCP server should invoke tools automatically when you ask DAML-related questions. Make sure you're:

  • Asking clear, DAML-specific questions
  • Using agent mode (in VSCode)
  • Have the DAML Coder tools enabled in the tools picker

Connection issues

# Test the MCP server directly (if installed globally)
daml-coder-mcp

# Should show:
# DAML Coder MCP Server v1.1.0 running
# Using DAML Coder Model v1.1.3
# Ready to assist with DAML development!

Documentation

Support

License

Proprietary - Copyright © 2025 Tenzro Labs

About

DAML Coder is an AI assistant specifically trained on DAML smart contract development. It provides context-aware assistance from learning fundamentals to building production systems. The MCP server brings DAML Coder's capabilities to your favorite AI-powered development tools.

Built with care by Tenzro Labs


Changelog

v1.1.0 (Current)

  • Initial MCP server release
  • Six specialized DAML development tools
  • Model v1.1.3 with latest DAML standards
  • DAML SDK 2.10.2 LTS support
  • Canton Protocol v7 compatibility
  • CIP-0056 token standard
  • Enhanced security-first patterns
  • Conversational chat capability
  • Automatic test generation
  • AI-powered debugging

Contributing

We welcome feedback and suggestions! Contact us at [email protected] with your ideas for improving DAML Coder MCP.