lens-mcp

v1.1.1
io.github.mrhpython/lens-mcp Checked 3 days ago Published 3 months ago

Outside-in validation gate for AI-generated text; a separate model checks LLM output, fail-closed.

Values you need

VariableWhat it is
SOULFIELD_API_BASEoptional Lens API base URL. Use https://api.soulfield.one for the hosted service. Default: https://api.soulfield.one
SOULFIELD_API_KEYoptional secret API key for validate_content and scrub_pii. Get one free, self-serve, no card, at https://api.soulfield.one/pricing#signup. lens_health needs no key.

npm (npx) discovery passed

Requires Node.js 18+

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

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: validate_content, scrub_pii, lens_health, lens_catches_relevant, lens_catches_add, lens_catches_stats, lens_consistency_leaks, lens_consistency_numbers, ….
  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