Problem
The GitHub MCP plugin crashes with an undefined input_tokens error. This occurs when the plugin internal API calls return responses that lack billing/usage token data.
Expected Behavior
MCP plugin should gracefully handle responses without input_tokens in usage metadata.
Steps to Reproduce
- Use any GitHub MCP plugin operation
- Plugin attempts to read input_tokens from its own response usage data
- If usage data is absent or malformed, crashes with undefined error
Environment
- Claude Code CLI
- GitHub MCP plugin
Additional Context
The input_tokens field appears in MCP plugin internals. It should use optional chaining or null coalescing for defensive access. Error appears as toast or alert in Claude Code CLI output.