Execution.run
← Back to Docs

MCP Integration

Use Execution.run with AI agents via the Model Context Protocol.

What is MCP?

The Model Context Protocol is a standard for connecting AI agents to external tools and services. Our MCP server lets agents access LLMs through your wallet using a Card API key.

Setup

Add to your MCP config (e.g., .kiro/settings/mcp.json):

{
  "mcpServers": {
    "execution-run": {
      "command": "npx",
      "args": ["@execution-run/mcp-server"],
      "env": {
        "EXECUTE_RUN_API_KEY": "sk_live_your_card_key"
      }
    }
  }
}

Available Tools

ToolDescription
whoamiGet card and wallet identity
get_balanceCheck your wallet's Shell balance
get_transactionsView transaction history
transferSend Shells to another wallet or card address
signSign a challenge with your card's keypair
computeExecute an LLM request

Card Identity

Each card has its own Ed25519 keypair for cryptographic identity. Use the sign tool to prove your card's identity to other services.

Your card address format: cardName@walletId

Environment Variables

VariableRequiredDescription
EXECUTE_RUN_API_KEYYesYour Card API key
EXECUTE_RUN_API_URLNoCustom API URL