Borrowing it
Nothing to install: this file belongs to u9401066/medical-calc-mcp. 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/u9401066/medical-calc-mcp/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/u9401066/medical-calc-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/u9401066/medical-calc-mcp/copilot-instructions)<a href="https://agentmods.dev/instructions/u9401066/medical-calc-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/u9401066/medical-calc-mcp/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/u9401066/medical-calc-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/u9401066/medical-calc-mcp/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" 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.01770 | $0.01770 |
| Opus 5 | $0.00885 | $0.00885 |
| Sonnet 5 | $0.00354 | $0.00354 |
| Haiku 4.5 | $0.00177 | $0.00177 |
Grade A, and why
medical-calc-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 10d 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 — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot Instructions for Medical Calculator MCP
Medical Calculator MCP Server - 醫學計算工具 MCP 伺服器 為 AI Agent 提供經過驗證的醫學計算工具
📊 專案概況
| 指標 | 數值 |
|---|---|
| 計算器數量 | 151 (涵蓋 31 個專科) |
| Unified MCP Tools | 6 (3 發現工具 + 3 計算工具) |
| 測試數量 | 2073+ |
| 測試覆蓋率 | 92% |
| 文獻引用 | 244 PMIDs, 205 DOIs (100% 覆蓋) |
| 架構 | DDD Onion + FastMCP |
| Python 版本 | 3.11+ |
| 套件管理 | uv |
🛠️ 開發環境
# 安裝依賴
uv sync
# 執行測試
uv run pytest
# 執行型別檢查 (必須通過 --strict)
uv run mypy --no-incremental --strict src tests
# 執行 Lint 檢查
uv run ruff check .
# 計算工具數量
uv run python scripts/count_tools.py
# 計算引用文獻數量
uv run python scripts/count_references.py
# 啟動 MCP 伺服器 (stdio)
uv run python -m src.main
# 啟動 MCP 開發模式
uv run mcp dev src/main.py
# 啟動 REST API
uv run python src/main.py --mode api --port 8080
📁 專案結構
src/
├── domain/ # 核心業務邏輯 (無依賴)
│ ├── entities/ # ScoreResult, ToolMetadata
│ ├── services/ # BaseCalculator, ToolRegistry
│ │ └── calculators/ # 151 個計算器實作
│ ├── validation/ # ParameterValidator, BoundarySpec
│ └── value_objects/ # Unit, Reference, Interpretation
├── application/ # 用例層
│ └── use_cases/ # DiscoveryUseCase, CalculateUseCase
├── infrastructure/ # 基礎設施層
│ ├── mcp/ # MCP Server, Handlers
│ │ └── handlers/ # 按專科分類的 handlers
│ └── api/ # REST API (FastAPI)
└── shared/ # 共用工具
🔧 新增計算器標準流程
1. 建立 Calculator (Domain Layer)
位置: src/domain/services/calculators/[specialty]/
from ..base import BaseCalculator
from ...entities.score_result import ScoreResult
from ...entities.tool_metadata import ToolMetadata
from ...value_objects.reference import Reference
from ...value_objects.tool_keys import LowLevelKey, HighLevelKey, Specialty
class MyCalculator(BaseCalculator):
@property
def tool_id(self) -> str:
return "my_calculator"
@property
def metadata(self) -> ToolMetadata:
return ToolMetadata(...)
@property
def references(self) -> list[Reference]:
return [Reference(citation="...", doi="...", pmid="...", year=2020)]
def calculate(self, param1: float, param2: str) -> ScoreResult:
# 實作計算邏輯
pass
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.
- 10d ago First seen · 194 lines · 1,770 tokens per session scan A f2b7ad892f77
medical-calc-mcp copilot-instructions.md is an instructions file published in the GitHub repository u9401066/medical-calc-mcp (4 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 1,770 tokens to every session, about $0.0089 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.
Other instructions, from other repositories
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).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
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.