MCP tool call hangs indefinitely (no permission prompt) for stdio server calling npx-based MCP package
Open 💬 0 comments Opened Jul 2, 2026 by gaelp1986
Description
Calling a tool from a locally-configured stdio MCP server (obsidian-mcp, run via npx obsidian-mcp <vault-path>) hangs indefinitely in an interactive Claude Code session — no permission prompt appears, no error, no timeout (confirmed hung 4+ minutes before giving up).
Environment
- Claude Code CLI (terminal), macOS (Darwin 25.5.0)
- MCP server configured in project-scoped
~/.claude.jsonundermcpServersfor the project path - Server:
obsidian-mcp(npm package), invoked asnpx obsidian-mcp "<vault path>", typestdio
Steps to reproduce
- Configure
obsidian-mcpas a project-scoped stdio MCP server in~/.claude.json. - Start
claudefrom the project directory./mcpshows the server as "✔ connected" with all 11 tools registered. - Ask Claude to call one of the tools, e.g.
mcp__obsidian-mcp__create-note. - The call never resolves — no permission-approval dialog appears, no error, no completion. Confirmed hung 4+ minutes.
What we ruled out
- Server health: running
npx obsidian-mcp "<vault path>"directly in a plain terminal works perfectly — starts instantly, registers the vault, logs all 11 tools, and idles correctly on stdio. - Permissions: the tool is on the project's permission allowlist (
.claude/settings.local.json→permissions.allow), and/mcpshows the server connected. - cwd/config loading: confirmed via
pwdand/mcpthat the session was in the correct project directory with the server loaded.
Additional context
In a background session (claude --bg / background job), the same tool call instead returns immediately with a "the user doesn't want to proceed with this tool use" rejection — even though no prompt was ever shown and nothing was declined. This suggests permission-required MCP tool calls may not be surfaced correctly to the user in either session type: background sessions appear to auto-deny, while foreground sessions hang forever without ever showing the approval prompt.