frame-mcp
v0.3.0MCP server for the Frame security scanner: scan, verify, fix, exploit, packs and separation logic.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan
Scan a file or directory for security vulnerabilities with Frame. Runs taint analysis plus separation logic verification and returns the findings as JSON. Set ``ai=True`` to add the LLM detection and triage layer (needs the FRAME_LLM_* environment variables). ``changed_ref`` scans only files that differ from a git ref; ``files`` restricts the scan to a list of files; ``baseline`` reports only findings absent from a baseline file; ``packs`` loads extra framework packs. ``hunt_authz=True`` adds the agentic authorization hunt (IDOR, missing authorization, privilege…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
ai | boolean | |
baseline | ||
changed_ref | ||
fail_on | string | |
files | ||
hunt_authz | boolean | |
language | ||
min_severity | ||
no_cross_file | boolean | |
packs | ||
root |
write_baseline
Scan ``path`` and record the findings as a baseline file. Writes ``baseline_file`` to disk (creating or overwriting it) and uses ``--fail-on none`` so the current state is accepted. Later scans can pass this file as ``baseline`` to report only new findings.
| Parameter | Type | Description |
|---|---|---|
baseline_file * | string | |
path * | string |
verify
Re-scan the files behind earlier findings and report their status. ``findings_json`` is the JSON produced by ``scan`` (a JSON string or the parsed object). Each finding comes back as fixed, file_removed, present, suppressed, uncertain or unverifiable. Pass ``ids`` (finding fingerprints) to check only specific findings. This tool does not modify any files.
| Parameter | Type | Description |
|---|---|---|
findings_json * | ||
ids |
fix
Generate and verify fixes for scan findings. By default this returns a unified diff and does not touch any files. Set ``in_place=True`` to write the patches to the source files. Each patch is verified by re-scanning the patched code. This tool needs the FRAME_LLM_* environment variables (FRAME_LLM_BASE_URL, FRAME_LLM_MODEL, and an API key when the endpoint requires one).
| Parameter | Type | Description |
|---|---|---|
findings_json * | ||
path * | string | |
in_place | boolean |
exploit
Drive an LLM agent to exploit a live target. Authorized use only. Run this only against systems you own or are explicitly authorized to test. ``target`` is a URL such as http://app:8080. Optionally prime the agent with ``findings_json`` from ``scan``, a plain-language ``goal``, a ``success_check`` shell command (exit 0 means solved), and ``max_steps``. Needs the FRAME_LLM_* environment variables.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
findings_json | ||
goal | ||
max_steps | ||
success_check |
packs_list
List the framework packs a scan would load. Packs teach Frame a framework's sources, sinks, sanitizers and entry points. Pass ``path`` to include a project directory's .frame/packs.
| Parameter | Type | Description |
|---|---|---|
path |
packs_check
Validate one or more framework pack .toml files or directories.
| Parameter | Type | Description |
|---|---|---|
files * | array |
solve
Check whether a separation logic entailment ``P |- Q`` is valid. Example entailment: ``x |-> 5 |- x |-> 5``. Set ``model=True`` to return a countermodel when the entailment is invalid.
| Parameter | Type | Description |
|---|---|---|
entailment * | string | |
model | boolean |
engine_handlers
Every entry point (route handler) Frame finds in the project at ``path``: name, file, line, whether an authorization gate or the caller's identity protects it, whether it reaches a resource / database, and the sink kinds it reaches. The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
language | ||
packs |
engine_handler_facts
Facts for one handler or function ``name`` (``file`` picks among same-named ones): protection, resource reach, sinks, decorators, parameters, the engine's own findings in its range, and its source. The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | |
file | ||
language | ||
packs |
engine_siblings
The handlers of the same class or file as ``name``, each with its gate and the conditions that hold at its data accesses: a sibling that checks what this one does not is the usual missing-authorization signal. The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | |
file | ||
language | ||
packs |
engine_trace
The engine's source-to-sink flows inside ``name``, each with its CWE and evidence level (solver-verified, data-flow, matched). A flow is listed where its sink is. The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | |
file | ||
language | ||
packs |
engine_callers
Every call of ``name`` across the project, with the caller, file, line and the call's line of code. Matched by simple name, not by type. The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | |
language | ||
packs |
engine_callees
The calls ``name`` makes, each with its line of code and where the callee is defined in the project (several definitions = ambiguous; library calls have none). The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | |
file | ||
language | ||
packs |
engine_guards
The branch conditions, authorization-gate decorators and identity scoping that hold on every feasible path to ``line`` in ``name`` (without ``line``: its data-access lines). The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (how a name became a function), its `limits`, the `index` it was computed over and `query_ms`.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
path * | string | |
file | ||
language | ||
line | ||
packs |
engine_check
Decide a claim about ``line`` in ``name``. ``kind`` is ``guarded_by`` (every feasible path passes a condition or gate matching ``pattern``) or ``scoped_by_identity`` (the resource operation there is filtered by the caller's identity). The verdict is ``proved``, ``refuted`` with a witness path, or ``unknown`` when the engine has no facts. The first call on a project translates it (seconds to minutes on a large one); later calls answer from memory and the index rebuilds by itself when a source file changes. Every answer carries `result`, the `evidence` it rests on, the `resolution` (…
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
line * | integer | |
name * | string | |
path * | string | |
file | ||
language | ||
packs | ||
pattern |