mcp: Instructions file for Codex

AGENTS.md

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

Instructions for developing the Space Frontiers MCP server, a service that searches academic papers, books, patents, Wikipedia, Reddit, Telegram, and YouTube transcripts. MCP is a standard way for AI tools to call external services.

In plain words
What is it for?
Use them when working on the server, its search tools, authentication, API client, prompts, or registry configuration.
Why use it?
They give contributors the server's purpose, file layout, development conventions, and the behavior of its read-only search tools.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

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

Security

Grade A, and why

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 5d 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 · 55 lines

How it starts

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

AGENTS.md — Machine Library MCP server

This is the source for the Machine Library MCP server, deployed at https://mcp.machinelibrary.ai/.

What it does

Exposes three read-only, idempotent tools that wrap the Machine Library search API:

  • machinelibrary_search — papers, books, patents, standards, Wikipedia, YouTube transcripts, Reddit, Telegram channels, Discord
  • machinelibrary_fetch_document — full text + references for one canonical URI
  • machinelibrary_search_in_document — passages within one document by query

All tool returns are typed Pydantic models — outputSchema and structuredContent are auto-generated by FastMCP. Every result carries a canonical source_uri for citation.

Layout

  • mcp_server.py — Starlette + FastMCP entrypoint, OAuth well-known endpoints.
  • tools.py — tool definitions and Pydantic output schemas.
  • prompts.py — deep_research_agent prompt.
  • auth.py — Bearer-token validation against users-api, Origin allowlist, MCP-Protocol-Version allowlist.
  • client.py — async HTTP client for the v2 search API.
  • server.json — entry for the Official MCP Registry (registry.modelcontextprotocol.io).
  • smithery.yaml — Smithery deployment config.
  • registry.json — legacy in-house registry metadata.
  • tests/ — pytest unit tests for each tool.

Local dev

uv sync
uv run pytest
uv run fastmcp run mcp_server.py

The hosted endpoint expects Authorization: Bearer <key> and validates the token against users-api. Stdio/self-hosted use reads MACHINELIBRARY_API_KEY (or the older SPACE_FRONTIERS_API_KEY) for upstream API authentication.

Conventions

  • Python 3.10+. Single quotes (ruff format). Type hints everywhere.
  • All tool descriptions follow the "Use when / Do not use when / Examples" template; lead with verb + scope.
  • Every tool has readOnlyHint: true and idempotentHint: true annotations — required for the Anthropic Connectors Directory.
  • Tool names are prefixed machinelibrary_ to avoid collisions in multi-server agent setups.
  • The MCP spec versions this server speaks are listed in auth.py:SUPPORTED_PROTOCOL_VERSIONS. Bump there when adopting a new revision.

Read the full file on GitHub · 55 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. 5d ago Changed · -1 lines · -10 tokens per session 384d656cea92
  2. 29d ago Changed · +1 lines · +15 tokens per session 6df8d5040eb6
  3. 1mo ago Changed e6d715e782cd
  4. 1mo ago Changed b541ad9ef87f
  5. 2mo ago First seen · 55 lines · 679 tokens per session scan A 3648ff18eb9f

Subscribe to this mod's changes

mcp AGENTS.md is an instructions file published in the GitHub repository SpaceFrontiers/mcp (11 stars, last pushed 6d ago), licensed MIT. It adds 684 tokens to every session, about $0.0027 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

mcp AGENTS.md compared with instructions from other repositories

mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp AGENTS.mdSpaceFrontiers/mcpInstructions file116d agoMITA684Codex, 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