OpenAI mcpfs: MCP Filesystem Tools

(github.com)

69 points | by tosh 5 hours ago

12 comments

  • jpollock 7 minutes ago
    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.

  • buremba 36 minutes ago
    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 2 minutes ago
      Maybe the advantage is it can write python scripts that call these CLIs?
    • mbreese 25 minutes ago
      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?

  • sayanarijit 2 hours ago
  • oa335 2 hours ago
    I perused the readme, but still don't understand the utility of this, could someone please explain?
    • dofm 53 minutes ago
      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 26 minutes ago
        MCP has evolved to have a very decent auth story now, to the extent we're I'd actually be open to using it to approve my AIs' access to fs partitions in general.
      • politician 51 minutes ago
        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.
    • solarkraft 2 hours ago
      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.
      • varispeed 2 hours ago
        Primitive for what?
        • riedel 2 hours ago
        • AmazingTurtle 2 hours ago
          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 1 hour ago
            It's even better than that, tools are represented as executables like any other binary on your system.
        • materielle 2 hours ago
          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 1 hour ago
            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 22 minutes ago
              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 1 hour ago
            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.
    • ramigb 1 hour ago
      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 41 minutes ago
        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 29 minutes ago
          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 15 minutes ago
            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.
    • txdv 1 hour ago
      my guess is it mcps to a virtual filesystem, the agent accesses the functionality by reading files and folders on a virtual file system?
    • tyingq 2 hours ago
      "explore" type subagent isolation without a sandbox maybe?
  • gustavus 2 hours ago
    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 1 hour ago
      the whole llm craze basically invalidated the last 30years of UI'ification of programs. Something I'm really happy about.
  • tucnak 1 hour ago
    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.
  • riedel 2 hours ago
    Seems like we are rediscovering the ideas behind plan9.
    • trentor 2 hours ago
      ...in rust.
      • kvuj 2 hours ago
        ... 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?

        • Spivak 1 hour ago
          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 1 hour ago
            When you choose to take on a dependency, you are also responsible for its transitive dependencies.
        • cmrdporcupine 2 hours ago
          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 2 hours ago
            Wow that security check seems really useful!
            • cmrdporcupine 2 hours ago
              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.
        • matja 1 hour ago
          > 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.

  • himata4113 25 minutes ago
    Ah yes, persistently 6 months behind the real oss (pun intended)

    https://omp.sh

  • kristo 2 hours ago
    Looks useful for linear. I have a tension between tickets in linear and local docs. Having it all appear local files would help
  • Hudson0209 2 hours ago
    [dead]
  • carsonwhite060 2 hours ago
    [dead]
  • yny0523 3 hours ago
    [dead]