Skip to main content

Convert ARC-56 smart contract specifications to MCP servers

Project description

logo

Convert ARC-56 smart contracts to MCP servers for AI agent integration.

Features

  • 🔄 Converts ARC-56 specs to MCP servers
  • 🛡️ Secure environment-based configuration
  • 🎯 Call type filtering (readonly/write-only/both)
  • 🧪 Simulation mode for safe testing
  • ⚡ AlgoKit Utils integration
  • 📦 UV-based project generation

Installation

git clone <repo-url>
cd arcontextify
uv sync

Usage

# Generate MCP server
arcontextify contract.arc56.json

# Readonly calls only (no private key needed)
arcontextify contract.arc56.json --call-types readonly

# Write calls only 
arcontextify contract.arc56.json --call-types write-only

# Custom output directory
arcontextify contract.arc56.json --output-dir ./servers

Generated Server

Each server includes:

Environment Variables

export ALGORAND_ALGOD_TOKEN="your-token"
export ALGORAND_ALGOD_SERVER="https://testnet-api.algonode.cloud"  
export ALGORAND_APP_ID="123456"
export ALGORAND_DELEGATED_PRIVATE_KEY="your-key"  # Not needed for readonly

Claude Desktop Config

{
  "mcpServers": {
    "contract_mcp": {
      "command": "uv",
      "args": ["run", "python", "-m", "src.contract_mcp"],
      "cwd": "/path/to/contract_mcp",
      "env": {
        "ALGORAND_ALGOD_TOKEN": "your-token",
        "ALGORAND_ALGOD_SERVER": "https://testnet-api.algonode.cloud",
        "ALGORAND_APP_ID": "123456"
      }
    }
  }
}

Available Tools

  • verify_environment_setup() - Check configuration
  • get_connection_info() - Connection status
  • get_application_state() - Global state
  • get_account_local_state(address) - Local state
  • Contract methods with simulation support

Security

  • Environment-based secrets (no hardcoded keys)
  • Dummy accounts for readonly operations
  • Transaction simulation for safe testing
  • Address validation and input sanitization

Requirements

  • Python 3.10+
  • UV package manager
  • AlgoKit Utils 2.0+

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcontextify-0.0.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcontextify-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file arcontextify-0.0.1.tar.gz.

File metadata

  • Download URL: arcontextify-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for arcontextify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8be5a3c24dcb47900c360c724b98b76b74a5bab778f0ed6ecd5fa46f268e5b88
MD5 4b5509e05d6cf4670cce0d86a335e6af
BLAKE2b-256 328f9e6ea768600c0c47b64f7e68ed1750b736c42938c4c4b602103d3f895a04

See more details on using hashes here.

File details

Details for the file arcontextify-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for arcontextify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d22bb3e1d91f617e84ca2725ca3ae4bd688bdbac8982a549eb20b909acee34d1
MD5 54a536db30a2682106cdaad3b2f1080c
BLAKE2b-256 863ca2d40011bc2823620bedfe4b8f4ffa8280c8c3170c60bcdbfa8292a46e45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page