Skip to main content

Windows-first local MCP transport for stateful SSH server operations

Project description

Codex ServerOps MCP

Windows-first local MCP server for operating explicitly configured Linux servers from Codex through the Windows OpenSSH client. It keeps stateful Bash sessions alive, exposes structured file operations and supports guided sudo without sending passwords or key passphrases through MCP parameters.

Why this exists

Codex can already run commands such as:

ssh my-server "docker compose ps"

But this is not the same as working inside a persistent remote environment.

Without a dedicated integration, Codex must repeatedly rebuild connection context, quote remote commands correctly and reconstruct shell state for every operation. Working with password authentication, long-running processes, interactive commands, changing directories, activated virtual environments and sudo is especially awkward.

ServerOps MCP was built to solve that gap.

It provides Codex with persistent, broker-owned SSH sessions that keep their Bash state across multiple MCP calls. Codex can enter a project directory, activate a virtual environment, run commands, inspect output and continue working in the same remote shell.

Persistence does not make the shell indestructible. If a command exits or replaces the original Bash, or leaves it impossible to verify, ServerOps loses the session in a controlled way and never retries an uncertain command automatically.

Sensitive interaction remains local. SSH passwords, private-key passphrases, host-key decisions and interactive sudo authentication are handled in separate visible windows and are never sent through MCP tool arguments.

The goal is not to replace SSH or create a remote security sandbox. The goal is to turn an existing SSH-accessible Linux server into a practical, stateful workspace for Codex while continuing to use OpenSSH, Linux permissions and the operator's existing server configuration.

In practice, this enables workflows such as:

  • diagnosing services and containers over several related commands;
  • keeping the current directory and shell environment between operations;
  • controlling long-running or interactive terminal processes;
  • using password, key and guided sudo authentication without exposing credentials to Codex;
  • reading and safely patching configured remote project files; and
  • rediscovering broker-owned sessions after the disposable MCP process restarts, without rebuilding SSH or retrying a command.

Release status: version 0.1.0 is the first public release. Its automated, packaging and contained integration gates are release-blocking. Real-network and visible credential checks remain documented operator evidence because public CI cannot reproduce a real SSH/sudo server. Start with disposable or non-production accounts while evaluating this initial release.

What it provides

  • direct SSH targets and existing OpenSSH aliases;
  • a guided local profile assistant with password, existing-key and new-key workflows;
  • stateful SSH sessions that preserve working directory and shell environment while the original Bash remains healthy and controllable;
  • completed commands plus interactive terminal control;
  • structured UTF-8 reads and hash-protected normal-user file edits below configured roots;
  • explicit sudo acquisition, reuse and release plus optional separate root sessions;
  • local redacted JSONL audit events; and
  • a checkout-free uvx installer for published releases.

The Linux server needs no ServerOps agent or daemon.

Requirements

  • Windows 10 or Windows 11;
  • Python 3.12 for the current release line;
  • Windows OpenSSH Client;
  • uv / uvx; and
  • an SSH-accessible Linux account with Bash. Structured file tools additionally need the common utilities listed in Structured remote files.

Use a dedicated non-root SSH account and narrow server-side sudoers rules. ServerOps permissions guide which MCP tools are offered; they do not replace Linux permissions, backups or a remote sandbox.

Getting started

The package is not published as 0.1.0 yet. Choose the matching path in Windows installation and Doctor:

  • use the exact PyPI pin after a public release; or
  • use the explicitly marked local-wheel flow when evaluating a development checkout.

After restarting Codex, follow Getting started to create the first profile, open a session and verify the connection without putting a credential into chat.

Documentation

Development

uv sync --locked --all-groups --python 3.12
$env:PYTHONPATH = "src"
.\.venv\Scripts\python.exe -m unittest discover -s tests -v
.\.venv\Scripts\ruff.exe check .

No credentials, private keys, host-specific configuration or generated runtime material belong in the repository. See SECURITY.md before reporting a vulnerability.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_serverops_mcp-0.1.0.tar.gz (270.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_serverops_mcp-0.1.0-py3-none-any.whl (165.9 kB view details)

Uploaded Python 3

File details

Details for the file codex_serverops_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: codex_serverops_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 270.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for codex_serverops_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f4c3a78fad0b1579a4d55a1e94357985fd1e1a02cb3b875617279b724e9cea6
MD5 5ea22ce7b9259f2ec3a8dd3686a9075e
BLAKE2b-256 d2e641cc55d673e21e9198b8a54b634aaf7979395eade09453be06733c8fc914

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_serverops_mcp-0.1.0.tar.gz:

Publisher: release.yml on cyyprezz/codex-serverops-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codex_serverops_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codex_serverops_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc61b8f76d04472410975f6cf3fe7772c64fd82d7a93ba1cda3f930099545e9f
MD5 39af950e07823e9ad2b64e976e1577c3
BLAKE2b-256 ad261579164eab24a835b44e65b36eaf4e53b7fa8b2ac86edab058416938c5a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_serverops_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on cyyprezz/codex-serverops-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page