libfx has no MCP client and no SDK dependency, and wraps a client the application supplies

Kind: idiosyncrasy · Status: current · Last verified: 2026-11-27 · Clients: libfx, fx · Revisions: 2025-11-25

The probe registry records libfx's SDK as "host-supplied". At c3dc80c4 that means the following.

libfx does not depend on an MCP SDK. sdk/package.json has no dependencies, devDependencies or peerDependencies field. The published libfx 0.0.17 lists four @libfx/libfx-* native-addon packages as optionalDependencies and nothing else.

libfx takes a client instance from the application. createMcpAdapter(client, options) in sdk/mcp.js throws unless client.listTools and client.callTool are functions, and otherwise accepts any object. sdk/types/mcp.d.ts describes the shape as "The parts of an MCP client the adapter calls, with the MCP TypeScript SDK v1 signatures", and adds "Transport, authentication, elicitation, and cleanup stay with the host." The README says "libfx doesn't own the MCP connection. You create the client, handle its auth and close it after the agent." The repo's own adapter test passes a hand-written JSON-RPC object, and no SDK client appears anywhere under sdk/.

libfx does not reuse fx's engine. The libfx core is the same Zig agent core as fx, built as a native addon and as WebAssembly, and both entry points set allow_acp_mcp = false. A session that names MCP servers is refused with "MCP servers are unavailable in this runtime". On a WebAssembly target src/main.zig passes no MCP host loader. So the two entries share no MCP client code. fx's client is src/mcp/, and libfx's MCP surface is sdk/mcp.js, 130 lines.

The repo has no third MCP client. fx mcp call is a Unix-socket bridge from a shell command to the running session's engine. Servers an ACP editor supplies are parsed into the same engine.

What this means for the registry row:

What the adapter does itself:

The registry schema has no value for an SDK that is expected and not installed. The entry names @modelcontextprotocol/sdk in speaksMcpVia and metadata.sdk with no declared or resolved version.

Sources