treasury-mcp AGENTS.md

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

Project instructions for bitcoin-mcp, an MCP server that exposes Bitcoin data through tools backed by Bitcoin Core or Knots RPC. Bitcoin Core and Knots are programs that operate and query a Bitcoin node.

In plain words
What is it for?
Use them when working on Bitcoin mempool, fees, blocks, transactions, addresses, mining, or network tools, or when running the project’s tests.
Why use it?
They explain the server’s structure, available tool groups, fallback behavior, payment client, and testing expectations, reducing uncertainty when modifying the project.

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/bjunjo/treasury-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/bjunjo/treasury-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 treasury-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bjunjo/treasury-mcp/agents-md.svg)](https://agentmods.dev/instructions/bjunjo/treasury-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/bjunjo/treasury-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/bjunjo/treasury-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 577 This file is loaded in full into every session.
When invoked 577 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.00577 $0.00577
Opus 5 $0.00289 $0.00289
Sonnet 5 $0.00115 $0.00115
Haiku 4.5 $0.00058 $0.00058

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

Security

Grade A, and why

treasury-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 · 35 lines

How it starts

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

bitcoin-mcp — MCP Server for Bitcoin

What this is

47-tool MCP server wrapping Bitcoin Core/Knots RPC. Zero-config: auto-falls back to Satoshi API (bitcoinsapi.com) when no local node detected. Published to PyPI and Smithery. v0.5.0.

Key files

  • src/bitcoin_mcp/server.py — all 49 tools defined as @mcp.tool() decorators
  • src/bitcoin_mcp/l402_client.py — L402 payment channel client
  • tests/ — 116 tests, must pass before any release

Tool categories (all in server.py)

  • Mempool: analyze_mempool, get_mempool_info, get_mempool_entry, get_mempool_ancestors
  • Fees: get_fee_estimates, estimate_smart_fee, get_fee_recommendation, estimate_transaction_cost, compare_fee_estimates
  • Blocks: analyze_block, get_block_stats, compare_blocks, search_blocks, get_block_count
  • Transactions: analyze_transaction, decode_raw_transaction, get_indexed_transaction, search_blockchain, decode_bolt11_invoice
  • Address: get_address_balance, get_address_history, get_address_utxos, check_utxo, validate_address, get_indexer_status
  • Mining: get_mining_info, get_difficulty_adjustment, get_halving_countdown, get_mining_pool_rankings
  • Network: get_network_info, get_blockchain_info, get_chain_tips, get_peer_info, get_node_status
  • Supply: get_supply_info, get_utxo_set_info, get_chain_tx_stats
  • Security: analyze_psbt_security, explain_inscription_listing_security
  • Utility: generate_keypair, explain_script, describe_rpc_command, list_rpc_commands, query_remote_api
  • Market: get_btc_price, get_market_sentiment, get_situation_summary, get_next_block_eta

Development rules

  • Bump version in pyproject.toml for any release (semver)
  • Run pytest tests/ before any commit — all 116 must pass
  • Tools must work against BOTH local Bitcoin Core AND the Satoshi API fallback
  • No breaking changes to tool signatures without a major version bump
  • Tool docstrings appear in MCP client UIs — keep them accurate and useful
  • Discoverability matters: Glama/Smithery rank by stars + docs. Keep README and per-tool examples current.

Read the full file on GitHub · 35 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 · 35 lines · 577 tokens per session scan A 1b4bdfd3d906

Subscribe to this mod's changes

treasury-mcp AGENTS.md is an instructions file published in the GitHub repository bjunjo/treasury-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 577 tokens to every session, about $0.0029 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.