material-ui
material-ui copied to clipboard
mcp tool useMuiDocs returning too many tokens for Claude Code
Steps to reproduce
Steps:
- install claude code
- install mcp server
- ask it to search material-ui documentation
Current behavior
● mui-mcp - useMuiDocs (MCP)(urlList: ["https://llms.mui.com/material-ui/7.2.0/llms.txt"])
⎿ Error: MCP tool "useMuiDocs" response (25712 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.
I've tried prompting claude-code to use pagination, filtering, or limits all with no success.
Expected behavior
No response
Context
No response
Your environment
No response
Search keywords: mcp, claude code
Does it work better with https://context7.com/mui/material-ui? (I'm don't really know why we have our own MCP vs. pushing people to Context7).
This seems extremely inefficient and wasteful.. a request for 2 components returned 325,419 tokens! Claude warns when it's higher than 10k.
{
"urls": [
"https://mui.com/material-ui/react-dialog/",
"https://mui.com/material-ui/react-modal/"
]
}
Returns: MCP tool "fetchDocs" response (325419 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.