Servers Changes Log Check Watch Why How it works GitHub

io.github.turbyho/fw-context-mcp

io.github.turbyho/fw-context-mcp · pypi:fw-context-mcp

Último cambio observado · 2026-11-14T20:32:52Z

Build-aware code intelligence for embedded C/C++ firmware — libclang, FTS5, call graphs, 37 tools

Primera observación
2026-10-10
Sin cambios desde
2026-11-14
Última observación
2026-12-04
Observaciones
14
Cambios registrados
3
Herramientas
37

Definiciones de herramientas en la última observación (37)

  • check_dependencies — Run the dependency audit of the installation. Read-only, and it creates no file. Call it when get_project_status or another tool reports a problem of the installation, or before the first ``fw-context init``. It is not a call for each session: it runs every check of the installation. Each entry gives what to do in ``action``: a ``message`` for a human, and the shell ``comman …
  • check_ollama — Check whether the LLM backend is running and the configured embedding/chat model is installed. Read-only: yes. No side effects. Call before smart_search, semantic_search, or explain_symbol (when on-demand fallback is expected — pre-computed analysis returns instantly without the LLM backend). Args: project_root: Project root. Auto-detected if omitted. Used to …
  • configure_llm — Select the LLM profile (and the embedding model) of the current project. Writes to ``<project>/.fw-context/local.toml`` ONLY (gitignored, per-developer). Does NOT modify the global config or the shared project ``config.toml``. The profiles themselves are in the global config, and only the operator writes them (``fw-context llm setup`` or ``fw-context init``): this tool ta …
  • explain_symbol — Explain what a C/C++ symbol does in plain English — libclang-aware analysis. Uses pre-computed LLM analysis when available (instant), falls back to on-demand LLM. Falls back to macro explanation when the name matches a ``#define``. Read-only. No side effects — uses pre-computed LLM analysis when available (instant, generated during ``fw-context index --analyze``), falls back t …
  • find_all_callers_recursive — Find all transitive C/C++ callers — who calls *name*, directly or indirectly, through the libclang call graph including function-pointer edges, implicit constructors, and the edges of the SDK model. libclang-powered: follows function-pointer assignments and ISR vector registrations across the full call tree. Use for impact analysis: "if I change this function, how far does the …
  • find_call_path — Find call paths between two C/C++ functions via BFS in the libclang call graph, including function-pointer edges, ISR vector registrations, implicit constructors, and the edges of the SDK model (a task that the scheduler starts). libclang-powered: follows function-pointer edges and ISR vector registrations that text-based search cannot resolve. Use to answer "how does A r …
  • find_callees_recursive — Find all transitive C/C++ callees — what *name* calls, directly or indirectly, through the libclang call graph including function-pointer edges, implicit constructors, and the edges of the SDK model. libclang-powered: follows function-pointer calls and indirect invocations across the full dependency tree. Use for dependency analysis: "what does this function depend on to do …
  • find_callers — Find who calls a C/C++ function — direct calls AND indirect via function pointers, callbacks, and struct/array init lists (such as a vector table that the build generates in C). libclang-powered: detects function-pointer assignments that text-based search cannot see. A slot of an assembly vector table (``ref_kind`` ``"vector"``) and an ``NVIC_SetVector`` install (``"runtime_vec …
  • find_dead_code — Find C/C++ functions that are defined but never called — libclang-powered dead code detection across the entire indexed codebase. Distinguishes called from uncalled symbols globally, not just within a single file — text-based search cannot determine whether a function is actually reachable. **What "dead" means:** zero references of any ``ref_kind`` in the index — no call, …
  • find_hotspots — Find the most-called C/C++ functions ranked by caller count — libclang call-graph hotspot detection. Identifies functions with the most architectural weight — good targets for refactoring, optimization, or extra testing. Text-based search cannot aggregate caller statistics across the full call graph. Use for high-level impact assessment: changing a hotspot affects many cal …
  • find_indirect_call_sites — Find the indirect calls through a C/C++ function pointer field or variable, or the indirect calls that a function makes, with the functions that each call reaches. An indirect call goes through a slot: a field, a variable, a parameter or the return value of a function that holds a function (``driver.onData(buf, len)``, ``g_cb(42)``, ``handlers[i](x)``), or the ``operator() …
  • find_indirect_targets — Find the functions that a C/C++ function pointer field or variable can hold, and where the code stores each of them; or, for a function, where the code stores its address and which indirect calls reach it. The answer comes from the data flow of the build, not from names: a function reaches a field when the code stores it there, or stores it in a slot whose value flows there (a …
  • find_references — Find ALL references to a C/C++ symbol — calls, reads, member accesses, function pointer registrations, vector table slots, and macro usages. libclang-powered: detects function-pointer registrations (vector table entries, callback attachments, ``NVIC_SetVector`` installs) that text-based search cannot see. Falls back to macro lookup when the symbol is not found as a functio …
  • find_variables — Find C/C++ variables by name or part of it and trace who reads or writes them through the call graph. libclang-powered: splits variables into global (``varglobal`` — file/namespace/class-scope) and local (``varlocal`` — inside a function body). Each result includes a type signature (``bool timeSet``, ``const IPAddress modbus_ip``), the enclosing function for locals (``"<f …
  • find_wrapper_callers — Find C/C++ wrapper classes that call methods of a driver class — libclang-powered adapter pattern detection. Traces method ownership across class boundaries to reveal the wrapper/adapter architecture (e.g. ``UART`` wraps ``UART_DRIVER``). Text-based search cannot distinguish which class owns each method call. Returns wrapper methods grouped by wrapper class, showing which driv …
  • get_build_info — Return the detail of ONE build: its identity, its health, its memory map and its defines. Read-only with the two exceptions that ``get_project_status`` also has: it removes the marker of a missing build when it finds that build again, and a ``reindex.pid`` or a ``reindex.pending`` of a process that no longer runs. It spawns no subprocess. On a project of more than one bu …
  • get_class_members — Return all methods, fields, and nested types of a C/C++ class/struct — libclang-powered member table. Groups members by kind (method, constructor, field, enum, etc.), distinguishing class members from free functions across the entire codebase. Members are grouped by kind (method, constructor, destructor, field, enum, typedef, class, struct). Each member includes its signature, …
  • get_file_map — Fast structural map of all C/C++ symbols in a file grouped by kind — libclang-powered table of contents. Like a table of contents before reading a chapter: see what functions, classes, and enums a file defines at a glance. The index decides which file a path may reach: a path that no file of this build answers for is refused, and a header of the SDK that the build compiles …
  • get_inheritance_chain — Return the C++ inheritance chain for a class or struct — libclang-aware hierarchy. Resolves base/derived class relationships across all translation units, which single-file reading cannot do. Shows direct base classes (what this inherits from) and direct derived classes (what inherits from this), along with access level and virtual flag for each edge. When ``transitive=Tr …
  • get_method_overrides — Return C++ virtual method override information — libclang-powered vtable analysis. Resolves virtual dispatch across class hierarchies: shows which base-class method this overrides, and which derived-class methods override this one. Text-based search cannot resolve virtual dispatch across translation units. Shows what base-class method this method overrides, and what derived-cl …
  • get_project_info — Return project metadata (name, type, root_path) for a project ID. Looks up the global project registry at ``~/.fw-context/projects.db``. Use this to identify a project from its UUID4 — find out what build system it uses, its name, and where it was last indexed. Read-only. No side effects. Args: project_id: Project ID (UUID4 hex) to look up. Returns: dict …
  • get_project_status — MANDATORY FIRST CALL for C/C++ projects. Return the health of the index of the project, and the list of its builds — check it before you use any other fw-context tool, and call it again while you wait for a reindex. Read-only with two exceptions, and it spawns no subprocess — the startup daemon thread and the file watcher own the background reindex. The exceptions: the las …
  • get_source — Read a C/C++ function/method/enum/macro body using libclang exact extents — no guessing line numbers. Uses AST-precise {start, end} extents so you get exactly the function body. Generic file readers don't know where a function actually ends — libclang tracks exact {start, end} from the AST. The body is **ifdef-filtered**: a line of an inactive ``#if`` branch comes back bla …
  • get_symbol_context — Rich one-shot context for a C/C++ symbol: body, signature, the direct callers and callees. Answers "what does this do and how does it fit in the system?" in a single response — libclang powers the call graph, not regex. Falls back to macro display when the symbol is not found. Prefer this over ``get_source`` when you also need callers, callees, indirect call sites, or LLM anal …
  • get_template_instances — Find all template instantiations for a C/C++ class or function template — libclang template-aware lookup. Finds concrete instantiations spread across all translation units, each with its full type signature. Text-based search cannot resolve template specializations across translation units. Returns concrete instantiations of the template — each with its full type signature …
  • get_vector_table — Read the interrupt vector table, and say what services each interrupt. The vector table is how an interrupt reaches code. Nothing CALLS a handler — the hardware reads a slot and jumps — so a handler has no caller, and every other tool shows it as unreferenced. This tool reads the table itself, from the assembly the build compiles. Use it to answer "which interrupts does thi …
  • list_projects — List all indexed firmware projects with their statistics. Read-only. No side effects. Use it to find another project; call ``get_project_status`` for the builds and the health of one project. ``indexed_at`` and ``first_indexed_at`` are UTC, in ``"YYYY-MM-DD HH:MM:SS"`` format — the same format that ``get_project_status`` returns. ``indexed_at`` is the time of the newest build …
  • lookup_symbol — Look up a C/C++ symbol by name via libclang index — exact or prefix matching. Finds symbols text-based search can miss: build-conditional code, template instantiations, macro-expanded names. Macros are extracted via ``clang -dM -E`` during indexing so ``#ifdef``-conditional macros resolve correctly for the build of the query. Prefer this over search_code when you know the exact …
  • read_file — Read a C/C++ source file, one page at a time, with **ifdef-filtered** content — only code that actually compiles for the build of the query. Inactive ``#ifdef`` branches are replaced with blank lines (preserving original line numbers). Use this to read a file without leaving the fw-context ecosystem. Unlike generic file readers, this tool returns build-accurate content: co …
  • reindex_file — Re-parse a single source file with libclang and update its symbols in the index. Not read-only — uses the exact compiler flags from ``compile_commands.json``. Use after editing a file to keep the index current without a full rebuild. Without ``variant`` and ``image`` the file is re-parsed in EACH build of the project that compiles it: an edit on disk changes the file for ever …
  • reset_index — Delete the entire symbol index for a project. Not read-only — permanently deletes the SQLite database and WAL files. Call with ``confirm=False`` first (dry-run) to see what would be deleted. Re-index with ``fw-context index`` afterwards. Handles corrupt databases gracefully — you can delete a corrupt index without needing to open it first. Args: project_root: Pro …
  • search_bodies — Find patterns in the TEXT OF A DEFINITION — the code inside its extent. Searches **ifdef-filtered** text — only the code that compiles for the build of the query. A line of an inactive ``#if`` branch holds nothing, thus a pattern that lives only in a dead branch gives no result here. That empty answer is the correct one: the code does not compile. Searches the stored text o …
  • search_code — Find C/C++ symbols by name — searches function/class/enum NAMES. Searches symbol names, qualified names, signatures, docstrings, and pre-computed name tokens (CamelCase/snake_case split). Does NOT search function bodies — for patterns in code like ``.attach(``, interrupt handler registrations, callback attachments use ``search_bodies`` instead. Use when you know the concept …
  • search_content — Find patterns in FULL file content — the whole file, not only the text that belongs to a definition. Searches **ifdef-filtered** file text — only code that actually compiles for the build of the query. Inactive ``#ifdef`` branches are replaced with blank lines (preserving original line numbers). A pattern that lives only in a dead branch therefore gives no result, and that …
  • semantic_search — Semantic search using pre-computed libclang symbol embeddings. Finds symbols by meaning, not by text — matches concepts even when query words don't appear literally in the code. Uses cosine similarity over variable-dimension embeddings generated during ``fw-context index``. Dimensions vary by model: mxbai-embed-large → 1024, qwen3-embedding:0.6b → 1024, qwen3-embedding:4b → 256 …
  • smart_search — Natural-language search: an LLM generates FTS5 keywords, then searches the libclang index. Finds concepts by meaning rather than exact text match. Prefer this when you don't know the exact keywords and want to describe what you're looking for ("how does the modem connect?", "handle BLE pairing failure"). Read-only: yes. Slow (10-30 s) — delegates to the full ``SMART_SEARCH …
  • trace_data_flow — Trace how C/C++ data of a given type flows to a target function via libclang call paths. libclang-powered: finds functions by type signature and maps call paths through the full call graph, which text-based search cannot trace across translation units. Finds definitions whose signature mentions *type_name* (substring match, any symbol kind, most-called first), then looks for c …

Consulta las observaciones firmadas, los conjuntos de herramientas anteriores y sus diferencias en el registro interactivo o en /api/v1/servers/51af4e7bc6917816.

io.github.turbyho

Transparency log · MCP tool definitions

Every MCP server's tools, on the record.

Your AI client trusts the tool descriptions an MCP server sends it — and a server can change them after you approved it. HISTOR keeps a public, signed record of what every remote MCP server in the official registry advertised, and tells you the day it changed.

Remote endpoints: it lists tools and never calls one. Registry packages: bounded canary calls run inside the isolated sandbox. It never says a server is safe — it tells you what was said, and when.

DRAG TO ORBIT
SIM
—

WebGL is unavailable here. The picture is the log itself: each label is a leaf, leaf hashes climb a Merkle tree, and a signed tree head seals the root.

—
Registry remote endpoints
last completed crawl
—
Targets with a pinned tool set
current
—
Changes
last 7 days
—
Labels in the log
all time
—
Last signed tree head
UTC

What HISTOR is for

Tool descriptions are instructions. They should not change behind your back.

The problem

A server can change what your model reads

When you connect an MCP server, its tool descriptions go straight to the model as instructions. A server can pass your review with harmless descriptions and change them next week — one added sentence is all a prompt injection needs, and most clients never ask you again.

What HISTOR does

It keeps the public record

Every six hours (every 30 minutes for a week once its tools have changed twice) HISTOR reads what each remote (streamable-HTTP) endpoint in the official MCP registry advertises, fingerprints it, signs what it saw and appends it to a log that can only grow. When a server's definitions change, the change gets a date and a diff.

What you get

A second pair of eyes you can check

Look up any server before you trust it. Paste what your client received and learn whether everyone else sees the same thing. Follow changes in a feed, or put a badge in your README. Every answer is signed, so you can verify it instead of believing it.

Who it is for

People who use MCP serversin Claude, Cursor or any client — check a server before you connect it, and again when it changes.
Agent builderswhose agents connect to servers on their own — call /check before trusting a tool set.
Registries and directoriesthat want more than stars and download counts — show when a listing's tools last changed.
Server authorswho want to show a stable, documented history — add the badge, and every change you ship is dated in public.

Four words used on this page

Tool definitions
The name, description and input schema of each tool a server offers — the text your model reads.
Pinned
HISTOR has recorded a fingerprint (digest) of the exact definitions it saw, so any later change is detectable.
Label
One signed statement about one observation: what was seen, what matched, whether it changed. Anyone can verify it offline.
Signed tree head
The log's signed summary after each crawl. Comparing two of them proves nothing was deleted or rewritten in between.

Read → digest → label → append → sign → compare

How the log works

Six steps, every one of them checkable by someone who does not trust HISTOR. The only thing you have to take on faith is that the observation happened when the label says it did — and the log makes it impossible to change that story afterwards.

01

Read

Remote endpoints in the official MCP registry: initialize, then tools/list, drained across every page; no tool is called, and private addresses are refused before the connection opens. npm and PyPI packages: installed and started in the sandbox described below, with no route out.

02

Digest

The tool set is reduced to name, description, input and output schema, sorted by UTF-16 code units and hashed over its RFC 8785 canonical form. Anyone holding the same tools gets the same digest — which is what makes a comparison possible.

03

Label

Four MTL/1 methods, one signed AWR/2 document each: what was observed, what the WARDEN pattern set matched, whether the definitions changed since the last label, and whether the name is on a threat list. No score, ever.

04

Append

Every label becomes a leaf of an RFC 9162 Merkle tree: leaf hash = SHA-256(0x00 ‖ JCS(label)). The label you download is the leaf input, so you can recompute its hash yourself.

05

Sign

After each crawl HISTOR signs a tree head: the size and the root. Keep yesterday's head; ask for a consistency proof to today's; if anything was removed or rewritten, the proof fails.

06

Compare

Each day a continuity label compares the new digest with the last one. Equal: "unchanged since". Different: a change, with the date and a per-tool diff. A client that checks what it received adds the view no crawler has.

Where an npm or PyPI package is run

Test conditions

A package observation is true for these conditions, and no others. Every package page names the exact image it ran in and any configuration it was given.

System

Linux x86_64, inside gVisor (runsc): the package talks to a kernel written for sandboxing, not to the host's. An unprivileged user, no capabilities, a read-only root.

Runtimes

npm packages in histor-node:22, PyPI packages in histor-python:3.12: the official node:22-bookworm-slim and python:3.12-slim images plus bash, git, Python 3 or Node 22 and a Java 21 runtime — never Docker — built when a sandbox host is installed. A package whose Requires-Python excludes 3.12 runs on histor-python:3.13 or 3.14; one that requires a newer Node runs again on histor-node:24. The exact image a package ran in is on its page.

Install

npm with --ignore-scripts, then the install scripts in a traced stage of their own. PyPI: wheels only — a package that ships only source is reported, never built.

Network

No route out. Every name the package looks up resolves to HISTOR's own traps, which record what was sent and forward nothing. A server that needs the internet to start shows that here.

Secrets

None are real. Decoy credentials sit in HOME and a decoy .env in the working directory. A variable the package says it needs gets a placeholder; where the placeholder was sent is recorded.

Limits

512 MB of memory, one CPU, 64 MB of /tmp. 360 s to install, 150 s to start and answer; up to 15 tools called once each with canary arguments, 8 s per call.

Configuration

Only names: required variables its registry entry declares or that it printed when it exited, and a start argument such as serve when its usage text offers one. Never a value from anyone else.

What a label does not say

The profile HISTOR implements forbids the words safe, secure, audited, certified, approved and trusted. Here is why, in the terms of what the log can and cannot show.

Not a safety rating

A pattern match is a reason to read a definition, not a finding. Three of the four methods can never return fail. There is no score to rank by, because no score HISTOR could compute would mean what a reader takes it to mean.

Not the code

Labels are about advertised text. A remote endpoint's source is never read and its tools are never invoked; a package runs only in the sandbox, against nothing real. A server can keep identical definitions and behave differently for real users; the log cannot see that, and says so inside every label.

A change is not an accusation

A version bump changes definitions too. A change is shown as a date and a diff, in amber, never red. What you do with it is yours: re-read, re-approve, or pin the old digest.

A package as run here, not on your machine

An npm or PyPI server is observed under the test conditions above: Linux, no internet, placeholder keys. One that needs Windows, a real account or the network may show fewer tools or none; its page says why it exited.

One operator, one key

Today one party runs the log. A second observer on another network is the next step, and any AIMarket hub can run one. Until then, what the key proves is who said it — not that it is true.

Behind a login, unseen

Endpoints that require authentication answer 401 to everyone without a key, including HISTOR. They are counted and listed as not observed, never dropped from the numbers.

Other logs, the same servers

Outside checks

HISTOR is not the only public record of MCP tool definitions. Where another log publishes its reads, the two are compared on the same servers and days, and the result is published both ways, with HISTOR's own misses.

ScraperWatch

A daily diff of a fixed panel of about 3,000 remote endpoints. HISTOR compares each of their published days with its own reads, and ScraperWatch shows the result on its page under "Outside check". The first comparison found a robots.txt parsing limit on their side and a handshake regression on HISTOR's; both were fixed the same day.

scraperwatch.com/mcp-changes
/datasets/peers/scraperwatch/latest

heldfast

An open daily record of the tool definitions of the servers in the official MCP registry. Of the 23,190 servers both logs recorded on 26 October 2026, 21,215 had every field in both; on those, 97.9% of servers and 99.1% of tools were identical byte for byte, and each difference has a stated cause: package versions, read times, failed reads, a first page only, an older protocol.

github.com/rufat325/heldfast
/datasets/interop-digests-2026-10-31

For clients, registries and server authors

Use it

Before your agent trusts a server, send the tools it received. The answer is signed by the log's did:key and names the tree head it was given under.

curl -sS https://histor.modelmarket.dev/api/v1/check \
  -H 'Content-Type: application/json' \
  -d '{"endpoint":"https://example.com/mcp","tools":[ …tools/list result… ],"contribute":true}'
# -> {"type":"histor.check/v1","match":"same"|"different"|"previously-observed"|"same-other-revision"|…,
#     "observed":{"unchangedSince":"…","changes":0}, "patternScan":{…}, "signature":{…}}

# Only looking a server up: a GET with its endpoint (writes nothing)
curl -sS "https://histor.modelmarket.dev/api/v1/check?endpoint=https://example.com/mcp"

# README badge for your server
[![MCP tool defs](https://histor.modelmarket.dev/badge/<id>.svg)](https://histor.modelmarket.dev/s/<id>)

# Atom feed of every observed change
https://histor.modelmarket.dev/feed.xml
WARDENchecks definitions at connect
HISTORremembers what was advertised
THEMISadmits at publish
Hublists histor.check@v1
AWRthe signed format

Questions

Is this a marketplace listing?

No. The server list is the log's index: every remote endpoint in the official MCP registry, with what HISTOR could observe about it. Nothing here is for sale and nothing is ranked by quality.

Does HISTOR tell me a server is safe?

No, and it never will. It tells you what a server advertised, whether that changed, and which published patterns matched the text. Whether to trust the server is your decision — HISTOR makes sure you decide on the same facts as everyone else.

Why are so many servers "not observed"?

Most remote MCP endpoints require a login (they answer 401 to anyone without a key), some use the legacy SSE transport or need per-user values in the URL, and some are simply down. They stay on the list with the reason, so the numbers never hide them.

How do I check a server I already use?

Open the Check tab, paste the server's endpoint and the tools/list result your client received, and press Check. You get back, signed, whether HISTOR observed the same definitions — or different ones, or an older set.

What does HISTOR record when a tool definition changes?

HISTOR records tool names, descriptions and input schemas from tools/list, plus any output schemas the server returns. Each change compares the newly observed list with the previous list from the same server. A full diff shows tools added or removed, word-level edits to descriptions, and old and new schema values at the JSON paths that changed. If either observation has only names, the diff is limited to names. HISTOR tracks annotations such as readOnlyHint separately when it captures them.

Browse observed changes · Example diff (JSON) · Original question on DEV

How do I get a badge for my server?

Find your endpoint on the Servers tab, open it, and copy the Markdown snippet under the facts. The badge shows the date your definitions were pinned or last changed, and links to the full history.

Why should I trust HISTOR itself?

You do not have to. Every label and every tree head is signed with one published key; the Log tab proves in your browser that the log only grew; and the command-line auditor does the same from any machine. What remains is that one operator runs it today — a second, independent observer is the next step.

What does it cost?

Looking things up, the badges, the feed and /check are free. HISTOR also offers histor.check@v1 to the AIMarket Hub, so agents can reach it through the market.

I run an MCP server. What does HISTOR send it, and how do I opt out?

Every 6 hours, and every 30 minutes for a week once its tools have changed twice in a week. First it reads /robots.txt (RFC 9309, product token histor, about once a day per site): a path that file does not allow HISTOR is not read, and its page here says so. Otherwise server/discover and tools/list (MCP 2026-07-28), or, for a server without that, initialize, notifications/initialized and tools/list — never a tool call, never a redirect followed on the MCP path, at most two connections per host, from a User-Agent that starts with histor/. To keep HISTOR out, disallow your MCP path for User-agent: histor (or for all crawlers); to let HISTOR alone in, add User-agent: histor with an Allow line for that path. An issue on the histor repository with your endpoint or host also works: it is then listed as not observed (operator-opt-out), with the reason, rather than silently dropped. Labels already in the log stay: the log only grows.