HumanLeg.ai

v0.2.0
io.github.humanleg-ai/humanleg Checked 10 hours ago Published 21 days ago

Hand bounded tasks from AI agents to trusted humans.

Values you need

VariableWhat it is
HUMANLEG_API_URLoptional HumanLeg API base URL Default: http://127.0.0.1:8787
HUMANLEG_AGENT_TOKENrequired secret Least-privilege HumanLeg agent token

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add humanleg -e 'HUMANLEG_AGENT_TOKEN=<HUMANLEG_AGENT_TOKEN>' -- npx -y --package=@humanleg/mcp-server@0.2.0 humanleg-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "humanleg": {
      "args": [
        "-y",
        "--package=@humanleg/mcp-server@0.2.0",
        "humanleg-mcp"
      ],
      "command": "npx",
      "env": {
        "HUMANLEG_AGENT_TOKEN": "<HUMANLEG_AGENT_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "humanleg": {
      "args": [
        "-y",
        "--package=@humanleg/mcp-server@0.2.0",
        "humanleg-mcp"
      ],
      "command": "npx",
      "env": {
        "HUMANLEG_AGENT_TOKEN": "<HUMANLEG_AGENT_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "HUMANLEG_AGENT_TOKEN",
      "id": "humanleg-agent-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "humanleg": {
      "args": [
        "-y",
        "--package=@humanleg/mcp-server@0.2.0",
        "humanleg-mcp"
      ],
      "command": "npx",
      "env": {
        "HUMANLEG_AGENT_TOKEN": "${input:humanleg-agent-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.humanleg]
command = "npx"
args = ["-y", "--package=@humanleg/mcp-server@0.2.0", "humanleg-mcp"]
env = { "HUMANLEG_AGENT_TOKEN" = "<HUMANLEG_AGENT_TOKEN>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http humanleg https://humanleg.ai/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "humanleg": {
      "args": [
        "-y",
        "mcp-remote",
        "https://humanleg.ai/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "humanleg": {
      "url": "https://humanleg.ai/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "humanleg": {
      "type": "http",
      "url": "https://humanleg.ai/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.humanleg]
command = "npx"
args = ["-y", "mcp-remote", "https://humanleg.ai/mcp"]

For AI agents

  1. Ask the user for: HUMANLEG_AGENT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: humanleg_create_fee_quote, humanleg_create_task, humanleg_get_task, humanleg_get_compliance_review.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json