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.
npx agentmods add instructions/hellek1/ib-mcp/copilot-instructionsgit clone --depth 1 https://github.com/Hellek1/ib-mcpWrote 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/hellek1/ib-mcp/copilot-instructions)<a href="https://agentmods.dev/instructions/hellek1/ib-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/hellek1/ib-mcp/copilot-instructions.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 | $0.01423 | $0.01423 |
| Opus 5 | $0.00711 | $0.00711 |
| Sonnet 5 | $0.00285 | $0.00285 |
| Haiku 4.5 | $0.00142 | $0.00142 |
Grade A, and why
ib-mcp copilot-instructions.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.
How it starts
The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot Instructions for IB-MCP
This repository contains an Interactive Brokers MCP (Model Context Protocol) server that provides read-only access to Interactive Brokers data via the async ib_async library and FastMCP framework.
Project Overview
Purpose: Expose Interactive Brokers financial data to LLM applications and autonomous agents through the MCP protocol, maintaining read-only access for safety.
Key Technologies:
- Python 3.12+ (modern Python features expected)
- FastMCP framework for MCP protocol implementation
- ib_async for Interactive Brokers API integration
- Poetry for dependency management
- Async/await patterns throughout
Architecture
Core Components
ib_mcp/server.py: Main MCP server implementation using FastMCPIBMCPServer: Primary server class that manages IB connection and tool registration- Tools: Contract lookup, market data, news, fundamentals, portfolio/account info
MCP Tools Pattern
Tools are registered using FastMCP decorators within _register_handlers() method:
@self.server.tool
async def tool_name(
param: Annotated[str, Field(description="Parameter description")]
) -> str:
await _ensure_connected()
# Tool implementation
return "human-readable result string"
Coding Standards & Conventions
Python Standards
- Python Version: 3.12+ required, use modern syntax (list[T], dict[K,V] over typing equivalents)
- Type Hints: Required for all public functions, prefer built-in generics
- Async/Await: All IB API calls must be async, use
await self.ib.someMethodAsync() - Error Handling: Catch broad exceptions only at integration boundaries, re-raise with context
Code Style
- Formatter: Ruff (handles both imports and formatting)
- Line Length: 100 characters
- Quotes: Double quotes preferred
- Import Order: Managed by Ruff
Project Conventions
- Tool Returns: Always return plain strings, prefer human-readable tables/bullet lists
- Parameter Docs: Use
Annotated[Type, Field(description="...")]for tool parameters - Connection Management: Use
_ensure_connected()before IB API calls - XML Processing: Convert XML responses to Markdown for better LLM readability
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.
- 5d ago First seen · 189 lines · 1,423 tokens per session scan A 3d93f1aa79b5
ib-mcp copilot-instructions.md is an instructions file published in the GitHub repository Hellek1/ib-mcp (17 stars, last pushed 29d ago), licensed BSD-3-Clause. It adds 1,423 tokens to every session, about $0.0071 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
TradeGit AGENTS.md
Instructions for rollingSirius/TradeGit, covering tradegit — github 私有仓库交易日志(codex / workbuddy / 通用 agent 入口), 工具, 命令速查, 必须遵守的流程 and 数据布局.
personal-finance-skill CLAUDE.md
Instructions for 6missedcalls/personal-finance-skill, covering personal finance skill — developer guide, skill documentation, project structure, stack and rules.
ClawRouter CLAUDE.md
Claude Code instructions for BlockRunAI/ClawRouter, covering clawrouter, commands, project structure, key dependencies and conventions.
InvestSkill GEMINI.md
Gemini CLI instructions for yennanliu/InvestSkill, covering investskill — gemini cli setup & usage guide, installation & setup, quick start, navigate to the investskill directory and start gemini cli (loads gemini.md automatically).
LLM-TradeBot copilot-instructions.md
Copilot instructions for EthanAlgoX/LLM-TradeBot, covering repository instructions, core rules, validation and ai asset governance.
Convertible-Bond-Pricing-Research CLAUDE.md
Instructions for ericxuzhesheng/Convertible-Bond-Pricing-Research, covering claude.md — convertible bond pricing research, current published state and routine commands.