js/commands/mcp

js/commands/mcp.ts

fino:commands/mcp — serve the workspace tools to an MCP client over stdio.

fino mcp lets an MCP-compatible client — an editor, a desktop assistant, another agent — use fino:ai/tools against one directory. It is a thin binding: createWorkspaceTools() mounted on mcpServer() and served over this process's stdin and stdout with streamTransport(). There is no second server implementation behind it.

Boundaries

stdout carries protocol traffic only. The command exits when the client closes stdin or the process is interrupted.

fino mcp --root ~/src/project
fino mcp --read-only

Constants

const command

Serve the workspace tool set over MCP stdio until the client disconnects.