mcp-server: Instructions file for Codex

AGENTS.md

mcp-server AGENTS.md is an instructions file for Codex, OpenCode from jorben/mcp-server. It costs 1,085 tokens per session, scanned A, original, MIT.

A set of AGENTS.md instructions for developing an MCP server in TypeScript. MCP, or Model Context Protocol, is a way to expose tools that an AI agent can use.

In plain words
What is it for?
Building TypeScript into JavaScript, starting the production or development server, running tests and coverage, linting code, and configuring its host, port, and optional authorization key.
Why use it?
It gives coding agents the project’s build, testing, linting, configuration, and startup rules in one place.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { MCPTool } from '../../types/mcp.js';.

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jorben/mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/jorben/mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,085 This file is loaded in full into every session.
When invoked 1,085 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.01085 $0.01085
Opus 5.5 $0.00434 $0.00434
Sonnet 5.5 $0.00217 $0.00217
Haiku 4.5 $0.00109 $0.00109

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

Security

Grade A, and why

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

How it starts

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

AGENTS.md - MCP Server Development Guide

This document provides guidelines and commands for agents working on this codebase.

Project Overview

This is a TypeScript-based MCP (Model Context Protocol) server with a pluggable tool architecture. The server uses Express for HTTP endpoints and Zod for schema validation.

Build Commands

# Build TypeScript to JavaScript
npm run build

# Start production server
npm start

# Development with hot reload
npm run dev

# Run linting
npm run lint

# Fix linting errors automatically
npm run lint:fix

Testing

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with coverage
npm test -- --coverage

# Run a single test file
npx vitest run src/tools/echo/index.test.ts

# Run tests matching a pattern
npx vitest run -t "echo"

Environment Variables

Variable Default Description
PORT 3000 Server port
HOST 0.0.0.0 Server host
AUTHORIZATION_KEY - Bearer token for API authentication (optional)

Code Style Guidelines

TypeScript Configuration

  • Target: ES2022
  • Module: NodeNext
  • Strict mode enabled
  • Explicit return types: Off (optional, but recommended for public APIs)
  • Use unknown instead of any when type is uncertain

Naming Conventions

  • Variables/Functions: camelCase (toolRegistry, getAllTools)
  • Classes: PascalCase (ToolRegistry, MCPTool)
  • Constants: SCREAMING_SNAKE_CASE for config values
  • Files: kebab-case for general files, index.ts for directory entry points
  • Interfaces: Prefix with MCP for domain types (MCPTool, MCPMethodDefinition)

Imports

  • Use .js extension in imports even for TypeScript files (required for NodeNext module resolution)
  • Group imports in this order: external dependencies, internal modules
  • Use named exports for utilities and classes
  • Use default exports for tool modules
import { z } from 'zod';
import { MCPTool } from '../../types/mcp.js';

Read the full file on GitHub · 176 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 · 176 lines · 1,085 tokens per session scan A d1908def5f2d

Subscribe to this mod's changes

mcp-server AGENTS.md is an instructions file published in the GitHub repository jorben/mcp-server (1 stars, last pushed 9mo ago), licensed MIT. It adds 1,085 tokens to every session, about $0.0043 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

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

mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-server AGENTS.mdjorben/mcp-serverInstructions file19mo agoMITA1,085Codex, 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