fubon-api-mcp-server AGENTS.md

fubon-api-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from Mofesto/fubon-api-mcp-server. It costs 882 tokens per session, scanned A, original, Apache-2.0.

Repository guidelines for the Fubon Securities MCP server, including its folder structure, development commands, testing approach, and coding conventions. The server exposes Fubon’s Python trading software through MCP, a standard interface for AI-callable tools.

In plain words
What is it for?
Use them when modifying the server, adding features, running builds or tests, organizing Python modules, or deciding how to handle obsolete code and dependencies.
Why use it?
They give agents the project’s local rules and architecture so changes fit the existing codebase. They also discourage unnecessary compatibility layers and unfinished complexity.

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/mofesto/fubon-api-mcp-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/Mofesto/fubon-api-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 fubon-api-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mofesto/fubon-api-mcp-server/agents-md.svg)](https://agentmods.dev/instructions/mofesto/fubon-api-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mofesto/fubon-api-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/mofesto/fubon-api-mcp-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 882 This file is loaded in full into every session.
When invoked 882 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.00882 $0.00882
Opus 5 $0.00441 $0.00441
Sonnet 5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

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

Security

Grade A, and why

fubon-api-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 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 · 51 lines

How it starts

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

Repository Guidelines

AGENTS.md

  • Do not preserve backward compatibility. Remove obsolete paths instead of adding compatibility layers, fallbacks, or migrations.
  • Choose the simplest implementation that fully meets the current requirements. Avoid speculative abstractions, configuration, and indirection.
  • Grow the system in layers. Start from the smallest version that works end to end, and add each new capability on top of a product that already works. Never trade a working product for unfinished complexity.
  • Keep components modular and concerns clearly separated.
  • Prefer established, well-maintained libraries when they reduce overall complexity or improve reliability. Do not reimplement common functionality without a clear reason.
  • Lean on the dependencies already in the project before writing your own implementation or adding packages. Do not assume a library lacks a capability without checking its documentation and types.
  • Make architectural decisions for the long term. Do not accept a stopgap that only works for now and is meant to be replaced later.

Project Structure & Module Organization

  • fubon_api_mcp_server/ contains the Python MCP server. server.py is the entry point; service modules cover trading, market data, accounts, reports, analysis, and indicators. Shared helpers live in config.py, enums.py, and utils.py.
  • tests/ contains pytest tests and SDK-mocking fixtures in tests/conftest.py. examples/ contains manual API examples, and vscode-extension/ contains the VS Code extension.
  • scripts/ holds PowerShell release/version tooling; specs/ holds implementation plans. data/, assets/, and wheels/ are runtime or distribution assets.

Build, Test, and Development Commands

Use Python 3.10–3.13 and install the editable development package:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e ".[dev]"
  • python -m fubon_api_mcp_server.server starts the MCP server; configure FUBON_* variables from .env.example first.
  • python -m pytest runs the test suite; target a test with python -m pytest tests/test_account_service.py -v.
  • python -m pytest --cov=fubon_api_mcp_server --cov-report=html creates coverage output in htmlcov/.
  • ./scripts/quick_check.ps1 runs the fast formatting, lint, and smoke-test checks on Windows.
  • python -m build followed by python -m twine check dist/* validates a package build.

Read the full file on GitHub · 51 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 First seen · 51 lines · 882 tokens per session scan A 983b2c1b0e0c

Subscribe to this mod's changes

fubon-api-mcp-server AGENTS.md is an instructions file published in the GitHub repository Mofesto/fubon-api-mcp-server (15 stars, last pushed 18d ago), licensed Apache-2.0. It adds 882 tokens to every session, about $0.0044 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-30.

Related

Other instructions, from other repositories