ssh-mcp AGENTS.md

An AGENTS.md instruction file describing how AI coding tools should work with the blackaxgit/ssh-mcp repository.

In plain words
What is it for?
Use it when Codex or another AGENTS.md-aware tool is developing, testing, building, or releasing this Python SSH MCP server.
Why use it?
It records the repository layout, configuration, testing commands, and project-specific facts so agents do not invent procedures.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/blackaxgit/ssh-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/blackaxgit/ssh-mcp

Made for: Codex, OpenCode.

Per session 5,785 This file is loaded in full into every session.
When invoked 5,785 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.05785 $0.05785
Opus 5 $0.02892 $0.02892
Sonnet 5 $0.01157 $0.01157
Haiku 4.5 $0.00579 $0.00579

Measured yesterday against content hash 7142c86c7e62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ssh-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 198 lines

How it starts

The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

AI coding assistant context for this repository. Read natively by Codex, Cursor, Copilot, Gemini CLI, Windsurf, and 20+ AGENTS.md-aware tools. Claude Code users: load via @AGENTS.md in CLAUDE.md.

Command sources: .github/workflows/ci.yml (the gates), .github/workflows/release.yml (build/publish), CONTRIBUTING.md, pyproject.toml. There is no Makefile — copy commands from CI rather than inventing them.

Overview

  • Purpose: SSH MCP server that lets AI assistants execute commands on remote servers.
  • Owner: TODO: team/maintainer
  • Type: app — published as a PyPI wheel (uvx blc-ssh-mcp) and a container image (ghcr.io/blackaxgit/ssh-mcp). The PyPI distribution is blc-ssh-mcp, not ssh-mcp — that name belongs to an unrelated project this repo has never owned; see the comment above name in pyproject.toml. The import package is still ssh_mcp and the image is still .../ssh-mcp.
  • Stacks: Python 3.11-3.14, uv + hatchling, asyncssh, MCP SDK, Starlette/uvicorn (HTTP transport only)
  • Deploy targets: N/A — this is a tool operators run themselves, not a hosted service
  • Version: src/ssh_mcp/__init__.py is the single source (hatchling reads it). Currently 0.5.6; CHANGELOG.md [Unreleased] targets 0.6.0.

What this tool does matters for how you treat it. Every tool call runs a shell command or transfers a file on a remote host. A bug here is not a crashed request; it is an unintended command on someone's infrastructure, or a write to the operator's own machine.

Commands

uv sync --locked --extra dev        # setup. --locked is required; see Gotchas
uv run pytest                       # full suite (~690 tests, seconds)
uv run pytest tests/test_ssh.py::TestRedactSecrets -v          # one class
uv run pytest 'tests/test_ssh.py::TestRedactSecrets::<test_name>' -v   # one test
uv run pytest -k "confinement" -v                              # by keyword

Full gate, exactly as CI runs it — run all six before opening a PR:

Read the full file on GitHub · 198 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 198 lines · 5,785 tokens per session scan A 7142c86c7e62

Subscribe to this mod's changes

ssh-mcp AGENTS.md is an instructions file published in the GitHub repository blackaxgit/ssh-mcp (1 stars, last pushed 27d ago), licensed MPL-2.0. It adds 5,785 tokens to every session, about $0.0289 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.