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.4.1

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.4.1
File Size Uploaded
runspec_fs-0.4.1.tar.gz 11.5 kB Details

Built distribution (wheel)

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

Total release size: 21.6 kB

Release files / runspec_fs-0.4.1.tar.gz

Download URL runspec_fs-0.4.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9762286276354684f521267f7029edcad3c83597538844281d26d33df9bb0703
BLAKE2b-256 checksum
How to use checksums
acb0a7ed658038c690778529adf9ee8dcfa08aa20c81ddb712081b3d2c0c03c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

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

Download URL runspec_fs-0.4.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ff4b8fb850c4ef6d795640a45741149c581a1f10071622eef14f68972f6131b
BLAKE2b-256 checksum
How to use checksums
58e0d064852a28fca4c01946aeac1bcd87626e408ac93d7782164a5161193792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.1

2 release files

0.5.0

2 release files

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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