A cross-platform terminal workspace for SSH, serial, and remote operations, with a permissioned MCP session bridge.
v0.1.18 · Tauri v2 · React · Rust · Apache-2.0
English | 简体中文
Native CI · MCP SDK Freshness · Apache-2.0 · Node.js 24.20.0
Important
PortMate is currently in public beta. Core workflows and automated compatibility tests reproducible on Linux, Docker, and browser environments are in place, while native Windows/macOS packaging, real Microsoft AD, physical serial hardware, and release signing continue to be validated across broader environments. Verify behavior against your target setup before relying on a build unattended in a production-critical path.
PortMate is a terminal workspace for people and automation working around the same operational context. A desktop operator can connect to a device, inspect live state, type commands, and handle interactive prompts. An external MCP client can use the same session, transfer, script, and routing capabilities when the user grants access.
The two workflows are intentionally independent. When a task needs coordination, they can synchronize on a session's state, input, and output. When it does not, each side can connect, act, and finish on its own: a person can keep working at the keyboard, while automation can run an authorized task without taking over the desktop's screen or input focus. MCP is an optional control surface, not a prerequisite for the desktop tools.
PortMate makes this collaboration reviewable. Grants define which client may use which capability and session, and write operations can require explicit confirmation.
Controlled MCP actions record the client, target, action, and outcome. SSH host keys, client identities, authentication order, and Jump Host policies are isolated per Profile instead of being merged into the global ~/.ssh/known_hosts.
Built with Tauri v2, PortMate brings SSH, local Shell PTY, serial, Telnet, raw TCP, Tmux, file transfer, tunnels, logging, and system monitoring into one split-pane workspace.
It does not embed an AI assistant; the packaged portmate-mcp bridge is an optional, permissioned way for external MCP hosts to use these capabilities.
The screenshots below use an isolated, local-only fixture. Hostnames, addresses, files, and values are synthetic; no credentials or real device data are included.
Split-pane terminal workspace with SSH, serial, timestamps, semantic colors, and connection indicators.
Text and Hex views side by side for inspecting a live byte stream.
Desktop file manager with local and remote panes and SFTP actions.
MCP authorization with explicit scopes and per-session access.
To regenerate these documentation fixtures locally, run npm run docs:screenshots. The command uses Playwright and writes only to docs/images/; it never connects to a device or reads host files.
PortMate follows the operating system language by default, with English fallback for unsupported languages. Choose Arabic, Chinese, English, French, Russian, or Spanish in the top bar or application settings. The top bar applies the choice immediately; in application settings, save to apply it across windows. Arabic uses RTL interface layout; terminal content, script editors, and commands remain LTR. Internal actions, configuration values, and command syntax stay English/numeric; user-authored names, commands, and paths are never translated.
All six languages have matching catalog coverage, including advanced settings, host scripts, permission dialogs, command help, and registered native diagnostics. Application-owned diagnostics are translated only for display; unknown system/device messages remain verbatim. Catalog and placeholder completeness are checked by the test suite.
| Area | Capabilities |
|---|---|
| Sessions and protocols | SSH, local Shell PTY, Serial, Telnet, raw TCP, and Tmux; TLS for TCP/Telnet; HTTP CONNECT and SOCKS5 proxies for SSH/Tmux/TCP/Telnet |
| Terminal workspace | Tabs, recursive splits, cross-group drag and drop, detached windows, layout restore, Insert/Normal modes with matching cursors, search, line navigation, and text/hex/split views |
| Interactive workflow | WindTerm-style command completion and parameter hints, semantic coloring for commands and unstyled output without overriding ANSI colors, Quick Commands, scoped custom scripts, OneKeys, free input, and synchronized input |
| SSH security | Profile-scoped host keys, TOFU and key-change blocking, Host/Client Key Managers, multi-hop Jump Hosts, ssh-agent, password/public-key/keyboard-interactive, and Linux libssh GSSAPI authentication |
| Files and transfer | SFTP/SCP file management, one-shot TFTP, drag and drop, queues, throttling, cancellation, retry, resumable transfers, and X/Y/ZModem |
| Operations and diagnostics | SSH health checks, local/remote/dynamic tunnels, persistent Sysmon sidebar and trends, structured logs, triggers, and diagnostic session bundles |
| Serial tooling | Common baud rates, DTR/RTS/Break, text and hex I/O, exact byte capture, a detached analyzer, and SLIP/COBS/Modbus RTU decoding |
| MCP | stdio and Streamable HTTP, fine-grained grants, session scopes, write confirmation, audit history, token rotation, and managed sidecar lifecycle |
- Target desktop platforms: Linux, Windows, and macOS.
- Primary current development and native verification environment: Linux on VMware.
- The terminal uses
@xterm/xterm6 with Search, Serialize, Unicode 11, Clipboard, Web Links, Fit, and optional WebGL support. - Serial terminals keep the column count in Session settings → Terminal behavior fixed across window/font changes, with horizontal scrolling in narrow panes. Match this setting to the device's terminal width (
stty sizecan report it); PortMate does not sendsttyautomatically. Correct existing profiles whose width was previously overwritten by viewport resizing to avoid wrapped-command erase misalignment. - Passive serial width hints recognize two matching Readline-style wrapped-line redraws in normal-screen Shell output. Apply a hint to this view only, dismiss it, or restore the configured width. Reconnection, session switching and manual column changes reset detection. No probe is sent, inferred values are not saved and previously corrupted screen content is not repaired. Replayed history, alternate screens and insufficient evidence produce no hint; this is not universal size negotiation.
- Command history records known terminal-side edits and submitted pasted commands. Desktop and MCP writers share the history enabled/limit/retention policy. MCP
run_commandis recorded after sending;send_textrecords only complete CR/LF-terminated lines in the current payload, not unfinished fragments or editor controls. Private terminal input is excluded, and bracketed paste waits for a real Enter. History persistence failures do not fail a successful MCP send. - Automated compatibility matrices cover SSH/SFTP/SCP, Telnet/TCP, vttest, full-screen applications, and multiple Tmux versions.
- MCP compatibility covers the official TypeScript, Python, Go, Rust, Ruby, Java, Kotlin, C#, and Swift SDKs.
- Linux DEB, RPM, and AppImage packages have local package and lifecycle gates. Windows and macOS still require successful native-runner evidence.
See CHANGELOG.md for versioned user-visible changes, PROGRESS.md for the detailed implementation record and remaining boundaries, and RELEASE.md for release requirements.
- Git
- Node.js
>= 24.20.0;.nvmrcpins the verified24.20.0release - Rust
1.98.1(pinned inrust-toolchain.toml) and npm12.0.2 - The Tauri v2 prerequisites for your platform
Building the Linux desktop application generally also requires WebKitGTK, GTK3, libssh, Kerberos, udev, and system-tray development packages. The complete Ubuntu dependency list is available in .github/workflows/native-ci.yml.
Official Linux x64 packages are built on Ubuntu 22.04 LTS. The AppImage and its portable archive use the host's glibc (2.35 or newer) and a compatible libstdc++. CI checks the finished AppImage for incompatible symbol versions and launches it without external network access.
git clone https://github.com/YYH2913/PortMate.git
cd PortMate
nvm use
npm install --global npm@12.0.2
npm ci
npm run desktop:cleandesktop:clean only clears a stale Vite listener owned by this checkout and known Snap-injected GTK/WebKit environment values. It does not remove Profiles, logs, or PortMate application data. When cleanup is unnecessary, run:
npm run desktopThe launcher builds the development MCP sidecar, starts Vite, and then starts the Tauri/Rust backend. The first Rust build can take a while.
npm run devOpen http://127.0.0.1:1420/. Browser mode is useful for layout and frontend interaction checks. Real SSH, serial, transfer, keyring, and local IPC operations require the Tauri desktop backend.
- Open
会话 (Session) -> 新建会话 (New Session). - Select Shell, SSH, Tmux, Telnet, TCP, or Serial.
- Enter host/IP, port, and username in separate fields; a combined
username@hostvalue is not required. - On the first SSH connection, verify the server host-key fingerprint and choose one-time or persistent Profile/project trust.
- Open transfers, tunnels, Tmux, Sysmon, custom scripts, the serial analyzer, key management, logs, or MCP Bridge from
工具 (Tools).
Choose Session → Elevated local terminal, or enable Run as administrator / root in a Shell profile. It opens an integrated terminal, not an elevated PortMate app. Normal and elevated menu terminals use separate profiles. Disconnect before changing an existing profile's elevation mode.
Windows includes the pinned gsudo 2.6.1
helper: approve UAC when requested; no separate installation or runtime download is
needed, including in portable editions. Existing system/gsudo cache policies may
avoid a new UAC prompt. PortMate does not change those policies. Use a local .exe
or .com shell, such as cmd.exe, powershell.exe or pwsh.exe; for scripts, pass
them as arguments to the appropriate shell. UNC/device executable paths are rejected.
Linux/macOS requires system sudo and permission to run as root. Enter the password
at the terminal's PortMate sudo password: prompt, which enables private input.
PortMate does not request or save an elevation password in the profile.
Every new elevated connection requires desktop confirmation. Startup restore, OneKey and MCP cannot grant elevation; cancelled or failed elevation never falls back to a normal shell. Inputs sent to a manually elevated session—including triggers and already-authorized MCP operations—execute with its higher privileges. The shield marks the configured launch mode, not a verification of the current process token. Closing the session closes its PTY and stops its managed bridge; explicitly detached processes started by the shell are outside that lifecycle.
In the session Explorer, Group by → Session type automatically groups SSH, COM / Serial, Shell, Telnet, TCP and Tmux sessions. Switch back to Profile groups to use saved custom groups. The view preference is remembered and synchronized between workspace windows; it does not modify session profiles.
In Session settings → Terminal appearance, choose a theme to preview its 16 ANSI colors and a sample log before saving. PortMate adds color only to unstyled text: for example, port=443 is a number, whereas HTTP/2 404 flags an error. Remote styles and alternate-screen programs keep their colors. To use only device-provided colors, turn off Tools → Application settings → Appearance → Multicolor commands and output.
Settings search matches individual controls such as font size, baud rate and reconnect. Select a result to jump to it; typing a search does not change the current page or draft. Save does not open or reconnect a session. Save and connect does both. Closing an edited draft lets you keep editing or discard it.
Each session tab has a connection marker. Green means connected; unavailable states are red, with the precise connecting, reconnecting, blocked, disconnected, or error diagnosis available in the tooltip. Startup recovery silently tries credentials already available to the Profile and does not show a reconnect dialog every time the app opens.
Startup recovery runs in the background with at most four simultaneous connections. It preserves the selected tab and never opens credential, fingerprint or failure dialogs. Failures remain visible in session status; other targets continue. Targets that depend on a locked Stronghold vault wait until it is unlocked. Only visible terminal histories are loaded initially. The timestamp gutter follows each output frame's recorded time, including after clearing the screen, without rerendering the terminal's input and completion UI on every output update.
Terminal rendering prefers hardware-accelerated WebGL. Known software rasterizers
(including SwiftShader, llvmpipe and WARP) and unavailable/major-performance-caveat
contexts fall back to the DOM renderer so GPU emulation does not stall the window.
The final decision checks the context actually used by xterm, separately from its
2D link layer, without extra probe-context allocations or probe-only hardware
rejections. Context loss releases the addon and restores DOM output/input;
renderer transitions retain the same terminal buffer rather than recreating it.
Output correlation is batch-scheduled; timestamps, TUI color/style changes and the
configured scrollback remain intact. No output or history is intentionally dropped
as a performance shortcut. npm run test:ui-performance also checks the production
bundle with two continuously updating TUI panes and simultaneous keyboard input.
The WebGL lifecycle fixture uses a simulated driver identity with the real addon;
it is not a hardware-GPU benchmark. Native GPU/driver performance requires testing
on that device.
RX/TX capture is independent of screen contents. Clearing the screen does not clear raw records. The live capture keeps its existing 1 MiB / 512-frame window; compact byte storage is shared between terminal views, replay and capture. Capturing new packets does not rescan the retained window. Counters and the Hex/compare presentation refresh at most 10 times per second, while terminal output and keyboard handling remain independent. Only visible Hex rows are expanded. The trash button explicitly clears byte records without changing terminal text or scrollback. Performance gates include full-cache text mode after screen clear and sustained high-rate RX/TX; no fixed-latency guarantee can cover arbitrary traffic, device/driver speed or an overloaded system.
The byte inspector reuses viewport DOM slots as new captures arrive rather than recreating every byte button. Delegated interactions resolve the current frame and offset, including after row reuse. Application-owned localization templates are compiled in a bounded cache, without retaining interpolated values or raw fallback messages. Outbound capture and empty acknowledgement packets bypass screen snapshots; this avoids unnecessary screen scans during simultaneous TUI rendering and bulk TX, without suppressing capture or changing incoming bytes.
Tail latency is checked separately from average/P95 performance. The CI stress
check runs for at least 60 seconds with a full byte cache, periodic bursts and
at least 1,000 real keyboard events. It reports nearest-rank P99, sample counts,
the maximum and slow-sample counts. Text-mode budgets are frame/input P99 ≤50 ms,
no frame interval ≥250 ms, no lost input and recovery of retained output within
2 seconds after traffic stops. The first and last thirds are compared and JS
heap samples are recorded. These checks use the production frontend with mocked
native IPC; dispatch and next-animation-frame callbacks do not measure remote
echo, physical display presentation or Windows WebView2 driver latency. They do
not establish long-term service availability. PORTMATE_UI_TAIL_SECONDS can extend
the stress check to 600 seconds; PORTMATE_UI_TAIL_REPORT saves its JSON report.
Continuous-typing checks also cover human-cadence completion updates, per-key
simulated echoes and a 6,000-character command. At 4× CPU throttling they send
1,024 printable keys and 512 Backspaces, including held-key repeats. They verify input order, echo DOM updates and frame/dispatch P99,
without clearing records. Dialog candidates are tracked incrementally rather
than rescanning the workspace for each key or terminal DOM update; same-task
dialog changes still block background input immediately. Session/log queries,
input-channel setup and Enter-history persistence run off the desktop UI thread.
Alternate-screen TUIs bypass shell completion and keep their Tab/arrow input;
switching buffers clears stale candidates and pending completion previews.
A separate libssh loopback test measures native write-to-echo latency for typing
and Backspace (PORTMATE_EXTENDED_INPUT_BENCH=1 for 512 samples each).
These are local regression budgets, not Windows/device end-to-end guarantees.
Double-click or middle-click a workspace tab, or choose Rename session from its context menu, to rename the saved session. The Explorer, all views of that session and detached windows follow the new name. Renaming through the Explorer or Session Settings also replaces old view aliases, including closed views when reopened.
Full-screen terminal applications can request X10/VT200/SGR mouse tracking. PortMate forwards click, release, wheel, and drag reports as lossless bytes to the active session; the 终端设置 (Terminal Settings) -> 鼠标 switch controls whether applications may receive them. Disable the switch when you want normal browser text selection instead.
SSH, Tmux, TCP, Telnet, and Serial reconnect workers reload the latest Profile before the next attempt. Changes to connection settings, authentication policy, reconnect delay, or the reconnect switch do not need to wait for an obsolete retry cycle to finish.
Choose Tools → Check for updates, or Check for updates in About PortMate.
PortMate checks the latest stable release in YYH2913/PortMate and shows its notes.
Choose Update and restart and confirm to download the package. After its signature
and version pass verification, PortMate closes its windows and sessions, cancels
transfers and host scripts, stops managed local processes, saves data and installs
the update. Save unsaved terminal work before confirming.
In-app installation supports Windows MSI/NSIS, Linux AppImage and macOS .app bundles.
DEB/RPM, Windows portable ZIP and Linux portable tar installations use the release page and the matching
package manager or complete archive. Releases without a signed latest.json also
offer manual upgrade. Download or signature failure leaves sessions running.
Signed update publication is described in RELEASE.md.
Open Tools → EasyTier networking without opening a terminal session. The configuration and running-status pages follow the official EasyTier GUI workflow: choose a public server, manual peers or a standalone network, enter matching network names and secrets, then connect. Running status shows the local virtual IP and peer routes, latency, traffic and logs; advanced settings and component management have separate controls.
EasyTier 2.6.4 is included in Windows/Linux x64 and macOS Apple Silicon installers, portable editions and updater packages. The core and CLI are embedded in PortMate; connecting prepares and verifies the local runtime without a separate download or program-directory selection. Windows additionally requires a separately licensed Npcap installation: user-confirmed downloads come from its official site and open the interactive installer; Npcap is not bundled or silently installed. Creating a virtual adapter requires platform network-administration privileges; relay-only mode works without an adapter. Closing the dialog keeps the network running. Disconnecting, exiting PortMate or preparing a verified update stops it. See EasyTier integration for configuration, source builds, secret handling and upstream licensing.
SFTP works directly in the desktop application and does not require MCP, an MCP grant, or a running MCP Bridge. Connect an SSH or Tmux session with SFTP enabled, then use either Workspace -> File Manager for two-pane browsing, drag and drop, and batch transfers, or Tools -> Transfer Tasks for an explicit source and destination.
For an upload, use a local source path and a destination such as remote:/tmp/file.bin. For a download, use a source such as remote:/var/log/messages and a local destination path. The desktop transfer queue supports cancellation, retry, progress, and throttling. Local SFTP downloads can resume from a verified partial file; remote SFTP uploads and copies safely restart existing partial files because the protocol does not expose their hard-link count.
For batch transfers and external drops to remote targets, choose Stop, Skip, or Rename for name conflicts. Overwrite is available for local targets; remote targets reject it before queueing because safe replacement is not supported.
Live progress updates stay in memory during a transfer; queue, start, completion, failure and cancellation states are persisted. After an abrupt process exit, saved byte counters may lag behind the actual partial file, which is checked before resume.
SFTP transfers use application buffers capped at 256 KiB; uploads align to negotiated write limits, with a 64 KiB fallback for russh peers that do not advertise them. The russh backend pipelines up to eight reads on one handle; libssh uses its serialized native I/O. Server packet limits, throttling, cancellation and path checks remain enforced. Multiple transfers to the same session stay queued to avoid races on shared destinations and partial files.
For devices that accept SSH protocol-level none authentication, enable only none
in the SSH authentication list in Session Settings. No password or client identity is required
for that method; the server's host key is still verified.
In Session Settings → Public key, the authentication list always exposes the same five methods. Enable just one, or enable several and use the up/down controls to choose their attempt order. GSSAPI / Kerberos requires a supported Linux libssh build. Remembering a successful method records it but does not change this order. Client private keys are also numbered and can be moved up/down; new keys append to the end. SSH-agent before/after policy remains a separate setting.
PortMate manages two distinct types of keys:
- Host keys identify remote servers. They are stored in PortMate's trust store by default and are not automatically written to the system
known_hosts. - Client identities authenticate the user to a server. Their offer order can be constrained so unrelated keys do not exhaust the server's
MaxAuthTrieslimit.
SSH passwords, private-key passphrases, proxy passwords, OneKey secrets, and Profile Vault private keys are stored in an IOTA Stronghold vault protected by the user's master password; SQLite stores only stronghold: references. The vault must be unlocked before these secrets can be saved or used. The native OS keyring is reserved for internal application material such as the persistent MCP HTTP token and bundle-signing identity. Existing user keychain: references remain readable and deletable and can be migrated one way into Stronghold, but PortMate no longer creates or overwrites user credentials in the native keyring. The short-lived desktop IPC token rotates on every launch and is written only to the atomic, owner-only portmate-ipc.json endpoint; it is never stored in SQLite.
To initialize the vault, click the Stronghold status control in the top-right of the workspace (or open Tools > Key Manager), enter a new master password twice, and choose Create Stronghold. Creation is an explicit operation and never happens as a side effect of unlock; an existing vault must be unlocked with its current password. The status control shows Not created, Locked, or Unlocked and opens the same management surface on desktop and mobile layouts.
During SSH setup, plaintext credentials stay inside the desktop backend after the trusted credential prompt. Frontend calls receive only a short-lived, one-use handle bound to the requesting window, session, and current SSH configuration; MCP requests cannot supply passwords, passphrases, or credential handles. See SECURITY.md for the exact trust boundary and its limitations.
A changed host key blocks the connection by default. Use one-time trust, append, or replacement after confirming a device replacement, OS rebuild, or legitimate key rotation.
Since 0.1.11, the SSH/Tmux connection page in Session Settings includes Ignore fingerprint changes on auto-reconnect. It is off by default and requires automatic reconnect to be enabled. When enabled, automatic reconnect temporarily accepts a changed key for a previously trusted endpoint, including Jump Hosts; it keeps the saved fingerprints and records the observed fingerprint in a system event. Initial/manual connections and host-key scans still use the configured policy, as do previously unseen endpoints. This option can connect you to an impersonated server or expose the connection to a man-in-the-middle attack.
The complete current MCP tool, resource, prompt, parameter, scope, and transport reference is available in MCP API reference (简体中文). The runtime tools/list response remains authoritative.
If HTTP requests reach the Bridge but command input reports desktop IPC unavailable,
inspect mcp_bridge_status for desktopIpcAvailable, desktopIpcIssue, bridgeVersion,
bridgePid, desktopParentPid and desktopIpcEndpointPath. HTTP reachability alone
is not desktop readiness. The desktop retries listener/endpoint startup failures and
checks its live discovery publication every 250 ms. A missing owned endpoint is
restored on the same port/token without restarting HTTP or sessions; newer desktop
ownership and unrecognized/unsafe files are preserved. The Bridge briefly refreshes
and reconnects before sending a request. Requests with an unknown outcome after
sending are never automatically replayed. Windows local Shell command submission
uses CR (Enter) per line.
- Keep the PortMate desktop application running.
- Open
工具 (Tools) -> MCP Bridge -> 授权 (Grants)and create a distinct Client ID with the required scopes and allowed sessions. - Enable per-operation confirmation for write scopes so the desktop can approve or reject each request.
- For stdio clients, use the exact bridge and Store paths displayed by the MCP Bridge UI.
- For HTTP clients, explicitly select a saved, active grant on the
HTTPpage, then configure the listen IP, client-facing address, port, and Origins. Use Save and start to save the binding, generate a Token if needed, and start the managed service. PortMate never infers a Client ID from the grant list or automatically switches to another client. Changing the bound identity invalidates the previous Token. - Copy the CC Switch JSON from the
HTTPpage after a Token is available. Copying does not change grants, binding, or service state. The JSON includes the Token and must be treated as a secret.
The MCP HTTP Access address selector lists enabled local adapters with IPv4 and usable IPv6 addresses. It matches the existing configured address by default; Custom accepts an IP or DNS name. The last adapter and address family are remembered across app restarts and follow its current DHCP address in the draft. If the adapter disappears, choose another one or Custom before saving. Legacy manual addresses remain available. Address selection does not open remote listening or change a running service's configuration automatically.
The Grants page owns client permissions, session scope, expiration, and revocation; the HTTP page owns transport binding, network settings, Tokens, and the managed service. Revocation requires an initial confirmation followed by entering the exact Client ID. Revoking the bound client also stops the managed HTTP Bridge and invalidates its Token; cleanup failures are reported without restoring the revoked grant.
Build the development sidecar first:
cargo build --locked -p portmate-mcpMost MCP hosts use a configuration similar to the following. Replace both paths with the exact values shown in the MCP Bridge UI:
{
"mcpServers": {
"portmate": {
"command": "/absolute/path/to/portmate-mcp",
"args": ["--stdio"],
"env": {
"PORTMATE_STORE_PATH": "/absolute/path/to/portmate-store.sqlite3",
"PORTMATE_MCP_CLIENT_ID": "my-mcp-client"
}
}
}
}The bridge reloads the Store and desktop IPC endpoint before each JSON-RPC envelope. A desktop restart or IPC token rotation therefore normally does not require restarting a long-lived stdio client.
- The default listener is
127.0.0.1:8787, with MCP available at/mcp. - Listener presets include
127.0.0.1,0.0.0.0,::1, and::, plus a custom numeric IP. - The client address is persisted separately from the bind address, so a wildcard listener never generates an unusable
0.0.0.0or::client URL. - A non-loopback listener requires explicit remote-access approval.
- Every request requires a Bearer token or
X-PortMate-MCP-Token; requests with an Origin also pass the configured allowlist. - The bridge does not terminate TLS. Expose it remotely only on a trusted network or behind a correctly configured TLS reverse proxy.
Never place the HTTP token in a README, startup command, issue, log, or public MCP client example.
The HTTP page generates the flat single-server JSON accepted by the CC Switch editor. It intentionally omits the outer mcpServers object. Starting the service generates a missing Token; you can also generate or rotate one explicitly while the service is stopped. The JSON includes that Bearer Token:
{
"portmate": {
"type": "http",
"url": "http://192.168.33.222:8787/mcp",
"headers": {
"Authorization": "Bearer <token returned by PortMate>"
},
"tool_timeout_sec": 180
}
}If the saved HTTP configuration already has a Token and an active grant, PortMate reuses it in the generated JSON. Generate or rotate a Token only when the configuration has no usable Token or you want to invalidate the previous one. Treat copied JSON as a password: keep it out of source control, logs, screenshots, and shared documents. Rotating the Token invalidates the previous value.
| Scope | Access |
|---|---|
read-sessions |
Read authorized sessions and runtime state |
read-logs |
Read and search logs for authorized sessions |
read-transfers |
List and inspect redacted transfer status |
read-tunnels |
List active SSH and PortMate-host forwards and SOCKS5 proxies |
read-scripts |
Discover host script tools explicitly exposed to this client; source code is omitted |
write-input |
Send text, keys, or commands to a terminal |
transfer |
Start, cancel, and retry file-transfer tasks; also implies read-transfers |
tunnel |
Create and stop SSH or PortMate-host forwards and SOCKS5 proxies; also implies read-tunnels |
manage-sessions |
Open or close sessions |
run-scripts |
Run host scripts explicitly exposed to this Client ID; also implies read-scripts |
Grants support expiration, revocation, session access modes, and per-write confirmation. New grants deny every session by default; the UI can switch to all sessions or explicitly select one or more sessions. Session lists and queries without a sessionId return only the visible subset, while session-specific tools still require an authorized sessionId. Host-route tools have no session target and are controlled directly by the tunnel/read-tunnels scopes. Every MCP write operation is audited.
In serial Insert mode, Esc is sent to the device. Use Shift+Esc or the status-bar mode button to enter local Normal browsing. Normal mode does not send keystrokes; press i or click the terminal toolbar's resume-input button to return to Insert. Other session types retain their Esc / i mode shortcuts.
Use the terminal toolbar's − / font size / + controls, Ctrl/Cmd + plus/minus/0, or Ctrl/Cmd + wheel over the terminal. Clicking the displayed size restores the session profile default. Sizes are bounded to 6–72px and remembered per view, including detached windows; zoom does not scale the application or other split views. Hex byte views are unaffected.
In the workspace Send panel, text mode offers None — No extra characters
(the default), LF — Line feed (\n), CR — Carriage return (\r), and
CRLF — Carriage return + line feed (\r\n). Options show their meanings and
escape sequences; hover over the selector for the full selected label. The chosen
ending is appended once to each payload, even when the draft already ends with a newline;
internal line breaks and the draft itself are unchanged. An empty draft sends
only the selected ending, or nothing with None selected. The 4 MiB UTF-8 limit
includes the appended ending. Repeated/broadcast sends keep the content and
ending fixed for the whole job. The choice is retained while the app is open
and disabled during sending or in Hex mode, which always sends exact bytes.
Terminal keystrokes, free input, quick commands, MCP and file transfers are
unaffected.
UART cannot negotiate the device's TERM; changing the session terminal type
does not change the remote environment. With terminal definitions such as
linux or vt100 that lack alternate-screen capabilities, nano clears and
redraws the normal screen. Earlier output still in that viewport is overwritten,
while older scrollback remains, so exiting nano may appear to lose only part of
the history. The terminal is not recreated on exit.
Check printf '%s\n' "$TERM" on the device. If the corresponding terminfo is
installed, TERM=xterm-256color nano <file> lets nano use an alternate screen and
restore the prior screen on exit. The app's terminal-type setting alone cannot
fix the device's UART environment. PortMate does not send configuration commands
automatically or ignore explicit erase/reset instructions.
Create Python 3 or platform Shell scripts from Tools -> Custom Scripts. Scripts execute as independent processes on the PortMate host without terminal sessions. Defaults: python3 / python.exe, /bin/sh on Linux/macOS, and PowerShell 7 (pwsh.exe) on Windows. Configure an absolute interpreter path (including a virtual environment), working directory, and 1–60 second timeout. Missing interpreters are reported, not installed.
Each script has an explicit MCP Client ID allowlist and publication switch. Callers additionally require run-scripts, which does not imply write-input or require session access. tools/list dynamically advertises authorized host_script_<UUID without hyphens> tools with typed schemas; list_custom_scripts returns those definitions. Clients must re-list after edits, or reconnect if they cache discovery; list_changed notifications are not emitted. Alternatively, run_custom_script accepts scriptId and parameters. Callers cannot override source, interpreter, or working directory. Approval, version/grant revalidation, and auditing remain enforced.
Parameters support string, number, integer and boolean types, with optional required fields. Unknown keys and type mismatches are rejected. Input is passed as stdin JSON, PORTMATE_INPUT_JSON, and individual PORTMATE_PARAM_name environment variables, never interpolated into code. Python can use json.load(sys.stdin); sh can use "$PORTMATE_PARAM_name"; PowerShell can use $env:PORTMATE_PARAM_name. Results contain exitCode, stdout, stderr, and failure. Limits: four concurrent runs and 128 KiB per output stream. Desktop runs can be stopped; timeouts, script edits, and revoked grants terminate the process tree. MCP cancellation notifications are not yet mapped to active runs; use timeouts or revoke the grant.
Scripts run as the PortMate user and are not sandboxed. Unix process-group cleanup cannot contain malicious code that deliberately detaches. Only save trusted code; avoid secrets in source/output. An environment allowlist is used, but scripts can still access files and networks permitted to this user. Old terminal scripts are unsupported, not loaded or migrated. The new storage field is hostScripts.
serial_send_break asserts the hardware Break condition on the currently connected serial port for approximately 250 ms and then clears it. This is not text input, a newline, or Ctrl+C; devices commonly use it to interrupt startup, enter a bootloader, or trigger a device-specific serial control path. The target sessionId must identify both a Serial profile and its current live serial connection, and the USB-to-serial adapter and driver must support Break.
{
"sessionId": "board-uart"
}The tool uses the write-input scope and remains subject to the grant's session boundary, per-write confirmation, commit-time authorization revalidation, and audit recording. A successful result contains sent: true and records a system event without device data. It fails closed when desktop IPC is unavailable, the session is disconnected or reconnecting, the target is not serial-backed, or the driver rejects Break. The existing desktop Send Break control does not require MCP.
For protocol payloads that must bypass terminal text handling, call send_bytes with encoding: "base64" or encoding: "hex". PortMate sends the decoded bytes directly without appending a newline, and returns only a redacted byte summary. This is suitable for binary serial frames, bootloader packets, and raw TCP/Telnet payloads; Telnet escaping is applied only when required by the negotiated transport. The payload is bounded to 4 MiB and still requires the write-input grant.
{
"sessionId": "board-uart",
"encoding": "hex",
"data": "55 aa 00 ff"
}list_transfers and get_transfer expose task IDs, protocol, progress, status, and timing while replacing both paths with <redacted-path>. start_transfer is the single transfer-start tool for SFTP, SCP, TFTP, XModem, YModem, and ZModem. Each call selects exactly one source form: a string source path, a virtual MCP file in source: { kind: "mcp", fileName, contentBase64 }, legacy top-level fileName plus contentBase64, or uploadId for a completed resumable upload. Virtual content and uploadId require the transfer scope; directly reading or writing an unprefixed path on the PortMate host additionally requires the high-risk host-files scope. The virtual form sends bytes in the MCP request and never resolves a client path or requires a user-selected folder on the PortMate desktop host. At least one endpoint must use remote:, ssh:, or the constrained load: device receiver form; unprefixed string paths are local to the PortMate desktop host, and pure local-to-local copy is not exposed through MCP.
Upload with SFTP:
{
"sessionId": "edge-router",
"protocol": "sftp",
"source": "/home/operator/firmware.bin",
"destination": "remote:/tmp/firmware.bin"
}SCP uses the same unified tool with protocol: "scp". Client-held bytes can be sent as a virtual MCP file without first creating a path on the PortMate host:
{
"sessionId": "edge-router",
"protocol": "scp",
"source": { "kind": "mcp", "fileName": "firmware.bin", "contentBase64": "AAECAwQF" },
"destination": "remote:/tmp/firmware.bin"
}Download by reversing the sides, for example source: "remote:/var/log/messages" and destination: "/home/operator/messages". SFTP and SCP may also copy between two remote: paths on the same authorized session. Use the returned task ID with get_transfer or cancel_transfer. retry_transfer is available for persistent path-backed tasks; virtual and uploadId tasks must be submitted again because their private staging copy is removed at task completion.
For a U-Boot-style device receiver, upload a local file with the matching Modem protocol and set the destination to load:loadx, load:loady, or load:loadz. loadx and loady are standard U-Boot commands; use loadz only when the target firmware provides that command. Optional validated query parameters add the load address and serial transfer rate:
{
"sessionId": "board-uart",
"protocol": "ymodem",
"source": "/home/operator/firmware.bin",
"destination": "load:loady?address=0x80000000&baud=115200"
}PortMate sends the device command before starting the protocol. A baud parameter is accepted only for a connected serial session; PortMate switches the local port for the transfer and restores its original rate afterward. The endpoint grammar cannot contain an arbitrary shell command.
TFTP is also available directly from the desktop Transfer Tasks dialog. It starts a one-shot server on the PortMate host and drives U-Boot through any connected interactive session. MCP clients select protocol: "tftp" in start_transfer with either a local desktop source or inline content:
{
"sessionId": "board-uart",
"protocol": "tftp",
"source": {
"kind": "mcp",
"fileName": "firmware.bin",
"contentBase64": "AAECAwQF..."
},
"destination": {
"kind": "tftpboot",
"address": "0x81800000",
"deviceIp": "192.168.255.1",
"serverIp": "192.168.255.2",
"bindPort": 0
}
}deviceIp is required. address, fileName, serverIp, bindHost, bindPort, and timeoutSeconds are optional: the load address defaults to ${loadaddr}, the requested name defaults to the local source name, serverIp can be inferred from the route to the device, the bind host defaults to the advertised server IP, the TFTP protocol default port is 69, and the timeout defaults to 60 seconds. The desktop dialog defaults to bindPort=0 so it does not require Unix root privileges or conflict with a system TFTP daemon. When a request explicitly uses port 69 and that port is unavailable, PortMate automatically falls back to a free high port. The generated U-Boot command includes the explicit serverIp:port:fileName form, which is required by LWIP-based U-Boot builds that ignore tftpdstp; legacy builds also receive setenv tftpdstp for compatibility. Explicit timeouts must be at least 5 seconds and have no application-defined upper limit. bindPort=0 chooses a free port. The legacy "destination":"load:tftpboot?deviceIp=..." string remains supported. PortMate temporarily sends setenv ipaddr, setenv serverip, and setenv tftpdstp followed by tftpboot; it never sends saveenv.
The server accepts RRQ only from deviceIp, serves only the selected name, supports the common blksize, tsize, timeout and windowsize options, and closes on completion, cancellation, failure, or timeout. Ports below 1024 may require elevated privileges on Unix; bindPort=0 or a port above 1023 avoids that requirement when the target U-Boot supports either the explicit serverIp:port:fileName form or tftpdstp. Transfer starts are asynchronous. Use the returned ID with get_transfer; final bytesDone, status, and message report the transferred byte count, completion state, and any error.
Live byte counts and the progress bar are retained, with updates throttled to
about 300 ms. Commit 2f7bbe66 (2026-10-09) removes full Store writes from this
hot path; queue/start/finish/failure/cancellation still persist. The original
0.1.12 builds predate that fix: a slow Store write can delay every TFTP block,
so the version number alone does not establish that a binary contains it.
The three 500 ms gaps between U-Boot setup commands are separate from DATA/ACK
pacing. Completed average speed includes that startup time. Legacy requests still use one ACK per block (512 bytes by default, up to 1468 via blksize). A client requesting RFC 7440 windowsize can receive up to eight blocks per ACK. PortMate does not change bootloader environment settings to enable this. An explicit session rate limit keeps a one-block window.
For content produced on another MCP client, use the virtual source form of start_transfer. It sends one standard Base64 value without requiring the source to exist on the desktop host or granting access to a local folder. The decoded payload limit is 4 MiB. For larger files, use the resumable upload workflow below:
{
"sessionId": "board-uart",
"protocol": "tftp",
"source": {
"kind": "mcp",
"fileName": "firmware.bin",
"contentBase64": "AAECAwQF..."
},
"destination": {
"kind": "tftpboot",
"deviceIp": "192.168.255.1",
"serverIp": "192.168.255.2",
"bindPort": 0
}
}For files up to 512 MiB, compute the whole-file SHA-256 and use the resumable upload workflow. begin_content_upload returns an upload ID and the maximum decoded chunk size:
{
"sessionId": "board-uart",
"protocol": "tftp",
"fileName": "firmware.bin",
"sizeBytes": 8388608,
"sha256": "0000000000000000000000000000000000000000000000000000000000000000",
"destination": {
"kind": "tftpboot",
"deviceIp": "192.168.255.1",
"serverIp": "192.168.255.2",
"bindPort": 0
}
}Append standard-Base64 chunks in order. offset is the decoded byte offset and must equal the previous response's nextOffset:
{
"uploadId": "the-begin-response-upload-id",
"offset": 0,
"contentBase64": "AAECAwQF..."
}After the response reports complete: true, call start_transfer with {"uploadId":"..."}. TFTP destination options are validated and bound by begin_content_upload; do not add top-level deviceIp or related fields to the final start request. Call cancel_content_upload with the same argument to discard an incomplete upload. Active uploads share a 1 GiB declared-size quota and uploads older than 24 hours are removed when a new upload begins.
Both workflows stage content in the desktop application's private data directory, validate safe file names and transfer routes, and remove staged content after use. The bytes are not included in MCP audit records or returned as client-supplied paths. SFTP/SCP destinations use remote: or ssh:, for example remote:/tmp/firmware.bin; TFTP and Modem destinations use constrained load: endpoints. Only the final transfer start follows the normal MCP write approval policy, so individual chunks do not create approval prompts. Staged-content tasks cannot be retried after the staging file is removed; start a new upload instead.
In Tools → Port forwarding, Entry address / port is where clients connect;
Target service address / port is the original service being forwarded. Local
mode listens on the PortMate computer and connects to the target from the SSH
host; remote mode reverses these sides. Accordingly, target 127.0.0.1 means the
SSH host in local mode and the PortMate computer in remote mode. Dynamic mode
provides a local SOCKS5 entry with client-selected destinations. The dialog shows
the current direction and explains bind addresses, automatic ports and server restrictions.
create_tunnel, list_tunnels, and stop_tunnel expose both route boundaries. Use egress: "ssh" with a connected, authorized SSH or Tmux sessionId, or use egress: "portmate-host" without a session to reach TCP targets available directly from the machine running PortMate. Neither boundary modifies the operating system routing table.
Local forwarding sends one local listener to a fixed target through SSH:
{
"sessionId": "edge-router",
"egress": "ssh",
"mode": "local",
"bindHost": "127.0.0.1",
"bindPort": 15432,
"targetHost": "db.internal",
"targetPort": 5432,
"label": "Database route"
}Use mode: "remote" for server-side SSH forwarding. Use mode: "dynamic" for a route-specific SOCKS5 proxy; dynamic mode needs no fixed target and supports bindPort: 0 to request an available local port. SSH dynamic routes may omit routeRules to allow every target; a non-empty list restricts exact domains, *.example.com suffixes, IP addresses, or IPv4/IPv6 CIDRs. A rule can also restrict one port.
{
"sessionId": "edge-router",
"egress": "ssh",
"mode": "dynamic",
"bindHost": "127.0.0.1",
"bindPort": 0,
"routeRules": [
{ "host": "*.internal.example", "port": 443 },
{ "host": "10.20.0.0/16", "port": null },
{ "host": "2001:db8:42::/48", "port": 22 }
],
"label": "Device network SOCKS5"
}Binding a local listener to a non-loopback address exposes it to that interface. Keep per-write confirmation enabled unless the client and route policy are fully trusted.
For a fixed route reachable from the PortMate host, call the same tool with egress: "portmate-host"; omit sessionId. Host egress supports local and dynamic, but not SSH remote forwarding:
{
"egress": "portmate-host",
"mode": "local",
"bindHost": "127.0.0.1",
"bindPort": 0,
"targetHost": "192.168.33.222",
"targetPort": 443,
"allowRemoteBind": false,
"label": "PortMate host route"
}For a PortMate-host SOCKS5 proxy, routeRules must contain at least one allowed target. Non-loopback listeners such as 0.0.0.0 are rejected unless the call also sets allowRemoteBind: true; that flag is visible in the MCP approval target and audit record. Host routes are runtime-only and owned by the normalized MCP Client ID: another client cannot list or stop them. They survive terminal session disconnects and stop through stop_tunnel or when PortMate exits; they are never restored from a saved profile.
All current Tunnel listener modes are TCP semantics: local/remote forwarding uses TCP, and dynamic is a TCP CONNECT-style SOCKS5 proxy. UDP datagrams are available only through the bounded udp_request MCP exchange; persistent UDP association, SOCKS5 UDP ASSOCIATE, multicast, broadcast, DTLS, and QUIC session management are not implemented. TFTP uses its separate one-shot UDP service through start_transfer.
{
"egress": "portmate-host",
"mode": "dynamic",
"bindHost": "0.0.0.0",
"bindPort": 1080,
"routeRules": [
{ "host": "192.168.33.0/24", "port": null },
{ "host": "service.internal", "port": 443 }
],
"allowRemoteBind": true,
"label": "Host network SOCKS5"
}MCP agents that run in a container or on a separate machine cannot reach listeners bound on the desktop host. tunnel_request is the MCP data plane for that case: it sends one bounded raw TCP request through an existing client-owned PortMate-host route from the desktop host and returns the response bytes as standard Base64, so no host-side listener is involved. Fixed local routes use their configured target; dynamic SOCKS5 routes require targetHost and targetPort and enforce the tunnel routeRules. Only the MCP client that created the host route can send requests through it, and each call is a tunnel-scope write with its own audit record and optional per-write confirmation:
{
"tunnelId": "2a24...route-id",
"encoding": "base64",
"data": "R0VUIC9oZWFsdGh6IEhUVFAvMS4xDQpIb3N0OiBkZXZpY2UuaW50ZXJuYWwNCg0K",
"timeoutMs": 10000,
"closeWrite": true
}For a dynamic route, add "targetHost" and "targetPort" to select the SOCKS5 destination. closeWrite defaults to true and half-closes the request stream after writing, which lets request/response services such as HTTP detect the end of the request; set it to false for protocols that keep sending and rely on timeoutMs. The request payload is bounded to 4 MiB, the response is read until the remote closes or timeoutMs (100 ms to 30 s) elapses, and the result reports sentBytes, receivedBytes, responseBase64, truncated, and timedOut.
tunnel_request is a single TCP request/response data-plane exchange, not a persistent file stream. When the MCP Agent can reach the PortMate host listener, it should connect to the returned bindPort with a normal TCP/SFTP client or SOCKS5 client for streaming transfers. When it cannot reach that listener, use the resumable begin_content_upload/append_content_upload/start_transfer workflow instead.
udp_request sends one UDP datagram through an existing PortMate-host route owned by the current Client and waits for one response datagram. Each datagram is limited to 65507 bytes and timeout is 100 ms to 30 s. It can carry an individual TFTP, QUIC, or DTLS packet, but does not maintain protocol connection state or implement the SOCKS5 UDP ASSOCIATE control channel; use TFTP start_transfer or resumable uploads for complete file transfers.
Recursive remote deletion and remote batch enumeration require Python 3 on a
POSIX SSH host with descriptor-relative filesystem primitives (dir_fd).
Directories are opened without following links and child operations use those
held descriptors. SFTP-only hosts, missing Python, and unsupported operating
systems are explicitly rejected instead of falling back to path recursion.
Single-file SFTP/SCP transfers are unchanged. Batch paths are still revalidated
by the selected transfer protocol at execution time; the plan is not a lock on
future remote filesystem changes.
SFTP uploads, remote copies and no-overwrite file moves require the
hardlink@openssh.com extension for safe final commit. Peers without it (including
the tested Paramiko, SFTPGo and Erlang configurations), or which reject the
advertised operation (the tested rclone configuration), are explicitly rejected
instead of falling back to a potentially overwriting rename. Upload/copy data
remains in the .portmate-part file; downloads remain available. The SSH
compatibility matrix pins this capability per server and checks either successful
commit or the rejection, intact partial data and absent final destination.
Remote symlink moves/renames are rejected before mutation: hardlink behavior for
symlink sources differs across server OSes and cannot guarantee preserving the
link itself. Deleting the final symlink without following its target remains supported.
For passwordless SSH devices, choose none in the profile authentication order.
This uses protocol-level none authentication, not an empty password; host-key
verification and the configured connection policies still apply.
Build the production frontend:
npm run buildBuild native desktop packages:
npm run desktop:buildCross-build an unsigned Windows GNU x86_64 portable archive from Linux with a configured
MinGW-w64 toolchain and Windows GNU libsodium.a:
npm run desktop:build:windows-gnuNative bundles are written below target/release/bundle/. The Windows GNU portable
build writes target/release-artifacts/PortMate-0.1.18-windows-x86_64-portable.zip
and an extracted directory beside it. With CARGO_TARGET_DIR set, both paths use
that target root instead. Extract the complete ZIP and run portmate.exe, keeping
portmate-mcp.exe, WebView2Loader.dll, and the license files in their original
locations. Windows must have the Microsoft Edge WebView2 Runtime installed.
Before publishing, run the installation, upgrade, rollback, signing, and artifact gates in RELEASE.md on each target platform. A successful local source build is not, by itself, a releasable package.
Normal development gates:
npm test
npm run build
npm run test:release-source
npm run test:release-upgrade
npm run test:rustfmt
cargo test --locked --workspace --features portmate/test-probes
cargo clippy --locked --workspace --all-targets -- -D warningsFocused compatibility gates:
npm run test:terminal-compat
npm run test:vttest-compat
npm run test:tmux-workflow
npm run test:tmux-version-compat
npm run test:workspace-ui
npm run test:ssh-server-compat
npm run test:ssh-gssapi-compat
npm run test:tcp-telnet-server-compatMCP client matrices:
npm run test:mcp-stdio-client
npm run test:mcp-http-client
npm run test:mcp-typescript-client
npm run test:mcp-python-client
npm run test:mcp-go-client
npm run test:mcp-rust-client
npm run test:mcp-ruby-client
npm run test:mcp-java-client
npm run test:mcp-kotlin-client
npm run test:mcp-csharp-client
npm run test:mcp-swift-client
npm run test:mcp-sdk-freshnessDocker compatibility matrices, Chrome/Playwright checks, native keyring probes, and desktop packaging require additional tools or the corresponding operating system. RELEASE.md is the source of truth for the complete release gate.
PortMate/
├── src/ React/TypeScript desktop workspace
├── src-tauri/ Tauri application, command adapters, platform integration
│ └── src/
│ ├── backend_application.rs
│ ├── backend_automation.rs
│ ├── backend_security.rs
│ ├── backend_storage.rs
│ └── backend_transport.rs
├── crates/
│ ├── portmate-core/ Shared models, Store, host keys, grant policy
│ ├── portmate-mcp/ MCP stdio/HTTP bridge
│ ├── portmate-kdf/ Portable Vault KDF boundary
│ ├── portmate-keyring/ Cross-platform native keyring boundary
│ └── russh-sftp/ SFTP compatibility implementation used by PortMate
├── scripts/ Production build and packaging tools
├── test/ All tests, test tooling, and fixtures
└── .github/workflows/ Native CI and SDK freshness workflows
The Tauri root lib.rs contains only module registration and public re-exports. Transport, security, storage, automation, and application logic remain with their owning boundaries instead of accumulating in the crate root.
Tests are centralized under test/: frontend/ and scripts/
contain Vitest suites, rust/<package>/ contains Rust suites, support code, integration
tests and probe binaries, and tooling/, compat/, fixtures/, and setup/ contain
their runners and inputs. Rust source files retain only cfg(test) registrations and
necessary test hooks; private-module access and existing Cargo test filters are preserved.
npm test type-checks test sources separately from the production frontend build.
Local review reproducers in tmp/ are not discovered by the normal test suite.
- Profiles, custom scripts, runtime state, grants, and index data are stored in
portmate-store.sqlite3under the platform application-data directory. - The JSON compatibility snapshot, logs, exports, and IPC endpoint use bounded, atomic, or private-permission write paths as appropriate.
- Raw terminal logs can contain sensitive operational data. Enable them only when needed and review redaction before sharing a diagnostic bundle.
- MCP read responses remove credential references and sensitive local paths. Writes still require a grant and record the source Client ID, action, session, and final result.
- Report vulnerabilities privately through GitHub Security Advisories. Do not place credentials, private keys, production hostnames, or unredacted Stores in a public issue.
See SECURITY.md for the security policy and reviewed dependency exceptions.
- PortMate is not yet a complete WindTerm or Bitvise replacement and does not currently promise a stable release channel.
- Real Microsoft Active Directory GSSAPI/PAC evidence is still pending. The current Samba matrix proves AD-compatible protocol coverage only.
- Remote Windows OpenSSH Sysmon and real macOS/FreeBSD SSH/SFTP/SCP/remote-forward evidence require external hosts.
- Virtual PTYs cannot replace physical serial/USB serial and modem power-loss, unplug, and line-state testing.
- Final artifacts have not yet been signed with Windows Authenticode or Apple Developer ID and notarized.
- MCP HTTP has no built-in TLS termination.
PortMate does not substitute simulated results for these gates. Required environments and current boundaries are tracked in PROGRESS.md.
- PLAN.md: product goals and key design decisions
- PROGRESS.md: implementation record, compatibility matrices, and remaining gates
- RELEASE.md: release checklist
- SECURITY.md: security policy, dependency exceptions, and vulnerability reporting
- README.zh-CN.md: Simplified Chinese README
Before submitting a change:
- Keep behavior within the existing ownership boundaries and avoid unrelated refactors.
- Add tests for user-visible behavior and protocol or security boundaries.
- Run frontend, Rust, and compatibility checks proportional to the change.
- Never commit real credentials, private keys, tokens, production Stores, unredacted logs, or signing material.
- Open an issue before a large protocol, storage-format, or security-policy change and describe its compatibility and migration impact.
PortMate's workspace and interaction model is inspired by WindTerm. Its SSH trust and key-management model draws from Bitvise and OpenSSH. The terminal uses xterm.js, the desktop runtime uses Tauri, and the bundled default monospace font is JetBrains Mono. Windows terminal elevation uses gsudo.
PortMate is licensed under the Apache License 2.0. The bundled JetBrains Mono font is distributed under the SIL Open Font License 1.1; see THIRD_PARTY_LICENSES/JetBrainsMono-OFL.txt. The Windows gsudo helper is MIT-licensed; see THIRD_PARTY_LICENSES/gsudo-MIT.txt.



