ssh-mcp-server 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

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/kinothe-kafkaesque/ssh-mcp-server/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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00540 $0.00540
Opus 5 $0.00270 $0.00270
Sonnet 5 $0.00108 $0.00108
Haiku 4.5 $0.00054 $0.00054

Measured 5d ago against content hash 43ec76c77a17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 (10 stars, last pushed 4mo ago), licensed MIT. It adds 540 tokens to every session, about $0.0027 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.