gate-mcp: Instructions file for Codex

AGENTS.md

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

A set of AGENTS.md instructions for work on gate/gate-mcp, a project that connects coding agents to external tools and services. It records project facts, user preferences, API documentation rules, testing expectations, and implementation constraints.

In plain words
What is it for?
Use it when modifying gate-mcp documentation, OpenAPI files, authentication examples, rate limiting, metrics, generated APIs, or tests.
Why use it?
It gives the coding agent the project's established rules and technical context so future changes follow local conventions and avoid known mistakes.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gate/gate-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/gate/gate-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 475 This file is loaded in full into every session.
When invoked 475 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.00475 $0.00475
Opus 5.5 $0.00190 $0.00190
Sonnet 5.5 $0.00095 $0.00095
Haiku 4.5 $0.00047 $0.00047

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

Security

Grade A, and why

gate-mcp 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 3d 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 · 23 lines

What it actually says

AGENTS.md

项目范围

本仓库维护 Gate MCP 的用户文档、客户端接入示例及 Registry 描述。远程 CEX MCP 与独立的本地 MCP 实现应分别核实,不能混用工具数量、名称或能力范围。

文档一致性

  • 工具名称、端点、权限和参数说明必须有可核实依据;以对应版本的工具 Schema 和已确认的服务行为为准,不将推测写成事实。
  • 远程 CEX 公开数据使用 /mcp;需要 Gate OAuth2 的私有连接使用 /mcp/exchange。不要把公开端点用于私有授权示例。
  • 区分注册工具总数与授权后可见工具数,不能把某一账户的权限或某一环境的结果推广到全部用户。
  • 中英文文档的工具、权限、参数、示例及限制保持一致;修改正文时同步检查对应译文、目录和引用。
  • 参数类型、必填、默认值及枚举按具体工具核实。修改接口的 body 结构若与创建接口不同,必须明确说明,不能照搬创建请求。
  • README 中不要将 mcporter 标注为「推荐」或 "Recommended"。

对外内容与验证

  • 只保留用户理解和使用公开功能所需的信息;不写入内部架构、部署拓扑、内部接口、配置细节或非公开源码路径。
  • 文档、示例和截图不得包含真实秘密凭据、个人信息、内部地址或本机私人路径;秘密凭据示例使用明确的占位符。已获准公开的接入标识按其公开用途保留。
  • 修改文档后检查中英文对应关系、链接、锚点、表格和 JSON 示例;Schema 校验不能替代真实业务验证,未验证的内容须明确说明。
  • 涉及代码修改时,测试覆盖正常、异常及边界场景,单元测试目标覆盖率不低于 90%;按实际测试入口运行并如实记录结果。
  • 保留用户已有改动,提交和 push 按当次授权执行。
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. 3d ago Changed · -8 lines · -559 tokens per session f5043a7748c9
  2. 2mo ago First seen · 31 lines · 1,034 tokens per session scan A 45056eccbf27

Subscribe to this mod's changes

gate-mcp AGENTS.md is an instructions file published in the GitHub repository gate/gate-mcp (45 stars, last pushed 3d ago), licensed MIT. It adds 475 tokens to every session, about $0.0019 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-30.

Related

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

gate-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gate-mcp AGENTS.mdgate/gate-mcpInstructions file453d agoMITA475Codex, 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