"Troubleshooting guide for mcp_gas build failures, auth issues, and common errors"
Install
npx skillscat add whichguy/claude-craft/skills-troubleshoot Install via the SkillsCat registry.
MCP GAS Troubleshooting Guide
Build/Restart Required
Problem: Changes to tools, schemas, or CommonJS modules not working
Solution:
npm run build- Restart Claude Code (changes don't hot-reload)
Module Updates Not Appearing in GAS
Problem: Updated CommonJS infrastructure files not syncing
Solution: Update template files in mcp_gas repository, rebuild, then update GAS project
Git Changes Not Being Committed
Problem: Write operations not creating commits (this is expected behavior)
Solution: Write tools do NOT auto-commit. You must explicitly commit:
- After writes, call
git_feature({operation: 'commit', scriptId, message: '...'}) - Check response for
git.blocked: true- this means uncommitted changes exist - Verify git repo exists at
~/gas-repos/project-{scriptId}/ - Check server startup logs for uncommitted changes from previous sessions
Authentication Tokens Not Persisting
Problem: Server requires re-authentication after every restart
Solution:
- Verify token storage location:
ls -la ~/.auth/mcp-gas/tokens/ - Check file permissions: should be 0600 (owner-only)
- If tokens exist but still prompting: Check server startup logs for token loading errors
- Manual token clear if needed:
rm -rf ~/.auth/mcp-gas/tokens/
Token Persistence Details
Token Storage: ~/.auth/mcp-gas/tokens/{email}.json — persists across server restarts
Key Features: Auto-persistence | auto-refresh | cross-session sharing | 0600 permissions | 30-day cleanup
Workflow: First use → OAuth flow → token cached | Server restart → auto-loaded | Token expiry → auto-refresh
Manual Clear: rm -rf ~/.auth/mcp-gas/tokens/
Integration Tests Failing
Problem: Tests fail with authentication errors
Solution:
- First run triggers OAuth flow automatically
- Tokens cached at
~/.auth/mcp-gas/tokens/for future runs - Set
MCP_TEST_MODE=trueto preserve tokens during testing
"Cannot find module" Errors
Problem: TypeScript imports not resolving
Solution:
- Ensure
.jsextensions on all imports (ESM requirement) - Check
tsconfig.jsonmodule resolution settings - Rebuild:
npm run clean && npm run build