Filesystem driver for the Model Context Standard.
Project description
mcs-driver-filesystem
Filesystem driver for the Model Context Standard (MCS).
Provides list_directory, read_file, and write_file tools. The actual
I/O is delegated to a pluggable adapter, making the same driver work with
local disk, SMB shares, or any future backend (S3, SFTP, ...).
Installation
pip install mcs-driver-filesystem
Quick start
from mcs.driver.filesystem import FilesystemToolDriver
# Local filesystem (default)
td = FilesystemToolDriver(adapter="localfs", base_dir="/data")
# SMB share
td = FilesystemToolDriver(adapter="smb", server="nas", share="docs",
username="user", password="pass")
Adapter protocol
The driver defines a FilesystemPort typing protocol. Any object that
implements list_dir, read_text, write_text, list_files, read_raw,
and exists satisfies the contract -- no inheritance required.
Links
- Homepage: https://www.modelcontextstandard.io
- Source: https://github.com/modelcontextstandard/python-sdk
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcs_driver_filesystem-0.2.2.tar.gz.
File metadata
- Download URL: mcs_driver_filesystem-0.2.2.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f60cbcbfe264c6d240a47fde82cf8efa95af86d9f10efcaa09925459c14b42
|
|
| MD5 |
a9f78a9630c0358af8ba53102f828c81
|
|
| BLAKE2b-256 |
60ed4cbe0e83a22b16377b57553e9eab0c53aa19e9258e1807e8b07c0387ccfa
|
File details
Details for the file mcs_driver_filesystem-0.2.2-py3-none-any.whl.
File metadata
- Download URL: mcs_driver_filesystem-0.2.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2025a18096f56d3c193c1722734b323f8ad974e5656448508b1ce1caa2804f8
|
|
| MD5 |
ec1c059ca54ee672817806675042ae7f
|
|
| BLAKE2b-256 |
aad5816b4c6bb83395f3a91a8ebfc763b3306565c978c7ff23ea2732d12cdc1f
|