Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

MCP Server

The JAW CLI includes an MCP (Model Context Protocol) server that lets AI agents interact with JAW smart accounts programmatically.

Setup with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "jaw": {
      "command": "npx",
      "args": ["-y", "@jaw.id/cli", "mcp"],
      "env": {
        "JAW_API_KEY": "YOUR_API_KEY",
        "JAW_CHAIN_ID": "8453"
      }
    }
  }
}

The MCP server runs on stdio transport — no ports or URLs to configure.

Available Tools

ToolDescription
jaw_rpcExecute any RPC method (method, params?, chainId?)
jaw_config_showDisplay current configuration
jaw_config_setUpdate a configuration value (key, value)
jaw_statusCheck relay session and connection status
jaw_disconnectClose relay session and browser tab

jaw_rpc

The primary tool. Executes any EIP-1193 RPC method through the browser bridge.

{
  "method": "wallet_sendCalls",
  "params": {
    "calls": [{ "to": "0x...", "value": "0x..." }]
  },
  "chainId": 8453
}

Methods that require signing (e.g., wallet_sendCalls, personal_sign) will open the browser for passkey confirmation on first use. The session persists across multiple tool calls.

jaw_config_set

{
  "key": "defaultChain",
  "value": "8453"
}

Valid keys: apiKey, defaultChain, keysUrl, paymasterUrl, ens

Available Resources

The MCP server exposes documentation resources that AI agents can read for context.

Resource URIDescription
jaw://api-referenceIndex of all supported RPC methods
jaw://api-reference/{method}Detailed documentation for a specific method

Agent Skills

For AI coding assistants that support skills, there's an official skill package that provides deep knowledge of the JAW CLI and SDK.

Repository: github.com/JustaName-id/jaw-skills

Install

npx skills add JustaName-id/jaw-skills

This installs two skills:

SkillDescription
jaw-cliCLI usage patterns and best practices
jaw-sdk-best-practicesSDK development patterns and architectural guidance

Once installed, AI assistants automatically apply JAW-specific guidance when working with CLI commands or SDK integration code.