Repository navigation
Available MCP Actions
Everything clif mcp exposes: tools (called with tools/call), resources (read with
resources/read) and prompts (fetched with prompts/get). Which tools appear depends on the flags the
server was started with; see MCP Server Integration.
| Tool | Group | Needs | Purpose |
|---|---|---|---|
explore |
Context | — | One-shot lookup: symbol metadata, source, callers, callees, blast radius |
find_unresolved_calls |
Source | — | What clif unresolved reports |
explain_call |
Source | — (removed by --no-explain) |
Why one call site resolved or not |
find_references |
Source | — | What clif refs reports |
get_outline |
Source | — | A file's component, properties and function signatures |
get_type_hierarchy |
Source | — | Supertypes and subtypes of a CFC |
lookup_docs |
Source | — | Built-in CFML tag/function docs |
check_structure |
Source | — | Tag-structure errors |
resolve_route |
Source |
routes in .clif.json
|
Route → controller methods and views |
check_format |
Source | — | Would clif format change these files? |
lint |
Source | --allow-lint |
CFLint findings |
search_symbols |
Map | --db |
Find node ids by name, path, component |
get_symbol |
Map | --db |
Full detail for one node |
get_callers |
Map | --db |
What depends on a node |
get_callees |
Map | --db |
What a node depends on |
find_path |
Map | --db |
Shortest dependency chain between two nodes |
impact_analysis |
Map | --db |
Transitive blast radius of a change |
list_islands |
Map | --db |
Disconnected pieces of the graph |
list_orphans |
Map | --db |
Unreferenced, unreachable nodes |
get_stats |
Map | --db |
Map counts and resolution ratio |
| Convention | Detail |
|---|---|
paths |
Array of files or directories, absolute or relative to the server's working directory. The .clif.json above the first one decides how calls resolve |
Node id
|
A function is "<file>::<lowercased name>" (e.g. "packages/tass/core/user.cfc::checkpermslist"); a file is its path relative to the map root. Get ids from search_symbols rather than guessing |
limit |
Caps a list; source tools default to 200 unless stated, and return total and truncated alongside so a short answer can be told from a cut one |
| Lines | 1-based everywhere in MCP (unlike LSP) |
| Errors |
missing required argument: <name>, unknown tool "<name>", or a "needs a code map" message for map tools without --db
|
One-shot context lookup for a symbol name, node id or file path, avoiding multi-step search/read round-trips. Offered when a code map is loaded or a live index is available.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query |
string | Yes | — | Symbol name, node id (e.g. "svc.cfc::getuser"), or file path |
depth |
integer | No |
2 (max 10) |
Transitive blast-radius depth (with a code map) |
max_symbols |
integer | No |
3 (max 10) |
Matching symbols to expand |
include_source |
boolean | No | true |
Include verbatim line-numbered source snippets |
{ "name": "explore", "arguments": { "query": "checkPermsList", "depth": 2 } }
Result (with a code map; abridged):
{
"query": "checkPermsList",
"mode": "codemap",
"count": 1,
"results": [
{
"symbol": { "id": "packages/tass/core/user.cfc::checkpermslist", "kind": "function", "file": "packages/tass/core/user.cfc", "line": 212 },
"callers": [ "…up to 25…" ],
"callees": [ "…up to 25…" ],
"impact": { "maxDepth": 2, "totalImpacted": 48, "affectedFiles": [ "…" ], "entryPoints": [ "…" ], "nodes": [ "…up to 20…" ] },
"source": "212: public boolean function checkPermsList( required string perms ) {\n213: …"
}
]
}
These read source on disk and need no map.
Every component or method call under the paths that does not resolve. Indexes the workspace on every call, which takes seconds on a large one.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
paths |
string[] | Yes | — | Files or directories |
global_defs |
boolean | No | false |
Accept a bare call to a function any indexed file declares |
limit |
integer | No | 200 |
Maximum calls listed |
{ "name": "find_unresolved_calls", "arguments": { "paths": ["packages/shop"], "limit": 50 } }
Each call has the fields of clif unresolved --json (file, line,
caller, variable, function, reason, text, …), with count, total and truncated.
Traces how a call site's receiver was typed and why the method check passed or failed, naming the exact
componentResolver that fired. Re-parses the file, so it reflects what is on disk now.
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
string | Yes | CFML file |
line |
integer | Yes | 1-based line of the call site |
match |
string | No | Substring to pick one call on that line |
{ "name": "explain_call", "arguments": { "file": "packages/shop/service.cfc", "line": 120, "match": "getOrder" } }
{ "explanation": "…step-by-step trace, ending in what `unresolved` does with the call…" }
Every reference under the paths to a component (dot-path) or function (bare name), with whether each resolved to it.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
target |
string | Yes | — | e.g. "packages.finance.service" or "getReport"
|
paths |
string[] | Yes | — | Files or directories |
limit |
integer | No | 200 |
Maximum references listed |
{ "name": "find_references", "arguments": { "target": "getReport", "paths": ["."] } }
A file's component declaration (extends, accessors, persistent), properties, and function signatures with 1-based lines. Parses only that file; much faster than reading a large CFC.
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
string | Yes | CFML file |
{ "name": "get_outline", "arguments": { "file": "models/User.cfc" } }
The extends ancestor chain (supertypes) and the workspace components extending a CFC (subtypes), from the
live index.
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
string | Yes | CFC file |
{ "name": "get_type_hierarchy", "arguments": { "file": "models/BaseEntity.cfc" } }
Built-in CFML tag, function and member-function documentation embedded in clif. Pass name or query.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name |
string | One of | — | Exact entry: "arrayMap", "cfquery", "array.map"
|
query |
string | One of | — | Substring search across names and descriptions |
kind |
string | No | all |
function, tag or member
|
limit |
integer | No | 25 |
Maximum search results |
{ "name": "lookup_docs", "arguments": { "name": "cfqueryparam" } }
{ "name": "lookup_docs", "arguments": { "query": "struct", "kind": "member", "limit": 10 } }
Structural errors without running the linter: unclosed or mismatched tags, misplaced
<cfcatch>/<cfelse>, duplicate attributes, duplicate function arguments.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
paths |
string[] | Yes | — | Files or directories |
limit |
integer | No | 200 |
Maximum problems listed |
{ "name": "check_structure", "arguments": { "paths": ["views/"] } }
Resolves a route string against the workspace's routes configuration. Same result
shape as the clif.resolveRoute LSP command.
| Parameter | Type | Required | Description |
|---|---|---|---|
route |
string | Yes | e.g. "admin.users.edit"
|
{ "name": "resolve_route", "arguments": { "route": "admin.users.edit" } }
Whether files would change under clif format, without writing anything.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
paths |
string[] | Yes | — | Files or directories |
include_diff |
boolean | No |
false (on automatically for a single file) |
Include a line-diff preview for changed files |
limit |
integer | No | 50 |
Maximum changed/errored files listed |
{ "name": "check_format", "arguments": { "paths": ["handlers/Main.cfc"] } }
Runs CFLint and returns findings: path, line, column, severity, rule and message. linting.minSeverity
sets the least severe level reported. Writes no report. Offered only with --allow-lint.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
paths |
string[] | Yes | — | Files or directories |
limit |
integer | No | 200 |
Maximum findings listed |
{ "name": "lint", "arguments": { "paths": ["models/User.cfc"] } }
Some rules (
MISSING_VAR,IMPLICIT_SCOPE) report once per name per run, so lint one file to see all of its findings.
Offered when started with --db <file> (built by clif graph --db).
Start here: every other map tool takes a node id. A blank query with filters set lists by the filters
alone.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query |
string | No | — | Substring of name, file or component ("perms" finds checkPermsList) |
kind |
string | No | all |
function, file, package, external
|
file |
string | No | — | Path prefix |
island |
integer | No | — | One connected component |
only_unreachable |
boolean | No | false |
Only nodes no entry point reaches (deletion candidates, not proof) |
sort_by_fan_in |
boolean | No | false |
Most-depended-on first, instead of by name |
limit |
integer | No | 50 |
Maximum results |
{ "name": "search_symbols", "arguments": { "file": "packages/tass/", "kind": "function", "only_unreachable": true } }
{ "symbols": [ { "id": "packages/tass/legacy.cfc::oldexport", "kind": "function", "file": "packages/tass/legacy.cfc", "line": 88 } ], "count": 1 }
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Node id |
Returns file, line, access, island, and how many things depend on the node.
What depends on a node, and how (calls, instantiates, extends, includes). An empty result on a function that clearly runs usually means the call went through a receiver the resolver could not type.
| Parameter | Type | Required | Default |
|---|---|---|---|
id |
string | Yes | — |
limit |
integer | No | 200 |
{ "name": "get_callers", "arguments": { "id": "packages/tass/core/user.cfc::checkpermslist" } }
What a node calls, instantiates, extends or includes. Same parameters as get_callers.
The shortest dependency chain from one node to another.
| Parameter | Type | Required | Default |
|---|---|---|---|
from |
string | Yes | — |
to |
string | Yes | — |
max_depth |
integer | No | 12 |
{ "name": "find_path", "arguments": { "from": "webroot/index.cfm", "to": "packages/tass/core/user.cfc::checkpermslist" } }
{ "found": true, "hops": 3, "path": [ "webroot/index.cfm", "…", "packages/tass/core/user.cfc::checkpermslist" ] }
When none is found:
{ "found": false, "note": "No dependency path within the depth limit. That can mean there is none, or that a call on the way resolved to nothing — check get_stats." }
Walks the reverse dependency graph to show everything transitively affected by changing a node: affected files, entry points reached, and impacted callers ordered by hop distance.
| Parameter | Type | Required | Default |
|---|---|---|---|
id |
string | Yes | — |
max_depth |
integer | No |
4 (max 10) |
limit |
integer | No | 100 |
{ "name": "impact_analysis", "arguments": { "id": "models/user.cfc::save", "max_depth": 3 } }
The disconnected pieces of the graph, largest first. The biggest is the application; the rest are detached subsystems, either dead or reached through a call the resolver could not follow.
| Parameter | Type | Required | Default |
|---|---|---|---|
detached_only |
boolean | No | false |
limit |
integer | No | 50 |
Nodes nothing depends on and no entry point reaches. Read get_stats alongside.
| Parameter | Type | Required | Default |
|---|---|---|---|
kind |
string | No |
function or file
|
limit |
integer | No | 50 |
Counts for the whole map, including how many call sites resolved. No parameters. With --watch, returns
{ "stats": …, "watch": … } including the sync status.
{ "name": "get_stats", "arguments": {} }
| URI | Name | Available when | Contents (application/json) |
|---|---|---|---|
clif://config |
Workspace configuration | A workspace config is loaded | Resolved .clif.json settings: mappings, frameworks, resolvers, routes |
clif://stats |
Code map statistics | --db |
Same as get_stats
|
clif://islands |
Code map islands | --db |
Top 50 islands, as list_islands
|
{"jsonrpc":"2.0","id":5,"method":"resources/read","params":{"uri":"clif://config"}}
{ "jsonrpc": "2.0", "id": 5, "result": { "contents": [ { "uri": "clif://config", "mimeType": "application/json", "text": "{ … }" } ] } }
Errors: resource clif://stats needs a code map (--db), unknown resource URI "<uri>".
Ready-made workflows a client can offer as slash commands. Each returns one user message describing the
tool calls to make.
| Prompt | Arguments | Workflow |
|---|---|---|
audit-unresolved |
path (optional, default .) |
find_unresolved_calls on the path → group by root cause (missing base, untyped receiver, missing method) → explain_call on 3–5 representative sites → suggest minimal .clif.json or code fixes |
trace-impact |
symbol (required): function name, dot-path or node id |
explore → impact_analysis and get_stats with a map, else find_references and get_type_hierarchy → summarise affected entry points, files and unresolved risk |
review-file |
file (required) |
get_outline → check_structure, check_format, find_unresolved_calls → report structural errors, unresolved calls, formatting diffs |
{"jsonrpc":"2.0","id":6,"method":"prompts/get","params":{"name":"review-file","arguments":{"file":"handlers/Main.cfc"}}}
{
"jsonrpc": "2.0",
"id": 6,
"result": {
"description": "Review CFML file",
"messages": [
{
"role": "user",
"content": {
"type": "text",
"text": "Review the CFML file \"handlers/Main.cfc\" without modifying it:\n1. Call get_outline on \"handlers/Main.cfc\" to inspect its structure and signatures.\n2. Call check_structure, check_format, and find_unresolved_calls on [\"handlers/Main.cfc\"].\n3. Report structural errors, unresolved calls, formatting diffs, and any suspicious patterns."
}
}
]
}
}
Arguments longer than 512 bytes or containing control characters are rejected.