Add -y flag to npx to avoid first-install prompt hanging MCP connection

Without -y, npx prompts 'Ok to proceed? (y)' on first install of a
package, which hangs the stdio MCP connection (no TTY to answer).

Keeping version unpinned (auto-latest) — currently pulls 1.3.1 which
has the interact/annotation capabilities. Tested end-to-end via
'claude --plugin-dir pdf-viewer/'.
This commit is contained in:
Olivier Chafik
2026-03-25 17:17:19 +00:00
parent 379948a788
commit 5d244b91f1
+1 -1
View File
@@ -2,7 +2,7 @@
"mcpServers": {
"pdf": {
"command": "npx",
"args": ["@modelcontextprotocol/server-pdf", "--stdio"]
"args": ["-y", "@modelcontextprotocol/server-pdf", "--stdio"]
}
}
}