# cost-control
標記為「cost-control」的 2 篇文章
MCP 錢包阻斷:防範符元消耗攻擊
聚焦防禦的指南,理解透過 MCP 的錢包阻斷攻擊——惡意伺服器如何製造「過度思考迴圈」導致 142.4 倍的符元放大——並實作預算控制、速率限制與成本監控以保護 LLM 端點。
mcpdenial-of-wallettoken-amplificationcost-controldefenserate-limiting
Rate Limiting and Abuse Prevention for LLM APIs
導覽 for implementing rate limiting and abuse prevention systems for LLM API endpoints, covering token bucket algorithms, per-user quotas, cost-based limiting, anomaly detection, and graduated enforcement.
rate-limitingabuse-preventionapi-securitytoken-bucketcost-controldefensewalkthrough