About Portal
Portal is an MCP server published by s3hq4y in the Agents category: portal - public MCP endpoint. Conduid read 14 tools from its source: apply_patch, begin_upload, cancel_upload, commit_upload, file_transfer_info, list_files and 8 more. No package is published for it, so it installs from a source checkout.
The repository has 20 stars and 1 forks, is licensed GPL-3.0, and its last commit was on 16 Sep 2026. The latest release is v1.1.1 (14 Sep 2026): New Features Native MCP file tools — Portal now exposes nine file tools alongside the command tools, so agents no longer have to shell out for source edits. It follows v1.1.0 (4 Sep 2026), and the 5 most recent releases go back to v1.0.3 (27 Aug 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include bridge, extension, mcp-gateway, tunnel, tunnel-client and tunnel-server.
Install
git clone https://github.com/s3hq4y/portalTools (14)
apply_patchReplace exactly one matching text occurrence in a UTF-8 file up to 1 MiB. Requires current SHA256; preserves newline convention and untouched BOM. Ambiguous or missing matches fail, without modifying the file.begin_uploadStart a binary upload up to min(maxTransferBytes,64 MiB). Four concurrent sessions, 30-minute lifetime. Requires complete size/SHA256; omit expected_sha256 only for create-only. Sessions survive network retries, NOT Portal restarts.cancel_uploadDiscard an incomplete upload or release a completed receipt/session slot. Never deletes or rolls back a committed target file.commit_uploadVerify all chunks and the complete SHA256, then conditionally publish the file. Repeating a successful commit returns the original receipt without rewriting the target.file_transfer_infoReturn the public HTTP file-transfer base URL on the same tunnel (GET/PUT/POST /files/<token>/...). Prefer native read_file/write_file/apply_patch/list_files for text; use upload session tools for retryable transfers or HTTP for binary files.list_filesList one directory with bounded, lexicographic pagination. Hidden, sensitive and dependency directories are omitted. Descend explicitly; cursor is not a filesystem snapshot.read_commandRead incremental stdout/stderr and status for a background command. Pass next_offset values into the next call. Output older than the 200,000-character per-stream ring buffer is marked truncated. Omit command_id to list retained commands; completed records expire after 10 minutes.read_fileRead a UTF-8 file up to 1 MiB in bounded pages. Returns full-file SHA256 and next_offset. Pass that SHA256 on subsequent pages to detect changes. Use HTTP for larger or binary files.run_commandRun a foreground command inside the workspace. Default timeout is 120 seconds. Use command+shell for shell syntax, or executable+args for injection-safe direct argv execution. Windows supports powershell, pwsh, cmd, and Git Bash (bash/sh). Output is mirrored to the VS Code 'Portal Agent' terminal and the result starts with structured metadata.start_commandStart a long-running command and return immediately with command_id, PID, and log_file. Up to four commands may run concurrently. Each command streams its full stdout/stderr to its OWN log file (returned as log_file, under .portal/logs/) so tasks can be observed independently instead of interleaving in one terminal; tail it with e.g. Get-Content -Wait -Tail 50 <log_file>. Output is also kept in bounded ring buffers for read_command. Use read_command with returned offsets, then stop_command when finished.stop_commandStop a running background command and its process tree. A graceful request is escalated after two seconds; force=true requests immediate forceful termination. The final buffered output remains readable for 10 minutes.upload_chunkUpload the requested 128 KiB chunk (last chunk may be smaller) as standard base64. Retrying the same index and bytes is safe; different bytes for an acknowledged index fail.upload_statusGet missing chunk indices or the completed receipt. Query after network failure before retrying or starting a new upload.write_fileWrite literal UTF-8 text (at most 128 KiB per call), using atomic publication. Omit expected_sha256 ONLY to create a new file. Overwriting an existing file requires its current full-file SHA256. Use apply_patch to preserve existing BOM/newlines during small edits.Security checks
- ✓README presentThe repository's README runs to about 431 words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 71 source files and found 18 calls to eval or shell execution, in client/src/main/files/wsl-io.ts, client/src/main/tunnel.ts and vscode-extension/src/files/wsl-io.ts among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 431 words, fetched a month ago. The original in the repository is authoritative.
Read full README