ssh-mcp: Instructions file for Claude Code

CLAUDE.md

ssh-mcp CLAUDE.md is an instructions file for Claude Code from YawLabs/ssh-mcp. It costs 1,985 tokens per session, scanned C, original, MIT.

Project instructions for ssh-mcp, an MCP server that lets AI tools manage environments and perform operations over SSH.

In plain words
What is it for?
Build or modify SSH environment management, connection pooling, diagnostics, remote commands, file transfers, multi-host execution, searches, log tails, and service-status checks.
Why use it?
They explain how the server is structured and how it handles connection reuse, SSH configuration, proxies, diagnostics, and shutdown.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is YawLabs/ssh-mcp's own configuration. It tells Claude Code how to work on ssh-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ssh-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to YawLabs/ssh-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/YawLabs/ssh-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/YawLabs/ssh-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ssh-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yawlabs/ssh-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/yawlabs/ssh-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yawlabs/ssh-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/yawlabs/ssh-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ssh-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yawlabs/ssh-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/yawlabs/ssh-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,985 This file is loaded in full into every session.
When invoked 1,985 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01985 $0.01985
Opus 5.5 $0.00794 $0.00794
Sonnet 5.5 $0.00397 $0.00397
Haiku 4.5 $0.00198 $0.00198

Measured 2d ago against content hash a2be901510a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

ssh-mcp CLAUDE.md scanned grade C with 1 finding 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 2d ago.

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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- Skip condition 1 — NOT a key file (`looksLikePrivateKey`, ssh.ts). A candidate carrying no private-key marker at all is skipped ALWAYS, agent or not: an empty file, a stray text file, or the classic `IdentityFile ~/.ss
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

CLAUDE.md · 59 lines

How it starts

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

ssh-mcp

MCP server that makes SSH work for AI tools. 21 tools across 4 categories: SSH environment management, diagnostics, remote operations, and higher-level ops.

Architecture

  • src/index.ts — CLI entry point. Starts MCP server with stdio transport. Drains pool on shutdown.
  • src/server.ts — Creates McpServer, registers tools, re-exports all public APIs.
  • src/tools.ts — 21 MCP tools across environment management, diagnostics, remote operations, and higher-level ops.
  • src/ssh.ts — SSH connection primitives (connect, connectRaw, connectWithProxy, resolveConfig, exec, SFTP ops). resolveConfig uses ssh -G for SSH config awareness. Supports ProxyJump for bastion hosts. Auto-diagnoses on connection failure.
  • src/pool.ts — ConnectionPool class. Reuses SSH connections across tool calls with idle TTL, keepalive, and dead connection detection.
  • src/ops.ts — Higher-level operations (multiExec, find, tail, serviceStatus). These wrap common ssh_exec patterns agents build manually.
  • src/diagnose.ts — SSH environment diagnostics (agent, keys, known_hosts, config, connectivity). Handles both Unix and Windows OpenSSH agents. Owns the shared isValidHostname / runArgs helpers and the ssh probe both connectivity checks run.
  • src/env.ts — SSH environment management (ensureAgent, listSshKeys, loadKey, configLookup, fixKnownHosts, checkGitSsh, testConnection). Handles Windows OpenSSH agent service.
  • src/policy.ts — Optional command allow/deny policy for the exec tools, configured via SSH_MCP_COMMAND_WHITELIST / SSH_MCP_COMMAND_BLACKLIST.
  • src/ssh-config.ts — Pure parser for ssh -G output, shared by resolveConfig (ssh.ts) and configLookup (env.ts).
  • bin/ssh-mcp.mjs — Runtime launcher. Prefers the newest oam binary it finds at or above OAM_MIN (the latest oam release, 0.18.0), falls back to running the server in-process on Node. An oam host below the floor never serves: it hands off, with piped stdio, to a newer oam or Node. A candidate (OAM_BIN or discovered) counts only if its --version output carries oam's own banner (oam x.y.z at the start of a line, oamBanner): a bare x.y.z is not enough, or an OAM_BIN pointing at node (v22.x.y) would clear the floor and be spawned as node run dist/index.js with no fallback. process.versions.oam keeps the loose parse (only oam sets it). Owns signal forwarding and escalation.

Read the full file on GitHub · 59 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. 2d ago Changed · +107 tokens per session a2be901510a2
  2. 20d ago Changed · +43 tokens per session 664b43cc6149
  3. 23d ago Changed b7a3927bc324
  4. 1mo ago Changed · +46 tokens per session e13b88c40312
  5. 1mo ago Changed · +13 lines · +1,081 tokens per session scan A → C d2352959ec03
  6. 2mo ago First seen · 46 lines · 708 tokens per session scan A 1806e018579d

Subscribe to this mod's changes

ssh-mcp CLAUDE.md is an instructions file published in the GitHub repository YawLabs/ssh-mcp (6 stars, last pushed 3d ago), licensed MIT. It adds 1,985 tokens to every session, about $0.0079 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

data-scientist copilot-instructions.md

Repository instructions for a data-science workflow in GitHub Copilot, covering datasets, statistics, and analysis files.

realnghon/data-scientist · 373 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens