Borrowing it
Nothing to install: this file belongs to Mofesto/fubon-api-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Mofesto/fubon-api-mcp-server/main/CLAUDE.mdgit clone --depth 1 https://github.com/Mofesto/fubon-api-mcp-serverWrote 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.
[](https://agentmods.dev/instructions/mofesto/fubon-api-mcp-server/claude-md)<a href="https://agentmods.dev/instructions/mofesto/fubon-api-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/mofesto/fubon-api-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01839 | $0.01839 |
| Opus 5 | $0.00920 | $0.00920 |
| Sonnet 5 | $0.00368 | $0.00368 |
| Haiku 4.5 | $0.00184 | $0.00184 |
Grade A, and why
fubon-api-mcp-server CLAUDE.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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project
An MCP (Model Context Protocol) server wrapping the Fubon Securities Python SDK (fubon_neo) to expose Taiwan stock trading, market data, account management, and quantitative analysis as AI-callable tools.
Commands
Run tests
# All tests
python -m pytest -q
# Single test class
python -m pytest tests/test_market_data_service.py::TestGetIntradayFutOptTickers -v
# With coverage
python -m pytest --cov=fubon_api_mcp_server --cov-report=html --cov-report=term-missing
Lint and format
# Lint (errors only)
flake8 fubon_api_mcp_server tests --count --select=E9,F63,F7,F82 --show-source --statistics
# Format check
black --check --diff fubon_api_mcp_server tests --exclude fubon_api_mcp_server/_version.py
# Apply formatting
black .
isort fubon_api_mcp_server tests
Type check and security
mypy fubon_api_mcp_server
bandit -r fubon_api_mcp_server -f json -o bandit-report.json
Start server
python -m fubon_api_mcp_server.server
Build and validate
python validate_server.py # quick sanity check
python -m build # produce dist/
twine check dist/*
Release (PowerShell)
.\scripts\release.ps1 # patch bump
.\scripts\release.ps1 -BumpType minor
Architecture
Entry point: fubon_api_mcp_server/server.py creates a FastMCP instance and instantiates all service classes. Each service calls _register_tools() in its __init__, decorating its methods with @self.mcp.tool() against the shared FastMCP instance. After registration, mcp.run() starts the server over stdio.
Service classes:
trading_service.py— place/modify/cancel orders, condition orders, TPSL, trailing profit, time-slice splitsmarket_data_service.py— REST stock and futures/options: intraday quotes, snapshots, candles, movers, actives, historical CSV cache, SQLite local DBaccount_service.py— balance, inventory, unrealized/realized PnL, margin, settlementreports_service.py— surfaces SDK callbacks (order fill/change/event) buffered in global lists inserver.pyanalysis_service.py— Phase 3 quant: portfolio VaR, stress tests, performance attribution, arbitrage detection, sentiment index
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.
- 7d ago First seen · 155 lines · 1,839 tokens per session scan A bab1c87a2ce5
fubon-api-mcp-server CLAUDE.md is an instructions file published in the GitHub repository Mofesto/fubon-api-mcp-server (15 stars, last pushed 20d ago), licensed Apache-2.0. It adds 1,839 tokens to every session, about $0.0092 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.
Other instructions, from other repositories
vibetags com-example-service-EvidenceBasedShowcase.instructions.md
Instructions for PIsberg/vibetags, covering copilot instructions for evidencebasedshowcase, generated — edit the source, rules for field settledorderids, rules for method totalwithtax and rules for method refreshcartbadge.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.