ausecon-mcp-server AGENTS.md

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

A project guide for an MCP server that provides Australian economic data from the Australian Bureau of Statistics and the Reserve Bank of Australia. It documents setup, tests, formatting, server startup, and the layers that fetch, parse, cache, and search the data.

In plain words
What is it for?
Use it to install and test the server, run individual tests, format code, start it, and modify economic-data providers, parsers, caches, or catalogue search.
Why use it?
It explains both the commands and the data flow, so an agent can make changes without misunderstanding where API calls or data transformations belong.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/anthonypuggs/ausecon-mcp-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/AnthonyPuggs/ausecon-mcp-server

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/anthonypuggs/ausecon-mcp-server/agents-md.svg)](https://agentmods.dev/instructions/anthonypuggs/ausecon-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/anthonypuggs/ausecon-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/anthonypuggs/ausecon-mcp-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 901 This file is loaded in full into every session.
When invoked 901 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00901 $0.00901
Opus 5 $0.00451 $0.00451
Sonnet 5 $0.00180 $0.00180
Haiku 4.5 $0.00090 $0.00090

Measured 3d ago against content hash 02f0672245cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ausecon-mcp-server 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 · 77 lines

How it starts

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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Commands

Python 3.12 is recommended for local development. The package metadata and CI matrix support Python 3.10+.

# Install dependencies
uv sync --python 3.12

# Run all tests
uv run pytest

# Run a single test file
uv run pytest tests/test_catalogue.py

# Run a single test by name
uv run pytest tests/test_catalogue.py::test_search_catalogue_prefers_high_value_alias_matches

# Lint and format
uv run ruff check src tests
uv run ruff format src tests

# Run the MCP server (stdio mode)
uv run ausecon-mcp-server

Architecture

This is a FastMCP server that wraps ABS (Australian Bureau of Statistics) and RBA (Reserve Bank of Australia) data APIs. The design is intentionally thin on the MCP surface and delegates all logic to internal layers.

Layer structure

server.py          → FastMCP tool definitions, AuseconService orchestrator
providers/         → Async httpx clients for each source (ABS, RBA), TTLCache wrappers
parsers/           → Pure functions: raw HTTP response text → normalised dicts
catalogue/         → Static curated dicts (abs.py, rba.py) + search.py ranking logic
models.py          → SeriesDescriptor and Observation dataclasses; shared to_dict() helpers
cache.py           → Dual-layer TTLCache (memory + on-disk JSON cache)

Data flow

  1. MCP tool call → AuseconService method
  2. AuseconServiceABSProvider or RBAProvider (checks TTLCache first)
  3. Provider → httpx GET → raw CSV or XML response
  4. Parser (parse_abs_csv, parse_rba_csv, parse_abs_structure) → {metadata, series, observations} dict
  5. Optional post-fetch filtering (filters.py) for last_n, date ranges, and series IDs
  6. Result cached and returned as dict (not model instances)

ABS vs RBA differences

  • ABS uses SDMX REST (data.api.abs.gov.au/rest): structure endpoint returns XML, data endpoint returns CSV with format=csvfilewithlabels (paired code/label columns; the parser also still accepts the code-only csvfile layout).
  • RBA serves static CSVs at rba.gov.au/statistics/tables/csv/; most files use {table_id}-data.csv, while catalogue csv_path overrides cover exceptions such as f17-yields.csv. Filtering is done client-side after download.

Read the full file on GitHub · 77 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. 3d ago First seen · 77 lines · 901 tokens per session scan A 02f0672245cd

Subscribe to this mod's changes

ausecon-mcp-server AGENTS.md is an instructions file published in the GitHub repository AnthonyPuggs/ausecon-mcp-server (2 stars, last pushed 4d ago), licensed MIT. It adds 901 tokens to every session, about $0.0045 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-31.

Related

Other instructions, from other repositories

spiceai copilot-instructions.md

Copilot instructions for spiceai/spiceai, covering spice.ai agent instructions, data correctness — absolute top priority, evidence — no claim without a reproduction, build, test, lint (expensive — read first) and git & prs.

spiceai/spiceai · 7,971 tokens

quant-mind AGENTS.md

Instructions for LLMQuant/quant-mind, covering quantmind — agent instructions, progressive context loading, what this is, positioning and module map.

LLMQuant/quant-mind · 2,189 tokens

moosestack copilot-instructions.md

Instructions for 514-labs/moosestack, covering moose repository guide, code standards, required before each commit, development flow and repository structure.

514-labs/moosestack · 519 tokens

gem-dota CLAUDE.md

Claude Code instructions for whanyu1212/gem-dota, covering claude.md, commands, install project + dev dependencies, run all tests, including slow/integration markers and run a single test file.

whanyu1212/gem-dota · 6,900 tokens

quant-mind CLAUDE.md

Instructions for LLMQuant/quant-mind: CLAUDE.md imports AGENTS.md as the single source of repository instructions for coding agents. Do not duplicate rules here — edit AGENTS.md. Add Claude Code- specific guidance (if any) below the import. This block-level HTML comment is stripped from Claude's context at load, so it…

LLMQuant/quant-mind · 75 tokens

moosestack AGENTS.md

Instructions for 514-labs/moosestack, covering agents.md, build & development commands, all languages, rust and typescript.

514-labs/moosestack · 1,794 tokens