Skip to content

Add a CLI flag to configure MCP roots #2598

Description

@OrKoN

Is your feature request related to a problem? Please describe.

Currently, the file system access can only be configured via MCP. In the next version of the MCP spec, the roots are getting removed.

Describe the solution you'd like

We should also support a CLI flag like --filesystem-root (array) and via --workspace (array) keeping the defaults to the os.tmpdir().

Describe alternatives you've considered

Removing roots altogether, discarded since it's useful to set fs guardrails for the mcp server and cli.

Additional context

No response

Activity

  1. added theissue type on Aug 20, 2026
  2. OrKoN commented on Aug 20, 2026

    @OrKoN
    CollaboratorAuthor
  3. freecahya588-svg commented on Aug 29, 2026

    @freecahya588-svg

    Apakah permintaan fitur Anda terkait dengan suatu masalah? Mohon jelaskan.

    Saat ini, akses sistem file hanya dapat dikonfigurasi melalui MCP. Pada versi spesifikasi MCP berikutnya, root akan dihapus.

    Jelaskan solusi yang Anda inginkan

    Kita juga harus mendukung flag CLI seperti --filesystem-root(array) dan melalui --workspace(array) dengan tetap mempertahankan nilai default pada os.tmpdir().

    Jelaskan alternatif yang telah Anda pertimbangkan.

    Menghapus root sepenuhnya, karena tidak digunakan untuk mengatur pengaman sistem file (fs guardrails) untuk server MCP dan CLI.

    Konteks tambahan

    Tidak ada respons
    /// Bug 10 mins

  4. added a commit that references this issue on Sep 3, 2026
    d00e6f8
  5. added a commit that references this issue on Sep 12, 2026
    5b034dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions