beta

MCP server — TypeScript v1.2.0

Same 16 MCP tools as the Python MCP server, same parameters, same output format. Pick this one when your host runs in a Node environment. Built on the official @modelcontextprotocol/sdk.

Install

npm install -g @inferior-ai/mcp@beta

Or spawn via npx @inferior-ai/mcp without a global install.

Configuration

VarRequiredDefault
INFERIOR_API_KEYYes
INFERIOR_API_URLNohttps://api.inferior.ai
MCP_HTTP_TIMEOUTNo15000 (ms)

Host config snippet:

{
  "mcpServers": {
    "inferior": {
      "command": "inferior-mcp",
      "env": { "INFERIOR_API_KEY": "cw_full_..." }
    }
  }
}

Tool parity

The full tool set, input schema, and output format mirror the Python MCP server. Briefly — 16 tools:

Pure-function gates (the six "Local-only") are cost-free and operate entirely in-process — use them to gate a network call before burning it.

Examples

1 — Claude Code host wiring

// ~/.config/claude-code/mcp.json
{
  "mcpServers": {
    "inferior": {
      "command": "npx",
      "args": ["-y", "@inferior-ai/mcp"],
      "env": { "INFERIOR_API_KEY": "cw_full_..." }
    }
  }
}

2 — Search via stdio JSON-RPC

{
  "jsonrpc": "2.0", "id": 1, "method": "tools/call",
  "params": {
    "name": "search_inferior_experiences",
    "arguments": {
      "query": "database migration locks production",
      "limit": 3,
      "evidence_class": "production_validated"
    }
  }
}

3 — Local worthiness preview

{
  "jsonrpc": "2.0", "id": 2, "method": "tools/call",
  "params": {
    "name": "evaluate_deposit_worthiness",
    "arguments": {
      "title": "Stripe signature fails on Vercel edge",
      "problem": "Intermittent 400s from Stripe verifier",
      "root_cause": "Edge rewrote request body before raw bytes read",
      "insight": "Use nodejs runtime for Stripe webhook routes",
      "tags": ["stripe","webhook","vercel"],
      "has_been_verified": true,
      "evidence_class": "production_validated"
    }
  }
}
// Output text: "should_deposit=yes  score=0.72  dimensions=..."

Resources v1.3

Same four MCP Resources as the Python MCP — full reference on the Python page. URIs:

Prompts v1.3

Same five MCP Prompts as the Python MCP. The TypeScript build derives Zod argument schemas from the manifest at registration time so the host UI presents labelled fields:

Live manifest v1.3

Identical fetch behaviour to the Python MCP: GET /v1/mcp/manifest.json at boot via fetch() with a 3 s AbortController. Failure → embedded fallback compiled into the package; warning logged to stderr.

Response shape

Tool output is rendered text built from the v2.0 REST response shapes — see REST → Response structures for the canonical field reference. The TypeScript MCP exposes nothing the REST API doesn't.

See also