BO

beycom/onetool-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

24 stars 7 forks 质量 73 趋势 18GPL-3.0

🧿 一个开发者MCP——无工具税,无上下文腐烂。100+工具,包括Brave、Google、Context7、Excalidraw、AWS、版本检查器、Excel、文件操作、数据库、Playwright、Chrome DevTools等......

概览

🧿 一个开发者用的MCP——没有工具税,也没有上下文丢失。250+工具,你的代理调用为Python代码:搜索、文档、文件、数据库、图表、视觉、内存——还有你已经用的每个MCP服务器的代理。 支持Claude Code、Cursor、Codex——任何MCP客户端 每个MCP服务器都会在每次请求中重新发送其工具定义:。连接5个服务器,你在对话开始前就烧掉了5.5万个令牌。连接10+,你就达到10万。 数学计算非常严苛:Claude Opus 4.5,输入代币每百万美元,20天×10次对话×10条消息×3000个代币=——即使你从未使用过这些工具。 还有——随着你增加更多工具,你的AI实际上会变得更笨(Chroma Research,2025)。 OneTool是将工具展示为Python接口的API。你的代理不是读取工具定义,而是编写代码: 配置一个MCP服务器。使用无限工具——无论添加多少,都需使用~2K令牌。 “代理通过编写代码调用工具来实现扩展。

概述(AI 翻译)

🧿 一个开发者用的MCP——没有工具税,也没有上下文丢失。250+工具,你的代理调用为Python代码:搜索、文档、文件、数据库、图表、视觉、内存——还有你已经用的每个MCP服务器的代理。

支持Claude Code、Cursor、Codex——任何MCP客户端


问题

每个MCP服务器都会在每次请求中重新发送其工具定义:每个3K-30K令牌。连接5个服务器,你在对话开始前就烧掉了55K令牌。连接10+,你就有100K。

计算非常严格:Claude Opus 4.5,输入代币每百万美元,20天内×10次对话×10条消息×3千代币 = 每个MCP服务器每月30美元——即使你从未使用过这些工具。

还有上下文腐烂——随着你添加更多工具,你的AI实际上变得更笨(Chroma Research,2025年)。

解决方案

OneTool是一个MCP服务器,它以Python API的形式暴露工具。你的代理不是读取工具定义,而是编写代码:

配置一个MCP服务器。使用无限工具——无论添加多少,都需使用~2K令牌。

“代理通过编写代码调用工具来实现更好的扩展。这使代币使用量从150,000个代币减少到2,000个代币…成本节省了98.7%。”

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🧿 One MCP for developers - no tool tax, no context rot.250+ tools your agent calls as Python code: search, docs, files, databases, diagrams, vision, memory - plus a proxy for every MCP server you already use.

Works with Claude Code, Cursor, Codex - any MCP client


The Problem

Every MCP server re-sends its tool definitions on every request: 3K-30K tokens each. Connect 5 servers and you’ve burned 55K tokens before the conversation starts. Connect 10+ and you’re at 100K.

The math is brutal: Claude Opus 4.5 at $5/M input tokens, 20 days × 10 conversations × 10 messages × 3K tokens = $30/month per MCP server - even if you never use the tools.

And then there’s context rot - your AI literally gets dumber as you add more tools (Chroma Research, 2025).

The Solution

OneTool is one MCP server that exposes tools as a Python API. Instead of reading tool definitions, your agent writes code:

__onetool brave.search(query="react 19 server components")

Configure one MCP server. Use unlimited tools - ~2K tokens no matter how many you add.

“Agents scale better by writing code to call tools instead. This reduces the token usage from 150,000 tokens to 2,000 tokens…a cost saving of 98.7%”

— Anthropic Engineering

97% fewer tokens. 30× lower cost. No context rot. (Measured - 47,660 → 1,131 input tokens against 18 MCP servers.)

📖 Read the full story


Code Is the Interface

Because tools are Python functions, your agent does things tool-call JSON can’t: batch, chain, loop, compose.

__onetool
page = webfetch.fetch(url="https://fastmcp.dev/changelog", output_format="markdown")
notes = ot_llm.transform(data=page, prompt="Summarise the breaking changes")
mem.write(topic="deps/fastmcp", content=notes)
在 GitHub 查看完整 README

安装

npx skills add https://github.com/beycom/onetool-mcp --skill ot-ref --agent claude
新手?先看 mcpskill.org 教程 →