Anthropic Changes MCP Calls Into Filesystem-based Skills
好,我现在需要帮用户总结这篇文章的内容,控制在100个字以内。首先,我得仔细阅读用户提供的文章内容,理解主要观点。 文章主要讨论了Anthropic提出的一种新的代码执行方法,替代了之前使用MCP(模型控制协议)来调用工具的方法。他们认为直接使用MCP会导致上下文消耗过多,尤其是在处理大型文档或复杂数据时,效率低下且容易出错。因此,他们建议将MCP服务器作为代码API,并让代理编写代码来调用这些工具。 这种方法有几个优点:首先,代理可以根据任务需求动态加载所需的工具,减少了不必要的上下文加载,从而节省了大量的计算资源和时间。其次,通过文件系统结构管理工具调用,提高了系统的可扩展性和灵活性。此外,这种方法还能显著降低token的使用量,从原来的150,000 tokens减少到2,000 tokens,节省了98.7%的资源。 用户可能是一位对AI工具调用和优化感兴趣的技术人员或开发者。他们可能希望了解最新的技术趋势和优化方法,以便在自己的项目中应用这些改进。因此,在总结时需要突出这种方法的核心优势:减少上下文消耗、提高效率、节省资源以及基于文件系统的结构带来的灵活性。 最后,确保总结简洁明了,在100字以内准确传达文章的主要内容和关键点。 </think> Anthropic提出通过代码环境和文件系统结构替代直接使用MCP调用工具的方法。这种方法允许代理编写代码与MCP服务器交互,减少上下文消耗和计算成本,并提高处理复杂数据的效率。 2025-11-5 14:30:0 Author: danielmiessler.com(查看原文) 阅读量:31 收藏

They're recommending a filesystem and code-based structure for calling tools instead of using MCPs each time

Anthropic just came out with a new article about code execution with MCP which is pretty extraordinary.

Loading external blog post...

It's nuanced, but it sure seems like they just threw massive shade at MCPs, and basically deprecated them down to being like service directories.

Look at the subtitle of their post:

Direct tool calls consume context for each definition and result. Agents scale better by writing code to call tools instead. Anthropic Engineering

Dayum.

They go on to throw more rocks.

Every intermediate result must pass through the model. In this example, the full call transcript flows through twice. For a 2-hour sales meeting, that could mean processing an additional 50,000 tokens. Even larger documents may exceed context window limits, breaking the workflow. With large documents or complex data structures, models may be more likely to make mistakes when copying data between tool calls. Anthropic Engineering

Then they say you can do something like this instead:

With code execution environments becoming more common for agents, a solution is to present MCP servers as code APIs rather than direct tool calls. The agent can then write code to interact with MCP servers. This approach addresses both challenges: agents can load only the tools they need and process data in the execution environment before passing results back to the model. Anthropic Engineering

To me this is treating the MCP like a directory of things you can call, and then having your agents write your own code for calling them.

In other words, not calling them anymore using the MCP itself.

They give an example of turning each tool that comes back from the MCP into a Typescript tool-calling file that agents can use to invoke that particular tool in code. And they specifically mention the advantage of agents being able to do things with those results or whatever, using just code, that doesn't involve AI calls.

Look at the advantage they say this gives:

The agent discovers tools by exploring the filesystem: listing the ./servers/ directory to find available servers (like google-drive and salesforce), then reading the specific tool files it needs (like getDocument.ts and updateRecord.ts) to understand each tool's interface. This lets the agent load only the definitions it needs for the current task. This reduces the token usage from 150,000 tokens to 2,000 tokens—a time and cost saving of 98.7%.Anthropic, from the same article

I'm so in love with this. It's more filesystem-based structure, which I'm already all-in on for my context management. Now tool-calling is becoming file-system based too.

So they're heading in a direction I was already heading anyway, which is to just write direct API calls, but they're doing doing it in a much cooler way with these compostable files that can be shared.

I think they might have just turned MCP tool calls into Skills.

I guess in this world MCPs are still powerful, but more as a directory of what's possible, and what gets done manually/directly as opposed to the mechanism for actually doing it.

Unbelievably cool.

I'm so very much migrating immediately.


文章来源: https://danielmiessler.com/blog/anthropic-downplays-mcps?utm_source=rss&utm_medium=feed&utm_campaign=website
如有侵权请联系:admin#unsafe.sh