claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Usage Policy Violation on Google Docs Edit via MCP

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/vladimir/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:37.914Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:37.933Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6136:11830)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:38.994Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6136:11023)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:38.994Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6136:11023)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:46.381Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6136:11830)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:46.386Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/vladimir/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n    at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n    at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:37.914Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:37.933Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6136:11830)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:38.994Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6136:11023)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:38.994Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6136:11023)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:46.381Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6136:11830)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:46.386Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description i want to edit google doc and i can't do it. Claude write me that i violate usage policy. it is so strange. i just use mcp google drive via terminal

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.114
  • Feedback ID: 4af23b01-f62b-4813-a391-79cbc1a576b0

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/vladimir/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n    at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n    at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:37.914Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:37.933Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6136:11830)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:38.994Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6136:11023)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:38.994Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6136:11023)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:46.381Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at GDH (/$bunfs/root/src/entrypoints/cli.js:2751:30115)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6136:11830)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:05:46.386Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error.

Guidance

  • The error messages indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • To fix this, you need to set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable in your terminal before running the MCP command.
  • You can set the environment variable using the command export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_value (replace your_token_value with your actual GitHub personal access token).
  • After setting the environment variable, try running the MCP command again to see if the error is resolved.

Example

export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_value

Replace your_token_value with your actual GitHub personal access token.

Notes

  • Make sure to replace your_token_value with your actual GitHub personal access token.
  • If you are using a different shell, the command to set the environment variable may vary.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error. This is the most straightforward solution to the problem, and it should allow you to use the MCP command without encountering the error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING