Remix.run Logo
▲ OpenAI mcpfs: MCP Filesystem Tools(github.com)
95 points by tosh 8 hours ago | 49 comments
▲jadar 5 minutes ago | parent | next [-]

One of my big frustrations with MCP is that, to my knowledge, inputs mostly come from model tokens. So if you intend to upload a new page to Confluence, for example, all of those bytes have to come through the model even it there is something on disk already.

▲mands 2 hours ago | parent | prev | next [-]

I'm not sure a model has a better grip on calling bash than making tool calls in general. I could see it helping with cache and context, but tool search solves that as well.

I think the big win would be saving all results to the FS as json, so not everything has to go to back to the model, and instead the you can run bash, jq, python etc on the results - providing something similar to code mode (though I'm not sure if mcpfs here does that).

▲sayanarijit 5 hours ago | parent | prev | next [-]

Similar but for OpenAPI:

https://github.com/scottvr/apifusefs

https://github.com/freyamade/openapi-fs

▲oa335 6 hours ago | parent | prev | next [-]

I perused the readme, but still don't understand the utility of this, could someone please explain?

▲solarkraft 5 hours ago | parent | next [-]

Modern AI models are intensely trained to work with file system ergonomics. This is an experiment to see how far they can take this primitive.

▲pitched 34 minutes ago | parent | next [-]

So it’s like Plan 9, basically?

▲varispeed 5 hours ago | parent | prev [-]

Primitive for what?

▲riedel 5 hours ago | parent | next [-]

https://plan9.io/sys/doc/names.html

▲AmazingTurtle 5 hours ago | parent | prev | next [-]

MCP tools and resources etc. mapped to a filesystem, so that a model can pipe a request into a file and read an output back via stdout/stderr etc.

▲Spivak 4 hours ago | parent [-]

It's even better than that, tools are represented as executables like any other binary on your system.

▲materielle 5 hours ago | parent | prev [-]

AI bro jargon is so annoying.

From what I can discern, it’s a standardized approach to expose the local filesystem on a remote MCP server.

So on my machine, I communicate to your company’s MCP server over the network. That MCP server, on your company’s machines, can expose its local final system. It could do that before. But this proposes a specific protocol and set of tooling to standardize around.

Still, it’s not entirely clear what the intended usage is. But this is coming from someone who thinks MCP itself is a useless hype machine, since agents know how to call APIs.

▲jwolfe 4 hours ago | parent | next [-]

I think you have it backwards. It's not MCPs exposing their filesystems, it's exposing MCPs via the filesystem. You can ls and grep your MCP's documentation as if they were files, and invoke the APIs as if they were scripts within the directory.

▲mbreese 3 hours ago | parent [-]

This is how I read it - it’s a filesystem interface to MCP tools. It is not an MCP interface to a filesystem.

(Unless your MCP server is itself exposing a filesystem, but at that point, we’re in turtles all the way down land).

▲9dev 5 hours ago | parent | prev [-]

It depends. To me, MCP is mostly a self-documenting API tailored toward agents, exposing tools that sit between “web UI for humans with a browser” and “arbitrary (third-Party) integration invoked by a machine”. For example, my web app might have a create thing form that fetches suggestions for the name, and redirects you to a page to set up adjacent thing after submission. The API has endpoints for these operations as atomic building blocks; the MCP has a convenience tool that comes with a few suggestions and allows to create both on one swoop. This is a contrived example, but there are use cases for this if you go beyond MCP as a purely developer tooling centric specification.

▲dofm 4 hours ago | parent | prev | next [-]

It seems that they are suggesting that the MCP “interface”, such as it really exists, would have a FUSE type file system on top, and thus agents who already know how to work with file systems and commands don’t necessarily need new tools to do new tasks.

A cheaper form of tool autodiscovery?

The thing I don’t really get here is what is the remaining purpose of the MCP protocol in this situation. That is really form-follows-function stuff. Why not cut it out of the loop? Or is this just an intermediate step on the way to doing so?

▲falcor84 3 hours ago | parent | next [-]

MCP has evolved to have a very decent auth story now, to the extent where I'd actually be open to using it to approve my AIs' access to fs partitions in general.

Edit: typo

▲politician 3 hours ago | parent | prev [-]

This would be welcome as it greatly simplifies the creation of custom sandboxes that models ‘know’ how to use. Right now the most well ‘known’ API is bash.

▲ramigb 4 hours ago | parent | prev | next [-]

For me personally, this is super exciting because it allows MCP servers for local applications to expose a much larger number of tools without filling the context window upfront. There are already several techniques for reducing the context overhead of large tool libraries, but in my opinion, this is a much cleaner and more elegant architectural approach.

▲unitedfirmware 3 hours ago | parent [-]

That hasn't been a problem for quite some time. MCP hosts effectively manage tool selection and don't cram all of the tools into context.

▲dofm 3 hours ago | parent [-]

On demand tool discovery does most of this I suppose.

But (it seems to me as a relative novice that) this approach has another advantage, which is not needing "code mode" to combine tools; the model can do it with bash scripts, python scripts, whatever it is already working with, and doesn't need that semantic layer of indirection to redesign the tools?

Indeed at a certain level it doesn't even need to know it has tools; if they can be mounted into the project directory as a filesystem, the model can discover them as it would files.

So this ends up being like setting up a virtual machine environment by installing tools, except they are projected into the environment from the outside.

▲unitedfirmware 3 hours ago | parent [-]

It would still essentially be code mode if it has to write a bash or python script. You're also going to miss out on the tool descriptions and argument types since the files and directories will be just that, not even command line tools that you can run `-h` on to get more info. I'd still like to play with it though.

▲dofm 2 hours ago | parent [-]

It would be like code mode, but it has some advantages. It can be code in any language on that server, or with any tool, including for example the app the agent is building.

You have to explain to a model what code mode is. It is a layer of indirection. With this, there is no indirection; the model doesn't even need to grapple with the idea of combining declared tools, because there's no boundary between the MCP tool and the filesystem tools. It just does what it does.

No reason at all that the tools should miss out on tool descriptions, though. FUSE can present virtual executables, and they seem to be making use of that?

https://github.com/openai/mcpfs#files-and-names

So in principle if a tool can be projected into the environment and run this way, it can also answer to --help. Which is how they are doing it. And you can have a README or expose the skill file (not sure if I understand how a skill file can be written agnostically, though presumably an AGENTS.md addition can explain how to map the MCP's skill documentation into the filesystem space)

▲hamandcheese 2 hours ago | parent [-]

> though presumably an AGENTS.md addition can explain how to map the MCP's skill documentation into the filesystem space

and now we are back at "You have to explain to a model what [thing] is". I don't see much difference between explaining what code mode is, and explaining how its MCP-over-FUSE environment works.

▲dofm 2 hours ago | parent [-]

I mean to say, the agent does not need to be told how this environment works, in the sense that it just needs to be pointed at what amounts to a bin/ directory and told there are tools in it and it can call --help.

What I meant by the "mapping" thing is that a big library of MCP tools will have some tool documentation that refers to facilities as tools and talks about them in that separate way, whereas for the agent, that has become irrelevant: these are just basically a bin/ directory. So when it encounters the SKILL files, it may possibly need a bridging explanation, because it is no longer making calls to the tools, but calls to a terminal tool that runs commands.

Beyond that bridging, which seems lightweight and surmountable (even just based on the model's ability to interpret language), this feels obviously better than code mode. Not least because it has become "code-" tool-agnostic.

Perhaps I am not explaining myself well, but I think the value of this approach will prove itself over time as others adopt it. It feels like a fully natural fit with Zed or Pi.

▲tyingq 5 hours ago | parent | prev | next [-]

"explore" type subagent isolation without a sandbox maybe?

▲txdv 5 hours ago | parent | prev [-]

my guess is it mcps to a virtual filesystem, the agent accesses the functionality by reading files and folders on a virtual file system?

▲buremba 3 hours ago | parent | prev | next [-]

Can anybody let me understand why someone should prefer mcpfs instead of codemode approach?

mcpfs feels like an obscure implementation and FUSE will cause more latency overhead. Luna/Terra performs better on filesystem but for Sol, it doesn't really make a huge difference as it's clever enough to find the more efficient approach.

As we know models are gonna get better over time, isn't abstractions like this lead to less stability?

▲searealist 3 hours ago | parent | next [-]

Maybe the advantage is it can write python scripts that call these CLIs?

▲dofm 2 hours ago | parent [-]

I have been building a little Mac app. I'd forgotten that Swift can run as a shebang script, until the LLM did it!

Immediately you can see that if the model doesn't have to engage with a "mode", it's going to be able to work with tools more naturally — piping input directly into a command it is testing etc.

Codemode is clever, and it obviously has a much more valuable place where there is no 'code' project being written. But it feels like a bodge. It is a clever bodge.

▲jauntywundrkind 2 hours ago | parent | prev | next [-]

Let me first say, I don't know! But trying to intuit out a reply:

This feels obscure to us, but making everything act like a normal executable on a system flattens, makes interaction consistent. An LLM already knows how to call executables! It can do that via bash tool or codemode very effectively, or both (scripting from within codemode; I have zx in my codemode and it's great!). The ability to pipe data in and out is a well known, clean and concise way to compose. Too few programming languages have great pipe operators, concise short file io and streams standard lib, but in shell these things are very brief and concise.

Being available at the shell level is also compostable in other ways. The ai has to keep writing code mode, again and again, a one off thing it emits for execution. If there's a repetitive task, with mcpfs, it can emit a script and keep calling the script.

Or perhaps the LLM is working more indirectly? What if instead of the LLM doing the work, it's using computer use or using some scripting interface to control another program? The LLM doesn't have a way to hand off its tools to that other program. If it wants kicad to run the auto router tool, it has to do the work. With mcpfs, we can imagine architectures where kicad is the one calling into mcpfs, without the LLM having to act as the data plane across these systems.

In short: codemode is an abstraction bespoke to the LLM. Today, it has no presence on the system (I have some experiments around exposing promises to the system via fuse though). In most harnesses it has no persistence, leaves no trace after execution, is a execute only space that's then disposed of. But mcpfs extends the system itself, forms part of the cohesive persistent whole of the system. It uses what is already known, executables, that can be operated on by a wide variety of existing system tools. CodeMode is powerful, but it remains an internal environment, something for the LLM, that operates in an inner space. Leaving that closed domain and entering into the system domain is both unifying and consistent, and it allows for free composition of tools and systems.

I, for one, at least in concept, love it. I've tapered off, but for a while was using mcp-cli pretty heavily to get similar. It was also a joy having things I could easily reproduce. That I could ask the LLM to show me how to use tools. And then try myself. Being able to get in, to bring myself into the loop more felt like such a humanizing connection to regain, to reclaim, from this space that has arbitrarily been designated LLM only.

This lacks strong argumentation, but, nicely put:

> It is a pleasant sort of 180, that we obsessed with MCP and other myriad harness techniques only to discover that in the end it is the primacy of the unix shell that comes most naturally to LLMs, and so the only thing we should obsess with now is how to appropriately sandbox that latent competency

https://news.ycombinator.com/item?id=50772184

▲mbreese 3 hours ago | parent | prev [-]

I didn’t even think of this as something that an agent would use. I thought of this as an easier way for me to manually call/discover MCP tools. The remote protocol is a bit (ahem) difficult to use manually, so a FUSE interface would be nice for me.

For an agent? No. They already speak MCP, so it wouldn’t make much sense to me.

Am I missing something?

▲jpollock 3 hours ago | parent | prev | next [-]

This might help with bootstrapping costs on servers with a lot of short lived agents.

The mcp docs are cached by the filesystem layer and retrieved once. That would remove the startup, transmit everything over the network cost.

▲BrandiATMuhkuh 2 hours ago | parent | prev | next [-]

That’s cool. Was looking for that last week. I want to share skills and tools via MCP. And the skills have scripts. But sadly that’s not possible. So an agent has to copy the script to the FS first and execute it then.

▲gustavus 5 hours ago | parent | prev | next [-]

Long ago when I was first starting in computing I was asking. my mentor about Perl and he remarked that Grep, Sed and Awk were the only real file manipulation tools one needed.

Almost 20 years later I still find myself agreeing with him.

▲blaaarg123 4 hours ago | parent [-]

the whole llm craze basically invalidated the last 30years of UI'ification of programs. Something I'm really happy about.

▲riedel 5 hours ago | parent | prev | next [-]

Seems like we are rediscovering the ideas behind plan9.

▲trentor 5 hours ago | parent [-]

...in rust.

▲kvuj 5 hours ago | parent [-]

... with a gorillion dependencies too

https://github.com/openai/mcpfs/blob/main/Cargo.lock

Can anyone familiar explain how can you evaluate which dependencies are safe to use? I remember someone explaining that certain high quality projects were considered trusted enough, but from a quick glance, it seems really hard to check.

For example, the maintainer of endian-type is https://github.com/Lolirofle and has commited very few times this year. The code of the crate is minuscule. Why isn't it in the stdlib?

▲cmrdporcupine 5 hours ago | parent | next [-]

Yep, this is the NPM/Node disease that spread to Rust early in its history and it's really problematic. Very strong impulse to just pull in as many crates as you can to do little bits that should just be stdlib etc. (And additionally is crates.io is a wilderness of unmoderated deps and bottomless dependency trees.)

IMHO this is an anti-pattern that junior engineers fall into. You embrace this style of development because it lets you move fast and borrow others work... until it burns you badly in the ass with licensing, conflicts, security, etc etc and then you're stuck untangling the mess.

I love Rust the language. I do not like Cargo or Crates.io.

For your specific question, you could look at cargo deny (https://github.com/EmbarkStudios/cargo-deny) which lets you set up rules to lint deps. But this is mostly about security and licensing. I'd like something that was more about "reputation" and "cleanliness"

▲kvuj 5 hours ago | parent [-]

Wow that security check seems really useful!

▲cmrdporcupine 5 hours ago | parent [-]

I have CI jobs set up with that for my projects and with everything going on in the last few months it's been a couple advisories a week, just constantly having to upgrade things because of new RUSTSEC etc advisories.

▲Spivak 4 hours ago | parent | prev | next [-]

Look, I get that the dependency explosion is real but this project isn't requiring an unreasonable amount of direct dependencies. It's the massive amount of libs those things depend on where it explodes. The OpenAI devs aren't really the issue here.

▲fcarraldo 4 hours ago | parent [-]

When you choose to take on a dependency, you are also responsible for its transitive dependencies.

▲matja 5 hours ago | parent | prev [-]

> Can anyone familiar explain how can you evaluate which dependencies are safe to use?

Easy - assume none of them are safe, neither now or in the future. Then plan accordingly - Sandbox, principle of least privilege, defense in depth, separation of duties.

▲measurablefunc 2 hours ago | parent | prev | next [-]

FuseFS and WebDAV already exist.

▲dofm 29 minutes ago | parent [-]

They do, but this is not that?

(It is implemented in fusefs though)

The README is tough going but consider this to be:

"All the MCP tools you're using, but presented to the LLM as if they are a file system of files and unix utilities that answer to command line arguments including —-help"

▲himata4113 3 hours ago | parent | prev | next [-]

Ah yes, persistently 6 months behind the real oss (pun intended)

https://omp.sh

▲tucnak 4 hours ago | parent | prev | next [-]

If you asked me five years ago, I would think of plan9 and consider this amazing, but I really don't see the utility of this when CodeAct exists... Bash semantics are nice, but they are not _that_ nice, not when compared to actual high-level programming languages.

▲kristo 5 hours ago | parent | prev [-]

Looks useful for linear. I have a tension between tickets in linear and local docs. Having it all appear local files would help