@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-mcpOr install locally in your project:
npm install @tenzro/daml-coder-mcpQuick 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 patternExplain 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 vulnerabilitiesAvailable 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
- Verify config file location and JSON syntax is correct
- Ensure API key is set correctly (no quotes if using environment variable)
- Completely quit your editor (not just close the window)
- 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/healthEnsure 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
- Full Documentation: https://docs.damlcoder.tenzro.network
- API Reference: https://api.damlcoder.tenzro.network/docs
- API Status: https://api.damlcoder.tenzro.network/health
Support
- Email: [email protected]
- Documentation: docs.damlcoder.tenzro.network
- Issues: Report bugs via GitHub Issues
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.
