React (GitMCP)
https://gitmcp.io/facebook/react
Lets an agent read, semantically search, and code-search the facebook/react GitHub repository docs and source, plus fetch referenced URLs.
76.0/100
#25 of 33 · #3 in Developer tools
Fix it with your coding agent
Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.
Improve the MCP server at https://gitmcp.io/facebook/react so AI agents can use it better. It scored 76/100 (B) on the Agnost MCP Leaderboard.
Top fixes:
1. Agents got stuck retrying in 11% of tasks.
2. Clarify fetch_react_documentation vs search_react_documentation: state which file is fetched (e.g. llms.txt/README), what it returns, and when to switch to semantic search for specific questions instead of always calling fetch first.
3. Document parameters for search_react_code and search_react_documentation (query syntax, exact-match behavior, pagination/page param) and complete the truncated descriptions so return formats are explicit.
Per-tool fixes:
- fetch_react_documentation: Fetches the full primary documentation file (e.g. README/llms.txt) of the facebook/react GitHub repo as text; takes no arguments. Use for broad overviews; for specific API questions prefer search_react_documentation. Doesn't say which documentation file is fetched (README? llms.txt?) or its size 'Always call this tool first' is overbroad and may waste tokens on specific queries No mention that it takes no parameters No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title
- search_react_documentation: Semantic search over the facebook/react documentation; returns the most relevant text chunks. Pass a natural-language question (e.g. 'how does useEffect cleanup work'). Use for targeted questions instead of fetching the whole doc. 'within the fetched documentation' implies a prerequisite fetch but doesn't state it Return format (snippets, count) not described Query format guidance missing (natural language vs keywords) No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title
- fetch_generic_url_content: Fetch content from an absolute http(s) URL (respects robots.txt) and return it as text. Use for links found in React docs or code search results; not for general web search. Doesn't state output format (raw HTML, markdown, text) url param doesn't require absolute http(s) format in schema No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title
- search_react_code: Exact-match code search in facebook/react via GitHub Search API; pass identifiers or literal strings (e.g. 'useSyncExternalStore'). Returns up to 30 file paths/URLs per page; fetch contents with fetch_generic_url_content. Doesn't explain GitHub code search syntax or that exact-match means keywords/identifiers work best Returned fields (paths, URLs) not specified No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title
Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.Score breakdown
Weighted by what breaks agents in 100M+ real MCP calls.
Error quality
7 bad-input tests · 6 clear errors
72/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 78% · 2.4 calls/task
82/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 · ~927 tokens · 2 overlapping pairs
88/100 · 15 pts
↳ The top 3 tools usually get >99% of calls; the rest just cost context
Schema & docs accuracy
Descriptions 63/100 · 0/4 declare outputSchema
66/100 · 15 pts
↳ Declared output schemas that don't match real output break calls
Response size
median ~24 tokens · p95 ~95 · has limit params
100/100 · 10 pts
↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens
Latency & long calls
median 3831ms · p95 8216ms · 0 timeouts
63/100 · 10 pts
↳ After a client cancels a long call, ~39% of sessions end
Connection & login
handshake 1523ms · Streamable HTTP
84/100 · 10 pts
↳ After a login or permission error, ~1 in 5 sessions end
Metadata & discoverability
metadata 20/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✕ · Setup page in the browser ✓
27/100 · 5 pts
↳ The basics. Necessary, but not what makes agents succeed
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.
Left out a required field · search_react_documentation.query
Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_react_documentation: [ { "code": "invalid_type", "expected": "string", "received": "undefined""
Sent the wrong type · search_react_documentation.query
Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_react_documentation: [ { "code": "invalid_type", "expected": "string", "received": "number", "
Left out a required field · search_react_code.query
Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_react_code: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "pa"
Sent the wrong type · search_react_code.query
Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_react_code: [ { "code": "invalid_type", "expected": "string", "received": "number", "path""
Left out a required field · fetch_generic_url_content.url
Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool fetch_generic_url_content: [ { "code": "invalid_type", "expected": "string", "received": "undefined","
Sent the wrong type · fetch_generic_url_content.url
Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool fetch_generic_url_content: [ { "code": "invalid_type", "expected": "string", "received": "number", "
Called a tool that doesn't exist · —
Protocol error (often hidden from the model) · "MCP error -32602: Tool __agnost_nonexistent_tool__ not found"
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 ~3,905 tokens per task on average.
opus-5-5Give me an overview of what the React repository documentation covers.
Right tool first try · 12.6s · fetch_react_documentation
opus-5-5How does the useEffect cleanup function work according to the React docs?
Right tool first try · 16.5s · search_react_documentation → fetch_generic_url_content
opus-5-5Find where useSyncExternalStore is implemented in the facebook/react source code.
Right tool first try · 14.9s · search_react_code → search_react_code
haiku-5-5Give me an overview of what the React repository documentation covers.
Right tool first try · 19.7s · fetch_react_documentation → search_react_documentation → search_react_code
haiku-5-5How does the useEffect cleanup function work according to the React docs?
Right tool first try · 19.5s · search_react_documentation → fetch_react_documentation → search_react_documentation
haiku-5-5Find where useSyncExternalStore is implemented in the facebook/react source code.
Right tool first try · 16.6s · search_react_code → search_react_code → search_react_documentation
gpt-5.5Give me an overview of what the React repository documentation covers.
Right tool first try · 12.2s · fetch_react_documentation
gpt-5.5How does the useEffect cleanup function work according to the React docs?
Got there after trying fetch_react_documentation · 18.4s · fetch_react_documentation → search_react_documentation
gpt-5.5Find where useSyncExternalStore is implemented in the facebook/react source code.
Got there after trying fetch_react_documentation · 17.3s · fetch_react_documentation → search_react_code → search_react_code → search_react_code → search_react_code
Top 3 fixes
- 1
Agents got stuck retrying in 11% of tasks.
- 2
Clarify fetch_react_documentation vs search_react_documentation: state which file is fetched (e.g. llms.txt/README), what it returns, and when to switch to semantic search for specific questions instead of always calling fetch first.
- 3
Document parameters for search_react_code and search_react_documentation (query syntax, exact-match behavior, pagination/page param) and complete the truncated descriptions so return formats are explicit.