fix: enforce executable permissions on binary entry points during pack · modelcontextprotocol/mcpb@122ef0e · GitHub
Skip to content

Commit 122ef0e

Browse files
fix: enforce executable permissions on binary entry points during pack
When server.type is "binary", mcpb pack now ensures the entry_point file has execute bits (|0o111) in the ZIP external_attr, regardless of the source filesystem permissions. This prevents EACCES failures when Claude Desktop extracts Windows-built binary MCPBs (which store 644 because Windows has no Unix execute bit). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f14863b commit 122ef0e

2 files changed

Lines changed: 88 additions & 4 deletions

File tree

‎src/cli/pack.ts‎

Lines changed: 11 additions & 4 deletions

‎test/cli.test.ts‎

Lines changed: 77 additions & 0 deletions

0 commit comments

Comments
 (0)