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:
- libfx sends no
clientInfo.nameof its own. The probe's capture showscanimcp-probe-libfx-host, the name the probe's script gave its client. - The protocol revision is the client's.
@modelcontextprotocol/sdk1.32.2 pins2025-11-25.@modelcontextprotocol/client2.4.0, which the probe used, defaults to theinitializehandshake at2025-11-25and reaches2026-07-28only through itsversionNegotiationoption. - The declared capabilities are the client's. A client constructed without options declares
{}.
What the adapter does itself:
- Lists tools once, across up to 64 pages, and never again. A
tools/list_changednotification has no effect on an existing adapter. - Calls
callToolfor each model tool call and flattens the result to text and images. - Reads the resources and prompts the application names in
options.resourcesandoptions.prompts, once, and returns their text asinstructions. - Does not read the server's
initializeinstructions, tooloutputSchema, annotations, icons or_meta.
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
- sdk/mcp.js, createMcpAdapter, commit
b4502b01,sdk/mcp.js:createMcpAdapter, 2026-11-27 - sdk/types/mcp.d.ts, the McpClient interface, commit
b4502b01,sdk/types/mcp.d.ts:McpClient, 2026-11-27 - sdk/package.json, no dependency fields, commit
b4502b01,sdk/package.json, 2026-11-27 - sdk/README.md, MCP and skills, commit
b4502b01,sdk/README.md:MCP and skills, 2026-11-27 - src/wasm_core_main.zig, allow_acp_mcp, commit
b4502b01,src/wasm_core_main.zig:main, 2026-11-27 - src/napi_core_main.zig, allow_acp_mcp, commit
b4502b01,src/napi_core_main.zig:run, 2026-11-27 - src/acp/sessions.zig, the refusal when MCP is off, commit
b4502b01,src/acp/sessions.zig:handleNewSession, 2026-11-27 - src/main.zig, no MCP host on WebAssembly, commit
b4502b01,src/main.zig:init, 2026-11-27 - sdk/NAPI.md, capability profile, commit
b4502b01,sdk/NAPI.md:Capability profile, 2026-11-27 - @modelcontextprotocol/sdk 1.32.2, protocol version constants,
dist/esm/types.js, 2026-11-16 - @modelcontextprotocol/client 2.4.0, the default negotiation mode,
dist/public-CvV4ZHkX.mjs, 2026-11-16