Fuse
Reference

API surfaces

Map each user intent to the MCP tool, CLI command, and host RPC method that answer it.

Fuse exposes the same warm semantic engine through three local surfaces: nine MCP tools for coding agents (fuse mcp serve), one-shot CLI commands for shells and scripts, and JSON-RPC methods on fuse host for ambient-verification hooks and future local clients. This page maps user intents across those surfaces so integrators do not have to learn three parallel catalogs.

For MCP parameter defaults see Tools reference. For CLI flags see Commands reference. For transport security and trust boundaries on the host pipe see Host RPC threat model.

Choosing a surface

SurfaceTransportTypical caller
MCP toolsstdio to the parent MCP clientCursor, Claude Code, Copilot, or any MCP-compatible agent
CLI commandsIn-process shell invocationHumans, CI scripts, Claude Code hooks
Host RPCNamed pipe (Windows) or Unix domain socketfuse check --delta, fuse gate, shared daemon clients

Agents should prefer MCP. Hooks and editor integrations that need a warm resident compilation without spawning an MCP server use host RPC. One-shot exploration and scripting use the CLI.

Intent map

The table lists the canonical entry point per intent. A cell marked "none" means that surface has no dedicated command for that intent; use the MCP or CLI column instead. Deprecated CLI aliases remain for scripts; prefer the canonical command in new work.

IntentMCP toolCLI commandHost RPCNotes
Workspace status and index freshnessfuse_workspace (action=status)fuse diagnostics [path]noneFast read of index_meta only; does not create .fuse/fuse.db on a cold workspace
Build or refresh the indexfuse_workspace (action=index)fuse index [path]fuse/indexMCP read tools also build on first use via fuse/openIndexed when the daemon is active
Workspace map (symbols, routes, counts)fuse_workspace (action=map)fuse map [path]fuse/graphHost graph adds dependency edges and optional scope overlay
Semantic load diagnosisfuse_workspace (action=doctor)fuse doctor [path]fuse/doctorActively loads through the daemon-held MSBuild solution when available; explains per-project downgrade
Apply a verified single-file editfuse_workspace (action=apply)nonenoneThe one explicit server tree-write path; dry run unless write=true
Task localization (rank candidate files)fuse_find (kind=task)fuse find <query> --kind taskfuse/scope (mode=search), fuse/graph (scopeMode=search), fuse/openIndexedDeprecated alias: fuse localize [path] --task "..."
Wiring resolution (service, request, route, config)fuse_find (kind=service|request|route|config)fuse find <query> --kind service (etc.)noneDeprecated alias: fuse resolve [path] --service ... (and --request, --route, --config, --symbol)
Exact symbol, path, or text lookupfuse_find (kind=symbol|path|text|all)fuse find <query> [--kind symbol|path|text|all]none
Symbol exact signaturefuse_find (kind=signatures)nonenoneResident workspace (FUSE_RESIDENT=1) answers from compiler metadata when qualified
Symbol callers and implementersfuse_find (kind=neighbors)nonenone
Emit scoped, reduced contextfuse_contextfuse context [path]fuse/scope, fuse/explainfuse/explain is plan-only; fuse/scope writes a temp payload file
Review a change since a git basefuse_reviewfuse review [path]fuse/scope (mode=changes), fuse/graph (scopeMode=changes)
Blast radius before editingfuse_impactfuse impact <symbol>nonePackage-upgrade mode: fuse impact --package ... --from-version ... --to-version ...
Typecheck a proposed single-file editfuse_checknone (use MCP)fuse/checkOverlayOverlay path needs a resident workspace on the daemon
Session diagnostics delta (ambient verification)nonefuse check --delta [--fast]fuse/checkNever runs a build; silent when no host serves the root
Block turn while session has introduced errorsnonefuse gatefuse/checkExit nonzero when introduced errors remain unresolved
Run covering tests for a symbolfuse_testfuse test <symbol>noneCandidate racing (candidates JSON) is MCP-only
Compiler-executed refactor (staged diff)fuse_refactornonenoneReturns a verified diff or abstains; apply with fuse_workspace action=apply
Compact known files or raw contentfuse_reducefuse reducenoneOut-of-loop utility; does not walk the index
Host process healthnonenonefuse/statsProcess id, uptime, working-set size
Host compatibility handshakenonenonefuse/handshakeReturns protocol version and session token
Context diagnostics (secrets, hotspots, gaps)nonenonefuse/diagnosticsNot the same as fuse diagnostics CLI (index state)
Stop the host daemonnonenonefuse/shutdown

Deprecated CLI aliases

These commands predate the fuse_find union. They remain for existing scripts; new agent instructions should call fuse_find or fuse find with the matching kind.

Deprecated commandCanonical replacement
fuse localize [path] --task "..."fuse find "..." --kind task or MCP fuse_find with kind=task
fuse resolve [path] --service IOrderServicefuse find IOrderService --kind service or MCP fuse_find with kind=service
fuse resolve [path] --request CreateOrderCommandfuse find CreateOrderCommand --kind request
fuse resolve [path] --route "POST /api/orders"fuse find "POST /api/orders" --kind route
fuse resolve [path] --config Ordersfuse find Orders --kind config
fuse resolve [path] --symbol OrderServicefuse find OrderService --kind symbol

Surface registry

ApiSurfacesDocParityTests in the repository reflects every shipped MCP tool name and host RPC request method against this table. Add a row here when a new tool or RPC method ships.

SurfaceIdentifier
mcpfuse_workspace
mcpfuse_find
mcpfuse_context
mcpfuse_impact
mcpfuse_check
mcpfuse_test
mcpfuse_refactor
mcpfuse_review
mcpfuse_reduce
rpcfuse/handshake
rpcfuse/stats
rpcfuse/index
rpcfuse/openIndexed
rpcfuse/graph
rpcfuse/scope
rpcfuse/explain
rpcfuse/diagnostics
rpcfuse/check
rpcfuse/checkOverlay
rpcfuse/checkCapture
rpcfuse/doctor
rpcfuse/refactor
rpcfuse/shutdown

On this page