mcp-stargazing: Instructions file for Codex

AGENTS.md

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

Repository instructions for developers building MCP tools, which are tools that AI agents can call. They define rules for registration, interfaces, responses, testing, and deployment.

In plain words
What is it for?
Adding tools under the required source directory, registering them correctly, formatting responses and errors, documenting changes, and testing locally.
Why use it?
They give contributors one place to check the project’s conventions before changing agent-facing code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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-stargazing AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/stargazer1995/mcp-stargazing/agents-md"><img src="https://agentmods.dev/badge/instructions/stargazer1995/mcp-stargazing/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,855 This file is loaded in full into every session.
When invoked 2,855 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.02855 $0.02855
Opus 5.5 $0.01142 $0.01142
Sonnet 5.5 $0.00571 $0.00571
Haiku 4.5 $0.00285 $0.00285

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

Security

Grade A, and why

mcp-stargazing 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 6d 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 · 201 lines

How it starts

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

Agent Development Guidelines

This repository exposes MCP tools for AI agents and requires repo-level conventions for safe, consistent agent updates.

See also CLAUDE.md for architecture overview, quick commands, design patterns, known sharp edges, and release process.

Why this file exists

AGENTS.md is the repo-level policy document for:

  • how new MCP tools are added
  • how agent-facing interfaces are designed
  • how the harness validates tool registration and behavior
  • how changes are documented and tested

This is not a runtime requirement, but it is the best place for team-level regulation.

What belongs here

  1. Tool registration rules
  2. Agent-facing interface design
  3. Response / error formatting requirements
  4. Example and harness test expectations
  5. Deployment and local agent testing workflows

Tool registration conventions

  • All MCP tools must be defined under src/functions/.
  • Each tool module must import src.server_instance.mcp and decorate tool entrypoints with @mcp.tool().
  • The repository should keep tool registration centralized in src/main.py by importing tool modules there.
  • When explicit @mcp.tool(name=..., description=...) metadata is provided, that metadata takes precedence over the function name and docstring and should be treated as the public contract.
  • Example domains:
    • src/functions/celestial/impl.py
    • src/functions/telescope/impl.py
    • src/functions/metadata/impl.py
    • src/functions/planning/impl.py
    • src/functions/weather/impl.py
    • src/functions/places/impl.py
    • src/functions/time/impl.py

Agent-facing interface rules

  • All tools must return JSON-serializable data.
  • Public changes must preserve both the historical pre-1.0 baseline and the full 1.0 baseline (tests/public_contract_v1.json), including task annotations/models. Follow docs/v1-migration.md and docs/contract-policy.json for compatibility review and finite deprecation requirements; snapshot refreshes must not conceal drift. A contract freeze does not authorize a release. The explicitly reviewed optional weather-atmosphere extension is recorded in docs/contract-policy.json and docs/weather-atmosphere-contract.md. Its separate schema record must match exactly before projecting only those additions for historical comparison.
  • Use src.response.format_response(...) for standard response wrapping.
  • Business validation failures that remain inside normal tool execution should return the structured {error, _meta} payload shape instead of ad hoc dicts.
  • Dates and times should be returned as ISO strings whenever possible.
  • Keep tool argument names clear and stable; renames should be treated as breaking changes.
  • Add new tools only after verifying the new interface is agent-friendly and documented.
  • Every public tool description must include Use when:, Do not use when:, Requires:, Returns:, and Follow-up: guidance. Describe actual behavior and route common misuses to registered alternatives. Explicit decorator descriptions override function docstrings.
  • Keep this guidance in the standard MCP description. The catalog retains its existing summary description and full docstring fields; an explicit description is already complete. Do not introduce a separate routing schema only visible through get_tool_catalog.

Read the full file on GitHub · 201 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. 6d ago Changed · +6 lines · +102 tokens per session d5945f3d9be5
  2. 10d ago Changed · +5 lines · +126 tokens per session a7cc1f082a84
  3. 12d ago Changed · +14 lines · +303 tokens per session 77c238868cd8
  4. 13d ago Changed · +4 lines · +152 tokens per session aa3de05cb08f
  5. 14d ago Changed · -16 tokens per session ba93163ec93f
  6. 16d ago Changed · +11 tokens per session 50563e9de0a8
  7. 17d ago Changed · +1 lines · +36 tokens per session 7b4a8d5d63b5
  8. 2mo ago First seen · 171 lines · 2,141 tokens per session scan A adc507712558

Subscribe to this mod's changes

mcp-stargazing AGENTS.md is an instructions file published in the GitHub repository StarGazer1995/mcp-stargazing (0 stars, last pushed 2d ago), licensed MIT. It adds 2,855 tokens to every session, about $0.0114 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-stargazing AGENTS.md compared with instructions from other repositories

mcp-stargazing AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-stargazing AGENTS.mdStarGazer1995/mcp-stargazingInstructions file02d agoMITA2,855Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot