Agnost AI
← Leaderboard

Bun Docs

https://bun.sh/docs/mcp

Search, read, list, and regex-grep Bun's official docs, guides, and blog pages on bun.com.

Docs & knowledge4 toolsv1.0.0Streamable HTTP
A-

86.0/100

#2 of 33 · #1 in Docs & knowledge

Reviewed 23h ago·Scan took 20.4s·Descriptions graded by Claude
Fix it

Fix it with your coding agent

Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.

Fix prompt
Improve the MCP server at https://bun.sh/docs/mcp so AI agents can use it better. It scored 86/100 (A-) on the Agnost MCP Leaderboard. Top fixes: 1. Bad input was silently accepted by list_bun_pages. Validate arguments and return a clear error. 2. Invalid-option errors don't list the valid values (search_bun.section). Errors that name the fix get ~3× more successful retries. 3. Add outputSchemas for all four tools (e.g. search_bun result array with title, url, path, markdown; grep_bun matches grouped by page with line numbers) so agents can parse results reliably. Per-tool fixes: - list_bun_pages: The dense em-dash sentence about "/" could be clearer Bad-input test (wrong type: path) got an unhelpful error: "1577 pages under /: /blog — blog /blog/behind-the-scenes-of-bun-install — Behind The Scenes of Bun Install — Learn how B" No outputSchema — agents can't tell what the tool returns No `required` list — agents must guess which params are mandatory - read_bun_page: Add: "Returns an error if the path does not exist; use list_bun_pages to find valid paths." Does not say what happens when the path is not found Output size for long pages is not mentioned No outputSchema — agents can't tell what the tool returns - search_bun: Ranking basis (keyword vs semantic) is not stated, so the agent cannot tell how to phrase queries Bad-input test (invalid option: section) got an unhelpful error: "search_bun: `query` is required." No outputSchema — agents can't tell what the tool returns - grep_bun: Does not say whether filesOnly ignores context and maxMatches No outputSchema — agents can't tell what the tool returns Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.

Get the full detailed report

Every tool's score, what broke, and a suggested fix for each one, sent to your inbox.

Score breakdown

Weighted by what breaks agents in 100M+ real MCP calls.

Error quality

6 bad-input tests · 4 clear errors

69/100 · 20 pts

↳ Clear errors that name the fix get ~3× more successful retries

Task success across agents

opus-5-5: 3/3 · haiku-5-5: 3/3 · gpt-5.5: 3/3 · first-call success 100% · 1.0 calls/task

100/100 · 15 pts

↳ The same tool can fail 0% of the time in one client and 13% in another

Tool count & token cost

4 tools · ~1,491 tokens · 1 overlapping pairs

94/100 · 15 pts

↳ The top 3 tools usually get >99% of calls; the rest just cost context

Schema & docs accuracy

Descriptions 91/100 · 0/4 declare outputSchema

84/100 · 15 pts

↳ Declared output schemas that don't match real output break calls

Response size

median ~942 tokens · p95 ~5,211 · has limit params

89/100 · 10 pts

↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens

Latency & long calls

median 345ms · p95 521ms · 0 timeouts

100/100 · 10 pts

↳ After a client cancels a long call, ~39% of sessions end

Connection & login

handshake 715ms · Streamable HTTP

100/100 · 10 pts

↳ After a login or permission error, ~1 in 5 sessions end

Metadata & discoverability

metadata 55/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✕ · Setup page in the browser ✕

28/100 · 5 pts

↳ The basics. Necessary, but not what makes agents succeed

Error quality

What your errors look like to an agent

We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.

90

Left out a required field · search_bun.query

Model sees it · "search_bun: `query` is required."

55

Sent an option that doesn't exist · search_bun.section

Model sees it · "search_bun: `query` is required."

90

Left out a required field · read_bun_page.path

Model sees it · "read_bun_page: `path` is required."

90

Sent the wrong type · read_bun_page.path

Model sees it · "read_bun_page: `path` is required."

20

Sent the wrong type · list_bun_pages.path

Accepted the bad input · "1577 pages under /: /blog — blog /blog/behind-the-scenes-of-bun-install — Behind The Scenes of Bun Install — Learn how Bun is able to cut install times by up to"

70

Called a tool that doesn't exist · —

Model sees it · "MCP error -32602: Tool __agnost_nonexistent_tool__ not found"

AI agent test

We let a real AI agent use it

3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~4,371 tokens per task on average.

✓

opus-5-5How do I set up a WebSocket server in Bun?

Right tool first try · 7.3s · search_bun

✓

opus-5-5Show me the full Bun docs page at /docs/runtime/http/websockets.

Right tool first try · 13.4s · read_bun_page

✓

opus-5-5What guides does Bun have under /guides/websocket?

Right tool first try · 4.1s · list_bun_pages

✓

haiku-5-5How do I set up a WebSocket server in Bun?

Right tool first try · 3.7s · search_bun

✓

haiku-5-5Show me the full Bun docs page at /docs/runtime/http/websockets.

Right tool first try · 7.4s · read_bun_page

✓

haiku-5-5What guides does Bun have under /guides/websocket?

Right tool first try · 2.7s · list_bun_pages

✓

gpt-5.5How do I set up a WebSocket server in Bun?

Right tool first try · 5.6s · search_bun

✓

gpt-5.5Show me the full Bun docs page at /docs/runtime/http/websockets.

Right tool first try · 7.6s · read_bun_page

✓

gpt-5.5What guides does Bun have under /guides/websocket?

Right tool first try · 3.3s · list_bun_pages

Top 3 fixes

  1. 1

    Bad input was silently accepted by list_bun_pages. Validate arguments and return a clear error.

  2. 2

    Invalid-option errors don't list the valid values (search_bun.section). Errors that name the fix get ~3× more successful retries.

  3. 3

    Add outputSchemas for all four tools (e.g. search_bun result array with title, url, path, markdown; grep_bun matches grouped by page with line numbers) so agents can parse results reliably.

Tool-by-tool report

description · schema, weakest first

Get the full detailed report

Enter your email and we'll send you the full report: every tool's score, what broke, and a suggested fix for each one. It also unlocks here.