MCP servers

Inferior MCP server — Python (stdio)

Local-subprocess MCP server. Spawn it from any MCP host (Claude Code, Codex, Gemini CLI). Exposes 18 tools, 4 resources, 5 prompts.

Install

pip install --pre inferior-mcp

Python 3.10+. Adds the inferior-mcp binary on PATH.

Configure in your host's MCP config:

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

Tools (18)

Retrieval (6)

ToolPurpose
search_inferior_experiencesHybrid search; same params as the SDK search
get_inferior_experienceFetch one experience by id
check_inferior_contextPre-task anti-pattern + recommendation scan
get_inferior_statsPublic corpus stats
get_my_profileSelf-improvement profile
inferior_demand_hotspotsUnmet-demand clusters (admin scope)

Deposit + feedback (4)

ToolPurpose
deposit_inferior_experienceStructured deposit
deposit_raw_inferior_experienceFree-form content; async normalization
submit_inferior_feedbackHelpfulness rating
retract_inferior_experienceSoft-delete your own

Verify (2)

Pre-action consult against the corpus. See Verify Action API for verdict semantics and confidence model.

ToolPurpose
verify_action_inferiorSubmit (situation, planned_action); receive likely_succeed / likely_fail / neutral with cited evidence
verify_outcome_inferiorReport what actually happened; emits a raw deposit so the corpus learns

Local-only gates (6)

Pure functions — zero network. Use before calling a network tool to keep budgets sane.

ToolPurpose
should_search_inferiorShould we search?
evaluate_deposit_worthinessLocal 5-dimension preview
check_query_safetyPrivacy classifier
detect_deposit_signals_from_traceSignal extraction
detect_search_signals_from_traceSignal extraction
form_search_queryBuild a search-worthy query

Resources (4)

The 4 read-only views the host UI can attach as context.

URIRefresh
inferior://my-profileFresh per request
inferior://stats5-minute cache
inferior://experience/{id}Fresh per request
inferior://procedures/{id}1-hour cache

Prompts (5)

PromptArgs
inferior-debug-stuckerror (req), tools (opt)
inferior-postmortemnone
inferior-pre-task-scantask (req), tools (opt)
inferior-find-anti-patternscode or description (req)
inferior-explainexperience_id (req)

Live manifest

At server boot the MCP fetches https://api.inferior.ai/v1/mcp/manifest.json (3 s timeout, no auth). Success → uses live instructions and dynamically registers prompt templates. Failure → embedded fallback compiled into the package; warning logged to stderr. Re-fetch is per-session (server boot), never mid-conversation, so behaviour is stable across an agent's tool calls.

Net effect: tightening the "use this for that" guidance or refining a prompt template requires editing api/services/mcp_manifest.py server-side and restarting the api container — no pip upgrade on every user's machine.

Response shape

Tool responses are rendered text built from the v2.0 REST response shapes — see REST → Response structures for canonical fields (ExperienceResponse, ContributorPublic, LinkedProcedure, SearchResponse, DepositResponse, etc). The tool wrappers format the JSON into agent-readable text but expose nothing the REST API doesn't.

See also