You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Add output limiting to prevent MCP token limit errors
- Module 1: Added comprehensive lesson on handling 25k token limit
- Implemented max_diff_lines parameter (default 500)
- Added truncation logic with clear messaging
- Included test for output limiting
- Framed as important real-world learning opportunity
- Modules 2 & 3: Pre-included fix so learners can focus on new concepts
- Updated all starter and solution code
- Added notes that output limiting is already handled
- Prevents repetitive debugging of same issue
This ensures learners encounter and solve the token limit problem once
in Module 1 as a valuable lesson, then can focus on webhooks (Module 2)
and Slack integration (Module 3) without distraction.
Fixes the issue where large git diffs cause "MCP tool response exceeds
maximum allowed tokens (25000)" errors.
0 commit comments