Skip to main content

Nanobot Integration

Add Treeship verification to Nanobot agents via MCP configuration.

Setup

Add Treeship to your Nanobot MCP config:
# nanobot.yaml
mcpServers:
  treeship:
    command: npx
    args: ["-y", "treeship-mcp"]
    env:
      TREESHIP_API_KEY: ${TREESHIP_API_KEY}
      TREESHIP_AGENT: my-nanobot-agent

Using Treeship Tools

Once configured, your Nanobot agent has access to Treeship tools:
Agent: I'll process this loan application and create a verification record.

<tool_use>
  <name>treeship_attest</name>
  <input>
    <action>Approved loan application #12345</action>
    <data>{"application_id": "12345", "amount": 50000, "decision": "approved"}</data>
  </input>
</tool_use>

The loan has been approved. Verification: https://treeship.dev/verify/my-nanobot-agent/abc123

Auto-Verification

Configure Nanobot to automatically attest actions:
# nanobot.yaml
hooks:
  afterToolUse:
    - name: treeship_attest
      input:
        action: "Tool: {{tool_name}}"
        data: "{{tool_input}}"

CLI Usage

# Set your API key
export TREESHIP_API_KEY=ts_live_...

# Run Nanobot with Treeship
nanobot run --config nanobot.yaml

Verification Page

Every action creates a permanent record at:
https://treeship.dev/verify/my-nanobot-agent

MCP Server Details

The Treeship MCP server provides these tools:
ToolDescription
treeship_attestCreate an attestation
treeship_verifyVerify an existing attestation
treeship_listList recent attestations

Next Steps