MockHero

v0.2.0
io.github.dinosaur24/mockhero Checked 16 hours ago Published 5 months ago

Generate realistic relational test data — 156 field types, 22 locales, JSON/CSV/SQL, free previews.

Values you need

VariableWhat it is
MOCKHERO_API_KEYoptional secret MockHero API key (optional — without it, generation runs as a free preview up to 100 records per request; get a key at https://mockhero.dev or via the create_agent_checkout tool)
MOCKHERO_API_BASEoptional Base URL of the MockHero API (default https://mockhero.dev)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mockhero -- npx -y --package=@mockherodev/mcp-server@0.2.0 mockhero-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mockhero": {
      "args": [
        "-y",
        "--package=@mockherodev/mcp-server@0.2.0",
        "mockhero-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mockhero": {
      "args": [
        "-y",
        "--package=@mockherodev/mcp-server@0.2.0",
        "mockhero-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mockhero": {
      "args": [
        "-y",
        "--package=@mockherodev/mcp-server@0.2.0",
        "mockhero-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mockhero]
command = "npx"
args = ["-y", "--package=@mockherodev/mcp-server@0.2.0", "mockhero-mcp"]

Remote (hosted)

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

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: generate_test_data, generate_from_template, detect_schema, list_field_types, list_templates, estimate_agent_usage, create_agent_checkout, check_agent_checkout_status, ….
  4. 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