[Bug] MCP toggle disabled still consumes context window
Resolved 💬 3 comments Opened Oct 27, 2025 by haveaguess Closed Oct 31, 2025
Bug Description
i see you have added mcp toggle support but it still uses up context when it is disabled, i thought we were going to get our context bac
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.0.27
- Feedback ID: 6bc00db6-6eff-4bc1-82dc-a476fb2ad000
Errors
[{"error":"MCPContentTooLargeError: MCP tool \"notion-fetch\" response (44904 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.\n at luA (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1312:569)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async PWQ (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1399:8030)\n at async Object.call (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1399:18874)\n at async vj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:65482)\n at async Eq2 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:62539)\n at async file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:61708\n at async UhA (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:725:1714)\n at async xj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:61620)\n at async yj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:60608)","timestamp":"2025-10-27T10:46:02.913Z"},{"error":"MCPContentTooLargeError: MCP tool \"search_for_pattern\" response (37033 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.\n at luA (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1312:569)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async PWQ (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1399:7907)\n at async Object.call (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1399:18874)\n at async vj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:65482)\n at async Eq2 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:62539)\n at async _j6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:61391)\n at async yj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:60874)\n at async IS (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:57634)\n at async IS (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:58880)","timestamp":"2025-10-27T10:49:50.321Z"},{"error":"Error: Shell 5f27bf is not running, so cannot be killed (status: completed)\n at Object.call (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2879:1829)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async vj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:65482)\n at async Eq2 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:62539)\n at async file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:61708\n at async UhA (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:725:1714)\n at async xj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:61620)\n at async yj6 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:60608)\n at async IS (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:57634)\n at async IS (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2685:58880)","timestamp":"2025-10-27T12:36:39.757Z"},{"error":"MaxFileReadTokenExceededError: File content (56969 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at nb2 (file:///Users/benritchie/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗