Skip to content

Commit 5d244b9

Browse files
committed
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/'.
1 parent 379948a commit 5d244b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdf-viewer/.mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"mcpServers": {
33
"pdf": {
44
"command": "npx",
5-
"args": ["@modelcontextprotocol/server-pdf", "--stdio"]
5+
"args": ["-y", "@modelcontextprotocol/server-pdf", "--stdio"]
66
}
77
}
88
}

0 commit comments

Comments
 (0)