Skip to content

v2.7.6: MCPB install fix when user_config blank

Choose a tag to compare

@cyanheads cyanheads released this 28 May 06:52
· 37 commits to main since this release
v2.7.6
0839711

MCPB install fix when user_config blank

Patch for .mcpb bundle installs. When all three optional user_config fields are left blank, MCPB hosts (Claude Desktop included) pass through literal ${user_config.X} placeholder strings instead of empty values, which then crashed z.email() lazily after initialize and exited the server.

Fixed:

  • emptyAsUndefined strips ${...} placeholders alongside ''. Covers apiKey, adminEmail, unpaywallEmail, europepmcEmail.
  • manifest.jsonncbi_api_key, ncbi_admin_email, unpaywall_email declare "default": "" so conformant hosts substitute empty string in the first place.

624 tests pass; bun run devcheck clean.