# MCP for agents

Everything Prometheus can run is also an MCP server, so Claude Code or any other agent can drive the Inspector. An agent should read For agents first: the Inspector measures open models, never the…

Canonical: https://parameterspaceinspector.com/docs/mcp/  
Updated: 2026-11-01  
Part of the Parameter Space Inspector (free, open-source desktop app) · section: https://parameterspaceinspector.com/docs/ · Site guide for AI: https://parameterspaceinspector.com/llms.txt

Everything Prometheus can run is also an MCP server, so Claude Code or any other agent can drive the Inspector. An agent should read [For agents](/docs/for-agents/) first: the Inspector measures open models, never the agent itself. 

```
POST http://127.0.0.1:4310/mcp          JSON-RPC 2.0, Streamable HTTP
claude mcp add --transport http psi http://127.0.0.1:4310/mcp --header "Authorization: Bearer <MCP token>"
```
 

**A separate token.** The MCP token is printed when the browser server (`node src/devserver.js`) starts. It is new each launch; the `PSI_MCP_TOKEN` environment variable keeps one. It opens `/mcp` only; the window’s own calls (settings, keys, the spending cap) use a different token. Requests need `Content-Type: application/json`. 

 | Tool | What it does |
|---|---|
 | psi_status · guide_search · glossary | what is loaded, and the for_agents text; find where a question is answered; terms |
 | search_site · site_concept | the essays and the EmergenceLexicon, through the site’s own MCP server |
 | generate · next_token_odds · read_surprise · tokenize | the local model: answers, odds, surprise, pieces |
 | layer_by_layer · word_map · understanding_tests · knock_out_neurons | Neural net, Tokens, Understanding |
 | checkpoints_list · checkpoint_ask · checkpoint_when_learned | Pythia training checkpoints |
 | heads_scan · ablate_heads · tipping_point · lesion_restore | copying heads and deletions; a tipping-point cut stays until lesion_restore |
 | sensing_surface · fight_class · connector_meter | the experiments |
 | anatomy | structure, weights, links, record, zoom, neuron, patch, concept, concept_knockout, concept_erase, … (concept_knockout is refused while a tipping-point cut is in force: run lesion_restore first) |
 | neuron_names · external_models | drafted names; OpenRouter (status, models, chat) under the spending cap |
 | score_my_text | your text scored by an open model, piece by piece, beside its own greedy answer and a human-written passage |
 | framing_side_by_side · self_consistency | external models (and the open model, if it is running) under up to 4 framings, or sampled n times: answers, agreement with a Wilson interval, spend |
  

**The envelope.** Every result comes as `{result, conditions, analogue, changed_state, not_measured, truncated, cost}`: 
 
- `conditions`: what it was measured under (never cut); 
- `analogue`: what was measured, and what may and may not carry over to the agent reading it; 
- `changed_state`: steering, LoRA, a cut, or a model the call itself started; 
- `not_measured`: what could not be read; 
- `truncated`: whether the result was cut; 
- `cost`: see below. 
 

A tool that needs the local model starts it if it is not running, as the plain file without steering or LoRA, and says which saved settings it left out. `score_my_text` never starts an engine: it refuses, says what it would start and how much GPU memory that needs. 

**Costs.** Each tool has a `cost` in `tools/list` (under `annotations`) and in each result: `{gpu, usd, changes_model, writes_files, seconds}`, plus `estimate_usd` and `spent_usd` when money was involved. Before every OpenRouter call the app estimates the price: model price × (prompt tokens estimated as characters ÷ 3, plus every allowed output token). It refuses when spent + estimate would pass the cap. `framing_side_by_side` and `self_consistency` estimate the whole run before the first call. They need `max_usd` and refuse above it. 

**Strict arguments.** `score_my_text`, `framing_side_by_side`, `self_consistency`, `knock_out_neurons` and `ablate_heads` refuse unknown arguments, and `external_models` takes only the arguments of its action. Arguments that are not a JSON object are refused. In every case nothing is run. 

**Refusals.** A refused call says why and that nothing was run (or what it changed or spent before it failed). An agent cannot change keys, the spending cap or reset the spend; those are yours, in Settings. 

**Agents may change models (off by default).** While it is off, an outside agent is refused the calls that change your model: tipping_point cuts (everything except baseline, restore, status, scorecard and concept_find), every anatomy action that is not read-only (concept_knockout, concept_erase, concept_inject, build_examples, build_stats), and seed_grow. The refusal reads “the user has not allowed agents to change models (Settings)”. Read-only tools, per-request knock-outs (knock_out_neurons, ablate_heads) and lesion_restore still work. Prometheus in the window keeps its own rule: it asks you first. It always asks before anything that spends money. 

**Agents may spend OpenRouter credit (off by default).** While it is off, an outside agent is refused the paid calls (external_models chat, framing_side_by_side, self_consistency); the refusal reads “the user has not allowed agents to spend OpenRouter credit (Settings)”. When on, agents spend under the same cap as you. The llama.cpp folder and the cache folder are never set from the window or by an agent: use `PSI_LLAMA_DIR` / `PSI_CACHE_DIR` or settings.json. 

**The agent strip.** When an agent made MCP calls in the last 10 minutes, the header shows `agent: N calls · $X spent`. Every 20 seconds the window also reads the inside engine. A cut an agent made then lights the “changed” chip, even though no view made it. 

Behind an authenticating proxy (Remote use), the endpoint sits behind the same login as the app. The page-control tools (read the open view, press a button) exist only inside the window.

---

From [The Emergence Machine](https://emergencemachine.com/). Newsletter: [subscribe on Substack](https://theemergencemachine.substack.com/subscribe). Use-case feed: https://parameterspaceinspector.com/feed.xml. Follow: [Substack](https://theemergencemachine.substack.com) · [YouTube](https://www.youtube.com/@emergencemachine) · [X](https://x.com/emergences4me) · [Bluesky](https://bsky.app/profile/emergencemachine.bsky.social) · [Reddit](https://www.reddit.com/r/emergencemachine/) · [Instagram](https://www.instagram.com/emergencemachine/) · [TikTok](https://www.tiktok.com/@emergencemachine) · [Kaggle](https://www.kaggle.com/emergencemachine/datasets).
