hatago-mcp-hub: Instructions file for Codex

AGENTS.md

hatago-mcp-hub AGENTS.md is an instructions file for Codex, OpenCode from himorishige/hatago-mcp-hub. It costs 3,694 tokens per session, scanned A, original, MIT.

Repository instructions for Hatago MCP Hub, a lightweight central service that connects coding tools to multiple MCP servers. MCP is a standard way for AI clients to use external tools and data; the repository is a monorepo, meaning several related packages live and are developed together.

In plain words
What is it for?
Use them when developing, testing, documenting, or releasing Hatago MCP Hub and its TypeScript packages.
Why use it?
They give agents and developers the project’s required structure, technologies, commands, design rules, and release practices in one place. This reduces mistakes when working across its packages.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 hatago-mcp-hub AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/himorishige/hatago-mcp-hub/agents-md"><img src="https://agentmods.dev/badge/instructions/himorishige/hatago-mcp-hub/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,694 This file is loaded in full into every session.
When invoked 3,694 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.03694 $0.03694
Opus 5 $0.01847 $0.01847
Sonnet 5 $0.00739 $0.00739
Haiku 4.5 $0.00369 $0.00369

Measured 9d ago against content hash 947cd7661b58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

hatago-mcp-hub 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 9d 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 · 275 lines

How it starts

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

AGENTS ガイドライン(開発支援用)

このドキュメントは、リポジトリで作業する AI エージェント/開発者向けの運用ガイドです。基本方針、モノレポ構成、テックスタック、開発コマンド、CLI/設定、MCP 準拠要点、設計哲学、リリース運用、ドキュメント方針などを最新の状態でまとめています。

— ドキュメントは日本語(です・ます調)で記載します。技術文書ではキャラクター口調は使用しません。

プロジェクト概要

Hatago MCP Hub は、複数の MCP(Model Context Protocol)サーバーを一元管理する軽量ハブです。Claude Code / Codex CLI / Cursor / Windsurf / VS Code など各種クライアントから、ローカル/NPX/リモートの MCP サーバーへ透過的に接続するための中継点を提供します。設計の核は「薄い実装(最低限の転送・管理に徹する)」です。

テックスタック

  • ランタイム: Node.js 20+(Cloudflare Workers 対応: リモートサーバー接続機能中心)
  • 言語: TypeScript(ESM, strict)
  • Web フレームワーク: Hono(HTTP モード)
  • MCP SDK: @modelcontextprotocol/sdk(Zod ベースの schema 必須)
  • ビルド: tsdown
  • テスト: Vitest
  • Lint/Format: ESLint + Prettier(現行の実行スクリプトに準拠)
  • パッケージマネージャー: pnpm

補足: 一部ドキュメントに Biome 言及がありますが、現状のルート実行コマンドは ESLint/Prettier を使用します(pnpm lint / pnpm format)。

モノレポ構成

  • パッケージマネージャー: pnpm
  • 主要ワークスペース(公開想定スコープ: @himorishige/*
    • packages/core@himorishige/hatago-core
    • packages/runtime@himorishige/hatago-runtime
    • packages/transport@himorishige/hatago-transport
    • packages/hub@himorishige/hatago-hub
    • packages/server@himorishige/hatago-server
    • packages/cli@himorishige/hatago-cli
    • packages/mcp-hub@himorishige/hatago-mcp-hub(現行の公開対象)
  • その他
    • examples/: サンプル(Node / Workers)
    • docs/: アーキテクチャ、設定、運用ガイド
    • schemas/: JSON Schema とサンプル設定(schemas/config.schema.json

参考ツリー(抜粋):

packages/
  mcp-hub/      # メイン npm パッケージ(CLI `hatago` 提供)
  server/       # HTTP/StreamableHTTP サーバー実装
  hub/          # ハブ中核(ルーティング/レジストリ)
  core/         # 共通型/定数
  runtime/      # 実行時コンポーネント
  transport/    # STDIO/HTTP/SSE 等のトランスポート
schemas/
  config.schema.json  # 設定スキーマ
examples/
  node-example/
  workers-example/

前提ツール・環境

  • Node.js 20 以上(engines に準拠)
  • TypeScript(ESM)
  • Lint/Format: ESLint + Prettier(ルートの eslint.config.js/prettier.config.jspnpm スクリプトに準拠)

HTTP モードの追加オプション(計測/ログ):

  • HATAGO_METRICS=1 でインメモリ計測を有効化し /metrics を公開
  • HATAGO_LOG=jsonHATAGO_LOG_LEVEL に準拠)で JSON ログを有効化

Read the full file on GitHub · 275 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. 9d ago First seen · 275 lines · 3,694 tokens per session scan A 947cd7661b58

Subscribe to this mod's changes

hatago-mcp-hub AGENTS.md is an instructions file published in the GitHub repository himorishige/hatago-mcp-hub (27 stars, last pushed 12mo ago), licensed MIT. It adds 3,694 tokens to every session, about $0.0185 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-30.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens