mcp-resource-subscriber: Instructions file for Codex

AGENTS.md

mcp-resource-subscriber AGENTS.md is an instructions file for Codex, OpenCode from scottlz0310/mcp-resource-subscriber. It costs 1,681 tokens per session, scanned A, original, MIT.

Repository instructions for a project named mcp-resource-subscriber. The project tests MCP resource subscriptions and includes a command-line probe and a reference server.

In plain words
What is it for?
Use them when installing, building, testing, or changing the project's subscription probe, MCP server, gateway login flow, or one-off tool calls.
Why use it?
They tell coding agents the project's purpose, required commands, protocol choices, authentication behavior, and main implementation patterns.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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-resource-subscriber AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/scottlz0310/mcp-resource-subscriber/agents-md"><img src="https://agentmods.dev/badge/instructions/scottlz0310/mcp-resource-subscriber/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,681 This file is loaded in full into every session.
When invoked 1,681 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.01681 $0.01681
Opus 5.5 $0.00672 $0.00672
Sonnet 5.5 $0.00336 $0.00336
Haiku 4.5 $0.00168 $0.00168

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

Security

Grade A, and why

mcp-resource-subscriber 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 · 74 lines

How it starts

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

AGENTS.md

プロジェクトの目的

resource-bridge-cli は、MCP resourceを購読して結果を同じLLMセッションへ返すCLIクライアント。公開binは dist/src/client/cli.js。シェルで実行し、MCPサーバーとして登録・探索しない。GitHub repo名は mcp-resource-subscriber を維持する。

  • 購読: subscriptions/listen → ack/URI受理検証 → 更新通知 → 再read → stream close。既完了raceも扱う。
  • call: 単発 tools/call。enqueueなどに使い、購読と同じ認証を再利用する。
  • 認証: --login / --logout、SQLiteキャッシュ、期限切れtokenのrefresh/rotation。
  • src/server/: 統合テスト用fixture。製品のMCPサーバー機能ではない。

protocolは 2026-07-28 に固定し、legacyへフォールバックしない。URIは --uri または MCP_PROBE_URI で明示し、未指定は RESOURCE_URI_REQUIRED。旧手動probeスクリプトは廃止した。

必須コマンド

現行 package.json とCIを正本とする。Node >=26.10.0、[email protected]。lockfileは pnpm-lock.yaml のみ。

pnpm install --frozen-lockfile
pnpm run check
pnpm run build
pnpm run test:coverage
pnpm run typecheck
pnpm test
pnpm run format
pnpm pack
# fixtureの手動確認
pnpm run dev
pnpm run start
node dist/src/client/cli.js --url http://127.0.0.1:8089/mcp --uri test://review/status --json
docker compose up --build

CI順序は install → check → build → test:coverage → docker build。Publishの検証は install → check → build → typecheck → test → pack/配布CLI検証 → npm公開 → 公開tarball再取得。準備・draft・finalizeと許可の境界は docs/release-automation.md に従う。dist/** はVitestの収集から除外し、build後の二重実行を避ける。既存のpnpm/Biome/tsc/Vitest/lefthookを維持する。

コードと契約

  • src/client/cli.ts: bin、引数・認証・JSON/行形式・終了コード。
  • subscriptionClient.ts: runResourceSubscription、ResourceSubscriptionOptions / ResourceSubscriptionResult。uri は必須。
  • callClient.ts / callJsonOutput.ts: 単発tool呼び出しと出力。
  • jsonOutput.ts / networkErrorClassification.ts: 購読出力と通信エラー分類。
  • protocolNegotiation.ts: protocol固定、negotiation失敗の正規化。
  • auth/tokenStore.ts / oauthClient.ts / gatewayAuth.ts: キャッシュ・OAuth・refresh制御。

相対importは .js 拡張子。moduleResolution: NodeNext、rootDir: . で、src/testを同じ構造のままdistへ出力する。配布はclientだけ。runResourceSubscription を利用するプログラムは新module pathと明示URIへ移行する。恒久的な旧名wrapperは追加しない。

JSON、終了コード、認証キャッシュ・環境変数は利用先の契約。購読は成功0/失敗1、callは成功0/toolエラー1/認証2/通信・引数3。call はtransport close後に process.exitCode で自然終了する。強制 process.exit() はWindowsのlibuv終了raceを起こすため使用しない。

Read the full file on GitHub · 74 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 Changed · +44 tokens per session 8dfa05905c9f
  2. 28d ago Changed · -91 lines · -3,489 tokens per session 221c2cc694fc
  3. 2mo ago First seen · 165 lines · 5,126 tokens per session scan A b74c83d0a3f4

Subscribe to this mod's changes

mcp-resource-subscriber AGENTS.md is an instructions file published in the GitHub repository scottlz0310/mcp-resource-subscriber (0 stars, last pushed yesterday), licensed MIT. It adds 1,681 tokens to every session, about $0.0067 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

Other instructions, from other repositories

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 · 9,719 tokens

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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,516 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 3,037 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 · 4,313 tokens