ssh-mcp-server: Instructions file for Codex

AGENTS.md

ssh-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from KinoThe-Kafkaesque/ssh-mcp-server. It costs 540 tokens per session, scanned A, original, MIT.

Project instructions for an SSH server that lets coding agents run commands and transfer files on remote computers. It is a TypeScript MCP server, a standard way for tools to connect to AI assistants.

In plain words
What is it for?
Use it when changing the server, installing dependencies, building the TypeScript code, or checking how development work should be done.
Why use it?
It gives contributors the repository’s required structure, commands, coding rules, and minimum build check in one place.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is KinoThe-Kafkaesque/ssh-mcp-server's own configuration. It tells Codex and OpenCode how to work on ssh-mcp-server 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-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to KinoThe-Kafkaesque/ssh-mcp-server. 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/KinoThe-Kafkaesque/ssh-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/KinoThe-Kafkaesque/ssh-mcp-server

Made for: Codex, OpenCode.

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-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kinothe-kafkaesque/ssh-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/kinothe-kafkaesque/ssh-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kinothe-kafkaesque/ssh-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/kinothe-kafkaesque/ssh-mcp-server/agents-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-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kinothe-kafkaesque/ssh-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/kinothe-kafkaesque/ssh-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 540 This file is loaded in full into every session.
When invoked 540 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00540 $0.00540
Opus 5.5 $0.00216 $0.00216
Sonnet 5.5 $0.00108 $0.00108
Haiku 4.5 $0.00054 $0.00054

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

Security

Grade A, and why

ssh-mcp-server 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 2mo 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.

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 · 31 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This is a TypeScript MCP server for SSH and rsync operations. Runtime source lives in src/, with src/index.ts currently containing the MCP server setup, tool schemas, SQLite credential storage, and command execution handlers. Compiled JavaScript is emitted to build/ by TypeScript and should be treated as generated output. Root configuration includes package.json, package-lock.json, and tsconfig.json. Documentation lives in root Markdown files such as README.md.

Build, Test, and Development Commands

  • npm install: install runtime and development dependencies from package-lock.json.
  • npm run build: compile src/**/*.ts to build/ using tsc; run this before shipping changes.
  • npm start: run the built server with node build/index.js over stdio.
  • npx tsc --noEmit: optional type-check-only pass when you do not want to update build/.

There is currently no npm test script. Until a test harness is added, npm run build is the minimum verification step.

Coding Style & Naming Conventions

Use TypeScript with strict mode enabled. Keep indentation at 4 spaces to match the existing source. Prefer clear camelCase names for functions and variables, PascalCase for interfaces and types, and snake_case only for MCP tool names such as ssh_exec and rsync_copy. Keep tool schemas and handler argument types aligned when adding or changing tools.

Testing Guidelines

Add tests when changing command construction, path validation, database behavior, or MCP tool schemas. Prefer focused tests around pure helpers and command-building logic before integration tests that touch real SSH hosts. Name tests after the behavior under test, for example validatePrivateKeyPath.test.ts or rsyncCommand.test.ts, and wire them into a future npm test script.

Commit & Pull Request Guidelines

Recent commits use short imperative subjects such as Update README, Add Dockerfile, and rsync fix. Prefer descriptive imperative messages, for example Fix rsync remote path quoting. Pull requests should describe the tool behavior changed, list local verification commands, and mention any SSH, SQLite, Docker, or Smithery impact.

Read the full file on GitHub · 31 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. 2mo ago First seen · 31 lines · 540 tokens per session scan A 43ec76c77a17

Subscribe to this mod's changes

ssh-mcp-server AGENTS.md is an instructions file published in the GitHub repository KinoThe-Kafkaesque/ssh-mcp-server (11 stars, last pushed 10d ago), licensed MIT. It adds 540 tokens to every session, about $0.0022 per session on Opus 5.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.

Related

ssh-mcp-server AGENTS.md compared with instructions from other repositories

ssh-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ssh-mcp-server AGENTS.mdKinoThe-Kafkaesque/ssh-mcp-serverInstructions file1110d agoMITA540Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode