Skip to main content

runspec-fs

A filesystem runnable for runspec, ported from the Filesystem MCP server. One runnable — filesystem — with a verb per MCP tool. pip install it into a venv and it's discoverable by runspec local, runspec serve (MCP), and runspec-console; over the console's SSH fleet it gives the agent local and remote filesystem access with no extra server process.

runspec serve flattens each verb into its own leaf MCP tool (filesystem_read-text-file … filesystem_move-file). Read verbs are autonomy = "autonomous"; the mutating ones (write-file, edit-file, create-directory, move-file) are autonomy = "confirm".

No directory jail. Access is bounded by the OS permissions of the invoking (or --run-as) user, not by an allowlist.

Install

pip install runspec-fs

Verbs

Kind Verbs
Read read-text-file, read-media-file, read-multiple-files, list-directory, list-directory-with-sizes, directory-size, directory-tree, search-files, get-file-info, list-allowed-directories
Write write-file, edit-file, create-directory, move-file

edit-file takes paired repeatable --old-text / --new-text args (zipped by position) instead of a JSON blob, so it needs no new runspec arg type.

filesystem list-directory --path /var/log
filesystem read-text-file --path /etc/hostname
filesystem edit-file --path app.conf --old-text "debug = true" --new-text "debug = false"

Run as another user

Two inherited global args — --run-as <user> (+ --become-method sudo|su) — pick which OS user each verb runs as. Because the verbs run in-process, the resolved (verb, kwargs) is shipped over stdin to a worker re-invoked as that user (via sudo -n -u / su); the option surfaces on every leaf MCP tool.

Public Python API

The pure logic is in runspec-fs-core — stdlib only, no runspec dependency, no entry points:

from runspec_fs_core import read_text_file, write_file, edit_file, directory_tree

Failures raise (the stdlib OSError family, plus EditNotAppliedError).

Development

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
ruff check . && ruff format --check .
pytest

Metadata

Release files for runspec-fs 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runspec-fs 0.6.0
File Size Uploaded Provenance Actions
runspec_fs-0.6.0.tar.gz 13.9 kB With provenance Details for runspec_fs-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runspec-fs 0.6.0
File Interpreter ABI Platform Actions
runspec_fs-0.6.0-py3-none-any.whl Python 3 none any Details for runspec_fs-0.6.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / runspec_fs-0.6.0.tar.gz

Download URL runspec_fs-0.6.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9e7e7613f1646ba500a73a136bb61b0949c801ad0a407e5f229f04e2b5d22c3a
BLAKE2b-256 checksum
How to use checksums
b59ff5b7f327ba30a0c87e9dfe1a5435aa7b87968853ea74adaaa30e39659f43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / runspec_fs-0.6.0-py3-none-any.whl

Download URL runspec_fs-0.6.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa6670ee8960f71da3332ab4f958a59f86eb400bfaa6d5f247d542b25159d9e9
BLAKE2b-256 checksum
How to use checksums
61036d463709dda65791defbec8b592f218d56b666195045b9fcd86ba8bf8379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for runspec-fs 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for runspec_fs-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page