fileport
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fileportlist the files in /data/docs and show me the contents of README.md"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fileport
fileport gives an agent careful, sandboxed access to the local
filesystem. It can read and write text, return media as base64, apply
exact-match edits, walk directory trees, and search by glob — but only
inside the directories you allow. Anything outside those roots is
refused, including paths that escape through .. segments or symlinks.
Install
npx @reneturcios/fileport list .Or run the container image:
docker run -i ghcr.io/cloudcorprecords/fileportThe container defaults to the MCP server. Pass CLI arguments to use it as a CLI instead.
Related MCP server: ForgeGuard MCP
Allowed directories
The sandbox is the whole point of this tool, so it is configured explicitly:
fileport mcp /data/docs /data/notes— the arguments aftermcpare the allowed roots.FILEPORT_ROOTS— a path-delimiter-separated list used when no arguments are given.With neither set, the current working directory is the only root.
Every path a tool receives is canonicalised (symlinks resolved; new files resolved through their parent) and checked against the roots before any read or write happens.
CLI
fileport list <path> # entries as [FILE] / [DIR] lines
fileport read <path> # print a file's text contents
fileport mcp [dirs...] # start the stdio MCP server
fileport --versionExit codes: 0 on success, 1 when an operation fails (for example a
path outside the allowed directories), 2 for usage errors. The
list and read helpers resolve paths against the working directory.
MCP server
npx -y @reneturcios/fileport mcp /path/to/allowed/dirMCP client configuration:
{
"mcpServers": {
"fileport": {
"command": "npx",
"args": ["-y", "@reneturcios/fileport", "mcp", "/path/to/allowed/dir"]
}
}
}Tools
Tool | Input | What it returns |
|
| The file's full text contents. |
|
| The file text, or just its first/last lines. |
|
| Base64 image, audio, or blob content chosen by extension. |
|
| Each file's contents; a failure for one file is reported in-band and does not stop the others. |
|
| Writes the text, creating parent folders as needed. |
|
| Applies each exact-match replacement, or returns a diff-like preview when |
|
| Creates the directory and any missing parents. |
|
| Entries as |
|
| Entries with sizes; directories report their recursive total. |
|
| A nested JSON tree of |
|
| Moves or renames within the sandbox. |
|
| Recursive glob search over file names ( |
|
| Size, created/modified/accessed times, type, and permissions. |
| — | The roots currently in force. |
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
The trust harness for AI agents. Set what an agent can do before it acts.
- flockfsOAuthcom.flockfs
A real-time, multiplayer filesystem for agents and humans: shared files, live edits, history.
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables reading, writing, appending, and listing files, restricted to explicitly allowed directories with safety checks against path traversal and symlink escapes.459 PyPIMIT
- AlicenseAqualityBmaintenanceEnables coding agents to safely inspect and modify project files within explicitly allowed workspace roots, with controls for file operations, git status/diff, and optionally allowlisted command execution.11Apache 2.0
- AlicenseNot gradedqualityCmaintenanceGrants an agent a bounded view of the filesystem where each directory is declared explicitly with a role (reference, sourcecode, workspace) that caps operations to read, write, or delete, resolving every path through a single confinement and permission checkpoint. Common secrets such as .env, keys, and .git are filtered from both access and listings, and deletions only move files into a per-root trash instead of erasing them.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to safely read, write, and search files within a whitelisted sandbox directory, rejecting any attempts to escape the sandbox.MIT