PulseAugur
中
实时 00:06:00
English(EN) MCP retrieval cost 4x more tokens than grep, until repo size flipped it

MCP检索工具在小型代码库上增加token成本,在大型代码库上节省token

对CodeNib论文中代理实验的复制发现,与传统的grep命令相比,使用MCP检索工具会显著增加token成本,尤其是在较小的代码库中。虽然CodeNib论文声称节省了大量token,但本次复制实验发现在一个包含33个文件的代码库中,MCP工具花费的token是grep的4.1倍。然而,在包含249个文件的较大代码库中,情况发生了逆转,MCP工具节省了86%的token,这表明代码库大小是这些检索方法效率的关键因素。 AI

影响 强调了代码库大小在决定AI编码代理工具效率方面的关键作用。

排序理由 对一项研究论文实验的复制,但结果有所不同。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — MCP tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

MCP检索工具在小型代码库上增加token成本,在大型代码库上节省token

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
对一项研究论文实验的复制,但结果有所不同。[lever_c_demoted from research: ic=1 ai=1.0]
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
55 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — MCP tag TIER_1 English(EN) · Pranav Raj ·

    MCP检索比grep多花费4倍的token,直到代码库大小反转了这一情况

    <p><strong>TL;DR:</strong> Swapping <code>grep</code> for MCP retrieval tools cost my coding agent 4.1x more tokens on a 33-file repo, and saved 86% on a 249-file one. Same model, same tasks, opposite sign.</p> <p>I spent a weekend replicating the agent experiment from a paper ca…