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

  1. Install uv
  2. Run uv tool install arcontextify

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.2.tar.gz (2.1 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.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for arcontextify-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a26ca8c007808e346c5a2654721f3a6c7a7e725bb3b2b1557c47de2163ad2c52
MD5 26d39092abe78fa05b507317287daf2a
BLAKE2b-256 329c514cb9dcd3ce8ff12df303d4554c70f9a165ab77f0fd4bfbb2d1264014c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arcontextify-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41d91fab65b42b67c7a3469899c83bcc784de8fe0f2f57cad57e7ba9ebba310a
MD5 0614a7132b8cce42854d102ee955e458
BLAKE2b-256 1f5806642d7dcd6ee7bb04e6e3e05745cd5d9dd9e43ca38661e9578e7ff8053c

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