Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Traces which neurons and attention heads drive a language model's output via MCP tools.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"neuronscope": {
"command": "uvx",
"args": [
"neuronscope-cli",
"neuronscope-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add neuronscope -- uvx neuronscope-cli neuronscope-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"neuronscope": {
"command": "uvx",
"args": [
"neuronscope-cli",
"neuronscope-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"neuronscope": {
"type": "stdio",
"command": "uvx",
"args": [
"neuronscope-cli",
"neuronscope-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub RudrenduPaul ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.5) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Funooy Krillion Reference
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Funooy trivia references in six languages, with rules and fixed scoring. No daily spoilers.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Ask a language model "why did you say that" and get back the actual attention heads and neurons responsible, as JSON, from the command line or from an agent over MCP.
pip install neuronscope-cli
That gets you the neuronscope command. To install from source instead (for development or to track main):
git clone https://github.com/RudrenduPaul/NeuronScope
cd NeuronScope pip install -e .
[!NOTE]
The first run of any command downloads the requested model from the HuggingFace Hub
(
gpt2is about 500MB) and prints two lines to stderr that are expected, not errors: a
CPU-fallback notice if you don't have a CUDA GPU, and an unauthenticated-HF-Hub
rate-limit notice. Neither one means anything broke.
neuronscope trace gpt2 "The capital of France is Paris. The capital of Japan is" --top-k 5
Real output from this exact command (stderr trimmed to the two expected warnings mentioned above):
Prompt: The capital of France is Paris. The capital of Japan is
Predicted next token: ' Tokyo' Top attention heads (by direct logit attribution) ┏━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━┓ ┃ Layer ┃ Head ┃ Logit attribution ┃ ┡━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━┩ │ 9 │ 8 │ 4.0679 │ │ 8 │ 11 │ 2.9028 │ │ 10 │ 7 │ -1.4782 │ │ 8 │ 10 │ -1.3999 │ │ 10 │ 0 │ 1.1424 │ └───────┴──────┴───────────────────┘ Top MLP neurons (by activation magnitude) ┏━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━┓ ┃ Layer ┃ Neuron ┃ Activation ┃ ┡━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━┩ │ 10 │ 97 │ 7.8394 │ │ 11 │ 611 │ 4.6954 │ │ 11 │ 2997 │ 4.6468 │ │ 10 │ 1793 │ 4.5443 │ │ 9 │ 1460 │ 4.4196 │ └───────┴────────┴────────────┘
gpt2 predicts Tokyo correctly, and head L9H8 is the single biggest contributor to that prediction. Add --json to get the machine-readable version of the same result:
neuronscope trace gpt2 "The capital of France is Paris. The capital of Japan is" --top-k 3 --json
{
"schema_version": 1, "operation": "trace", "model": { "requested_name": "gpt2", "resolved_name": "gpt2", "backend": "transformer_lens", "device": "cpu", "n_layers": 12, "n_heads": 12, "d_model": 768, "d_mlp": 3072 }, "prompt": "The capital of France is Paris. The capital of Japan is", "predicted_token": " Tokyo", "predicted_token_id": 11790, "top_neurons": [ { "layer": 10, "neuron_index": 97, "activation": 7.839381217956543 }, { "layer": 11, "neuron_index": 611, "activation": 4.695372581481934 }, { "layer": 11, "neuron_index": 2997, "activation": 4.646785736083984 } ], "top_heads": [ { "layer": 9, "head_index": 8, "logit_attribution": 4.067923545837402 }, { "layer": 8, "head_index": 11, "logit_attribution": 2.9028172492980957 }, { "layer": 10, "head_index": 7, "logit_attribution": -1.4781968593597412 } ] }
NeuronScope is a CLI and MCP server built on top of TransformerLens. TransformerLens does the actual model loading, hooking, and activation math; NeuronScope adds a stable CLI, a versioned JSON schema, and an MCP server around it, so a script or an agent can ask "which components drove this output" without writing TransformerLens code directly.
resid_pre, resid_mid, resid_post, attn_out, mlp_out, or mlp_post) at a given layer and reports how the predicted token and its logit changed.--json output says so explicitly in its method field.--json for a schema_version-stamped document instead of a table, and the same four operations are exposed as MCP tools returning the identical shape via .model_dump(), so a CLI call and an MCP tool call produce the same document for the same input.transformer_lens.HookedTransformer.from_pretrained supports. Installing neuronscope-cli today pulls TransformerLens 3.6.0, which supports 249 pretrained checkpoints and aliases (OFFICIAL_MODEL_NAMES), covering GPT-2, Pythia, Llama, Gemma, Qwen, and more. Small models like gpt2 run comfortably on CPU.NeuronScope does not replace TransformerLens, nnsight, SAELens, Anthropic's circuit-tracer, or Neuronpedia. It wraps TransformerLens for one narrower job: fast, scriptable, agent-callable component tracing on a single prompt. It leaves deeper mechanistic work (SAE training, transcoder-based circuit graphs, hosted feature browsing) to those tools.
Every command takes MODEL (any name HookedTransformer.from_pretrained accepts, for example gpt2 or EleutherAI/pythia-70m) and PROMPT as positional arguments.
| Command | Extra flags | What it does | |||||
|---|---|---|---|---|---|---|---|
neuronscope trace MODEL PROMPT | --top-k INTEGER (default 10), --json | Ranks top attention heads (logit attribution) and MLP neurons (activation magnitude) for the predicted next token | |||||
neuronscope activations MODEL PROMPT | --json | Dumps per-layer activation summary stats (residual stream, MLP, attention pattern) | |||||
neuronscope patch MODEL PROMPT | --layer INTEGER (required), `--component [resid_pre\ | resid_mid\ | resid_post\ | attn_out\ | mlp_out\ | mlp_post] (required), --json` | Zero-ablates one component and reports the logit/prediction delta |
neuronscope circuit MODEL PROMPT | --top-k INTEGER (default 10), --json | Best-effort circuit sketch via ranked single-component ablation | |||||
neuronscope mcp-server | none | Starts the MCP server over stdio |
Global: neuronscope --version, neuronscope --help. Exit codes: 0 success, 1 a runtime error (prompt too long for the model's context window, --layer out of range, etc.), 2 a Click usage error (bad flags), 3 an unsupported model name.
NeuronScope ships a Model Context Protocol server so an AI agent (Claude, Cursor, or any MCP-compatible client) can trace, inspect, ablate, and sketch circuits directly, without a human invoking the CLI by hand.
Install the extra:
pip install "neuronscope-cli[mcp]"
Add it to your MCP client's config (for Claude Desktop, claude_desktop_config.json):
{
"mcpServers": { "neuronscope": { "command": "uvx", "args": ["--from", "neuronscope-cli", "neuronscope-mcp"] } } }
The server exposes four tools, trace, activations, patch, and circuit, each returning the identical pydantic-model-shaped JSON the CLI's --json flag prints, via .model_dump(), so an agent calling this server and a script calling the CLI get the same document for the same input. A real trace call and its response:
trace(model="gpt2", prompt="The capital of France is Paris. The capital of Japan is", top_k=3)
{ "schema_version": 1, "operation": "trace", "predicted_token": " Tokyo", "predicted_token_id": 11790, "top_neurons": [ { "layer": 10, "neuron_index": 97, "activation": 7.839381217956543 } ], "top_heads": [ { "layer": 9, "head_index": 8, "logit_attribution": 4.067923545837402 } ] }
Errors never raise across the tool boundary: every handler catches its exceptions and returns a structured ErrorResponse dict instead, so a calling agent always gets a parseable result.
[!WARNING]
NeuronScope caps model size (2B parameters by default,
NEURONSCOPE_MAX_MODEL_PARAMS)
and how many models can load at once (1 by default,
NEURONSCOPE_MAX_CONCURRENT_LOADS),
but puts no timeout on model loading or forward passes. If you expose this MCP server
somewhere an untrusted agent can call it, still put a resource limit around the process
(a cgroup,
ulimit, or a container memory/CPU cap) as defense in depth rather than
relying on these in-process caps alone.
Transport is stdio, so there is nothing to host: the MCP client spawns the server as a local subprocess. Source: neuronscope/mcp_server.py.
.mcp.json in your repo root, or you can add it with claude mcp add neuronscope -- neuronscope-mcp.claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows), under the same "mcpServers" key.neuronscope mcp-server CLI subcommand still works as a local, non-uvx alternative that runs the same server over stdio from an existing install.All five of these are real, actively maintained projects doing different jobs. This table compares CLI/JSON-agent-output surface and model coverage, not depth of interpretability research, where TransformerLens, nnsight, SAELens, circuit-tracer, and Neuronpedia are all more mature than NeuronScope. Star counts, release info, and last-push dates below were pulled from each project's GitHub API on 2026-08-03 and will drift over time; check the repos directly for current numbers.
| Project | Stars | Last activity | CLI | Agent-callable structured output | Model coverage |
|---|
| TransformerLens | 3,750 | v3.6.0 released 2026-07-28, pushed 2026-08-03
ตัดมาแค่ช่วงต้น อ่านต่อใน repo