#code-execution

AI

讓 agent 用寫程式的方式呼叫 MCP:讀 Anthropic〈Code execution with MCP〉

Anthropic 主張把 MCP 工具呈現為檔案系統上的 TypeScript API,讓 agent 寫程式呼叫而非逐個 tool call,宣稱可省 98.7% 工具定義 token。我對照自己讓 agent 寫腳本批次處理文件、pipeline 化工具呼叫的既有習慣,指出做法相似但缺乏結構性,並誠實列出沙盒成本、小模型除錯難、非萬靈丹等 trade-off 與適用邊界。

#mcp #agent #llm #ai #code-execution