# Repository Briefing: openai/mcpfs
> Source: https://repoforai.com/repo/openai/mcpfs (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/openai/mcpfs
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A (76/100 · Maintenance 35/35 · Adoption 10/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 150 ★ total (+48 24h / +48 7d) · 10 forks
- **When to Use**: Best for: Linux developers testing shell or coding-agent workflows that consume trusted MCP resources, skills and tools on a host or in a VM. Skip if: You need production support, live catalog updates, per-user upstream authorization, or a non-Linux mount.

## Overview
```text
### Architecture & Core Mechanics
mcpfs is a client-side filesystem adapter for existing MCP servers. It presents a shared read-only VFS through `mcpfs-fusefs` on a Linux host or `mcpfs-virtiofs` over vhost-user queues to a Linux guest. `mcpfs-vfs` owns sessions, namespace construction, caches and open handles. The common `mcpfs` helper and `mcpfs-ioctl` crate implement the invocation path shared by both adapters. The Rust 2024 workspace lists `rmcp` pinned to `3.6.0`, plus Tokio, `serde_json` and `sha2` among its shared dependencies.

Reading a generated Bash tool script reveals its help and schemas without calling the tool. Execution passes arguments to the helper, which builds a JSON object and opens the script read-only. The daemon identifies the tool by inode; `APPEND`, `RUN` and `NEXT` ioctls transfer arguments and results in fixed-size frames, with independent state for each open. Tool calls and resource fetches run outside the FUSE dispatcher, so a pending MCP request does not block directory listings, metadata lookups or reads from already-open files.

### Key Capabilities & Differentiators
The adapter connects over Streamable HTTP, including request-scoped SSE, or launches a local stdio server directly from its argument vector. A multi-server mount exposes both named server roots and merged `tools/`, `resources/` and `skills/` views, prefixing colliding entries with the server name. Catalog search runs locally against advertised names and descriptions. Resources expose UTF-8 text, decoded blobs or multipart JSON. The MCP Skills extension adds paginated manifests, size and SHA-256 verification on open, and dynamic enumeration through `resources/directory/read` where supported.

Tools take named options or JSON from an argument or stdin. Successful calls prefer `structuredContent`, including explicit `null`; otherwise they return the content array or the verbatim body of a single unannotated text block. Tool and protocol errors produce a nonzero exit status. The content cache holds up to 256 entries and 16 MiB per server for up to 30 seconds, subject to a shorter resource TTL. Completing a tool call clears that server's content cache, while open handles keep their snapshots.

### Trade-offs & Limitations
Compared with a native MCP client, mcpfs lets shell scripts and file-oriented applications use MCP without implementing the protocol. In return, deployment depends on Linux filesystem support, and every server's catalog is processed at mount time. A slow server can delay the entire mount. Search uses the resulting snapshot: content invalidation does not refresh names or tool schemas, so catalog changes require a remount. In virtio-fs guests, `sendfile` may see a resource's initial zero size before attributes refresh; a direct read fetches the bytes.

The read-only label applies to the filesystem, not to upstream tool behavior. A process that can execute mounted tools can act with the backend's MCP credentials. Cancellation starts after five seconds without a response, but a timed-out tool may already have changed remote state. Use only trusted MCP servers and scope mount access accordingly. The virtio-fs backend also has explicit backpressure and memory limits: up to eight deferred opens, eight tool calls, 1,024 open files, 64 MiB of open resource snapshots and a separate 64 MiB for tool input and output per connection.

### Hardware & Deployment Guide
Build on Linux with `cargo build --workspace --locked --release`. The TLS backend requires a C compiler, `pkg-config` and OpenSSL development headers. Local unprivileged mounts need access to `/dev/fuse` and the FUSE 3 `fusermount3` helper; mounted tool scripts need Bash. The FUSE mount runs in the foreground, and the bundled `./examples/fuse-single/run.sh` exercises the path using a local Python fixture. The adapter is self-hosted and can connect to a local stdio process or an upstream HTTP service; it does not require a model runtime or GPU.

For a VM, install `mcpfs` and Bash in the Linux guest, run `mcpfs-virtiofs` on the host with a socket in a private runtime directory, and attach it to a vhost-user virtio-fs device. The QEMU setup uses shared memory, and the guest mounts the share read-only. Each backend daemon serves one VMM connection. Use HTTPS for HTTP bearer authentication and remount after replacing the token. The workspace is version `0.1.0`, is marked `publish = false`, and has no listed GitHub release. Treat it as a source-built developer demo, not a production-ready dependency.
```

## Key Capabilities
```text
- Mount adapters: One Rust VFS serves local Linux FUSE and Linux guests over vhost-user virtio-fs.
- Catalog discovery: Paginated discovery builds a searchable local snapshot; merged namespaces prefix colliding names with the server name.
- Skill integrity: Skill files are non-executable, and advertised SHA-256 digests and sizes are checked on open.
- Shell invocation: Tools accept named options or JSON and use a framed Linux ioctl ABI to exchange input and results.
- Cache semantics: Each server caches up to 256 entries and 16 MiB, with a default maximum lifetime of 30 seconds; open handles retain stable snapshots.
- Guest limits: Each virtio-fs connection allows up to eight deferred opens, eight tool calls and 1,024 open files.
```

## Quick Start / Clone
```bash
cargo build --workspace --locked --release
```
