anthropics / anthropics/claude-agent-sdk-typescript

Intermittent MCP tool call failures with unexpected permission prompt

Offen
#100 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Shell
Sterne
1.8k
Forks
226
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Occasionally, MCP tool calls fail with the following message:
```
Claude requested permissions to use mcp____, but you haven't granted it yet.
```

If I repeat the exact same request, the tool call then works normally.
This makes it seem like permission detection is inconsistent or not persisting correctly between requests.

My Current Options Configuration
```js
options: {
betas: ["context-1m-2025-08-07"],
allowedTools: ["mcp__"],
disallowedTools: [
"mcp____exclude_tool_one",
"mcp____exclude_tool_two",
"Bash",
"BashOutput",
"Edit",
"ExitPlanMode",
"Glob",
"Grep",
"KillBash",
"KillShell",
"LS",
"MultiEdit",
"NotebookEdit",
"Read",
"Skill",
"SlashCommand",
"WebFetch",
"Write",
]
}
```

This happens once in 10 or 20 times.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.