MCPB bundles
An MCPB bundle is a zip archive with a manifest.json at its root. A host that
supports MCPB can install the bundle, ask for the declared user settings, and
start the server without a manual command line. This project ships one native
Go executable in each bundle. It does not ship a JavaScript or Python runtime.
Contents
Section titled “Contents”Every Linux bundle has exactly these entries. The macOS bundle adds the helper app described below.
manifest.jsonserver/icloud-mcpLICENSETHIRD_PARTY_NOTICES.mdA Windows experiment bundle uses server/icloud-mcp.exe. The manifest uses
MCPB manifest version 0.4, server.type binary, and this command:
${__dirname}/server/icloud-mcpThe macOS arm64 bundle also carries the signed and notarized Reminders helper
app. Its files sit under server/, next to the executable:
server/IcloudMcpReminders.app/Contents/Info.plistserver/IcloudMcpReminders.app/Contents/MacOS/icloud-mcp-remindersserver/IcloudMcpReminders.app/Contents/CodeResourcesserver/IcloudMcpReminders.app/Contents/_CodeSignature/CodeResourcesThe build copies the app bytes and the executable bit. Any change to a byte
breaks the code signature, so the build never rewrites an app file. The helper
program keeps mode 0755 and the other app files keep mode 0644. Linux bundles
never carry the app. python3 scripts/mcpb.py verify --require-helper fails
when a darwin bundle has no app or an incomplete one.
The build writes fixed zip timestamps, fixed modes, and sorted entries. Two builds from the same executable and text files have the same SHA-256.
Platform matrix
Section titled “Platform matrix”| Platform | Build | Bundle status |
|---|---|---|
| Linux amd64 | Native or cross build | Packaged. Verify runs the bundled binary on a Linux amd64 host. |
| Linux arm64 | Cross build | Packaged. Native bundle smoke passes on ubuntu-24.04-arm in the tag workflow. |
| macOS arm64 | Cross build | Packaged with the signed helper app. Native bundle smoke passes on macos-15 in the tag workflow. |
| Windows amd64 | Compile only | Not packaged. build refuses windows/amd64 unless --allow-untested-windows is passed. |
Only linux/amd64, linux/arm64, and darwin/arm64 are release targets. The Windows override exists for an explicit experiment and is not a support claim.
Profiles
Section titled “Profiles”The five documented profiles are environment choices in one bundle. They are not five bundles. The install default is Calendar read-only.
| Profile | Settings |
|---|---|
| Calendar read-only | read_only=true, permissions=calendar.read, enable_contacts=false, enable_mail=false |
| Calendar and Contacts read-only | read_only=true, permissions=calendar.read,contacts.read, enable_contacts=true |
| Calendar scoped write | read_only=false, permissions=calendar.read,calendar.write, resource_scopes=calendar.read=/cal/allowed/;calendar.write=/cal/allowed/ |
| Mail read-only | read_only=true, permissions=mail.read, enable_mail=true, mail_address, mail_password |
| Mail exact send | read_only=false, permissions=mail.send, enable_mail=true, enable_mail_send=true, smtp_allowed_recipients |
The same values are in examples/profiles/. Use exact recipients. A literal *
is unsafe.
User settings and credentials
Section titled “User settings and credentials”The manifest declares these user_config entries. Each one maps to a process
environment variable:
| Setting | Environment variable | Secret |
|---|---|---|
icloud_email |
ICLOUD_EMAIL |
No |
icloud_password |
ICLOUD_PASSWORD |
Yes |
read_only |
ICLOUD_MCP_READ_ONLY |
No |
permissions |
ICLOUD_MCP_PERMISSIONS |
No |
resource_scopes |
ICLOUD_MCP_RESOURCE_SCOPES |
No |
default_timezone |
ICLOUD_MCP_DEFAULT_TZ |
No |
enable_contacts |
ICLOUD_MCP_ENABLE_CONTACTS |
No |
enable_mail |
ICLOUD_MCP_ENABLE_MAIL |
No |
mail_address |
ICLOUD_MAIL_ADDRESS |
No |
mail_from |
ICLOUD_MAIL_FROM |
No |
mail_password |
ICLOUD_MAIL_PASSWORD |
Yes |
enable_mail_write |
ICLOUD_MCP_ENABLE_MAIL_WRITE |
No |
enable_mail_send |
ICLOUD_MCP_ENABLE_MAIL_SEND |
No |
smtp_allowed_recipients |
ICLOUD_MCP_SMTP_ALLOWED_RECIPIENTS |
No |
The two password settings have sensitive: true. The host must store and mask
them. The manifest contains only ${user_config.NAME} references. It contains
no credential value.
For hosts that cannot guarantee secret storage, enter a documented file://
value in a string setting. The server opens a regular file of 4 KiB or less with
mode 0600 or stricter. For example:
file:///run/secrets/icloud-emailfile:///run/secrets/icloud-passwordThe file must be readable by the server process. The bundle does not copy the file and writes no secret to disk.
ICLOUD_EMAIL and ICLOUD_PASSWORD are optional in the manifest so a Mail-only
profile can install without Calendar credentials. Calendar and Contacts need
them. Global read-only defaults to true.
Build, verify, and smoke test
Section titled “Build, verify, and smoke test”Run these commands from the repository root. Use a temporary staging directory outside the repository for the source files.
stage="$(mktemp -d)"go build -trimpath -ldflags='-s -w -X main.version=v1.5.0' \ -o "$stage/icloud-mcp" ./cmd/icloud-mcpcp LICENSE THIRD_PARTY_NOTICES.md "$stage/"python3 scripts/mcpb.py build \ --source "$stage" --target linux/amd64 --version v1.5.0python3 scripts/mcpb.py verify \ dist/icloud-mcp-v1.5.0-linux-amd64.mcpbsmoke="$(mktemp -d)"python3 -m zipfile -e dist/icloud-mcp-v1.5.0-linux-amd64.mcpb "$smoke"npx -y @anthropic-ai/mcpb@2.1.2 validate "$smoke/manifest.json"npx -y @anthropic-ai/mcpb@2.1.2 info \ dist/icloud-mcp-v1.5.0-linux-amd64.mcpbThe build accepts a release archive instead of a directory:
python3 scripts/mcpb.py build \ --source dist/icloud-mcp-v1.5.0-linux-amd64.tar.gz \ --target linux/amd64 --version v1.5.0verify prints one JSON object. It checks the entry set, manifest fields,
version equality with server.json, executable mode, one platform, path and
credential rules, and the extracted binary. It runs -version and requires the
reported version to equal the manifest version. A failure prints a JSON error
and exits with status 1. Use --no-exec on a host that cannot run the bundle
architecture; that mode still checks every structural and hash rule.
Inspect the manifest without building:
python3 scripts/mcpb.py manifest --target darwin/arm64 --version v1.5.0Smoke test an extracted bundle:
smoke="$(mktemp -d)"python3 -m zipfile -e dist/icloud-mcp-v1.5.0-linux-amd64.mcpb "$smoke"chmod 755 "$smoke/server/icloud-mcp""$smoke/server/icloud-mcp" -versionThe expected output is v1.5.0.
python3 scripts/check_release.py packages --dir dist verifies every bundle
claimed by server.json. It recomputes each SHA-256 and reads each manifest. It
does not run a foreign-platform executable. This is the cross-platform check for
linux/arm64 and darwin/arm64 bundles.
Install from a downloaded bundle
Section titled “Install from a downloaded bundle”Host installation status: verified for one host. Claude Desktop on macOS
arm64 installs, starts, restarts, upgrades, disables, and uninstalls the
darwin-arm64 bundle of the versions below. v1.4.0 and v1.5.0 are not host-verified. The record is in Host verification.
Other hosts and platforms are not verified. A live Apple Account read through a
host is not verified: the host test used synthetic credentials only.
The last host-verified release is v1.3.3. Its icloud-mcp-v1.3.3-darwin-arm64.mcpb has
SHA-256 27a82b6669b583ab2cfb39a5d28a5c163dbac0f6ddb6ec3a7ee27b5f85d18178. In Claude
Desktop it installs, starts with permissions and resource_scopes blank,
lists its tools, and disables and uninstalls. Bundles 1.3.2 and earlier do not
start with those settings blank: the host passes a blank optional setting
without a default as the literal ${user_config.<key>} text, and those servers
reject that text. Restart and upgrade were verified on 1.3.1 and 1.3.2.
Claude Desktop on macOS
Section titled “Claude Desktop on macOS”- Download
icloud-mcp-<tag>-darwin-arm64.mcpband its.sigand.pemfiles from the GitHub release. Verify the SHA-256 against the release checksum file and the Cosign signature as shown in Trust chain. - Open the file with Claude Desktop, or choose Settings, Extensions, Advanced
settings, Install Extension. The install page shows the name
icloud-mcp, the version, the author, and the MIT license. Choose Install, then Install again in the confirmation dialog. - The extension starts at once with blank credentials. It stops with
invalid ICLOUD_EMAIL, and the page shows “icloud-mcp couldn’t start.” This is expected before configuration. - Choose Configure. Enter
Apple Account emailand the Calendar and Contacts app-specific password. SetDefault timezone, for exampleEurope/Paris. KeepGlobal read-onlyattrueand leaveCapability listandResource scopesblank for the Calendar read-only profile. Choose Save. Claude Desktop then asks “Save these settings for the extension?”; choose Save only when you pressed Save yourself. - The host restarts the server. In a new chat, ask Claude to call
icloud_capabilities. The result showsreadOnly: trueand seven tools. Calls to account tools ask for host approval the first time.
To remove it, open Settings, Extensions, choose the extension, then Uninstall. Revoke the app-specific password at Apple.
Host verification
Section titled “Host verification”Checked on 2026-12-04 with synthetic credentials
(icloud-mcp-host-test@example.invalid, and test-132@example.invalid for the
v1.3.3 row), no Apple Account data, and an
incognito chat for the tool calls.
| Item | Observed |
|---|---|
| Host | Claude Desktop 18.19841.1, then 18.35363.0 after the host auto-update at the first restart. Both versions show the startup failure below. |
| OS and architecture | macOS 27.2.1 (26B131), arm64 |
| Install mechanism | open -a Claude <bundle>.mcpb, then the host install page and confirmation dialog |
| Bundles | v1.3.1 SHA-256 5a589339ed17aed19de87848b0c2f2e3a98b582ffeb35b972825627621622db3; v1.3.2 SHA-256 1e4b3dfc78ff511d1c9f61457d7fd731752f1defaf05f09abf70b449883c1184. Both pass the checksum file and Cosign verification for their tag. |
| Manifest | Accepted. No warning for manifest version 0.4. The host shows “Any developer information shown has not been verified by Anthropic.” |
| First start, 1.3.1 and 1.3.2 | Fails. invalid ICLOUD_MCP_PERMISSIONS: unknown capability with a blank Capability list, then invalid ICLOUD_MCP_RESOURCE_SCOPES: expected action=value with a blank Resource scopes value. |
| First start with blank defaults | Starts. The same installed bundles start when the manifest gives each optional setting a blank default. A candidate bundle built by this revision of scripts/mcpb.py from the signed v1.3.2 archive starts from a clean install with only email, password, and timezone set. |
| Processes | Two icloud-mcp processes, one for chat and one for the Cowork and Code pool, each under the host disclaimer helper. The binary runs from ~/Library/Application Support/Claude/Claude Extensions/local.mcpb.thomas-crouzet.icloud-mcp/server/. |
| Tools | Server log reports readOnly: true and toolCount: 7. In chat, icloud_capabilities returns version: v1.3.1, readOnly: true. |
Published v1.3.3 |
Checked again on 2026-12-04 on Claude Desktop 18.35363.0. SHA-256 27a82b6669b583ab2cfb39a5d28a5c163dbac0f6ddb6ec3a7ee27b5f85d18178, checksum file and Cosign verified. The bundle starts with only email, password, and timezone set, and Capability list and Resource scopes blank. The binary is Developer ID signed (team 7LJSG2GM3X, hardened runtime), and spctl -a -vv -t install reports Notarized Developer ID. Seven tools; icloud_capabilities returns version: v1.3.3, readOnly: true. Disable and uninstall remove the process, the extension directory, and the settings file. |
| Account error | list_calendars asks for host approval, then returns {"code":"authentication","message":"listing calendars: authentication_refused: ..."} with no secret. |
| Secret storage | sensitive: true values are stored as __encrypted__... strings in Claude Extensions Settings/<id>.json (mode 0600), not as plain text. The key is in the “Claude Safe Storage” keychain item. Other settings are plain text in the same file. |
| Restart | Quit and relaunch keeps the extension enabled and all settings. |
| Upgrade 1.3.1 to 1.3.2 | The install page shows Update. Settings and the enabled state survive. The new binary is io.github.thomascrouzet.icloud-mcp, Developer ID Application, team 7LJSG2GM3X, hardened runtime. The 1.3.1 binary is ad hoc signed. |
| Disable | Both processes stop. isEnabled becomes false. |
| Uninstall | The confirmation says the extension “and its configuration will be removed”. The extension directory and settings file are removed. No file under ~/Library/Application Support/Claude keeps the synthetic email. |
Not verified: a live Calendar read through the host, Linux hosts, other MCPB
hosts, and file:// secret values in the host.
Trust chain
Section titled “Trust chain”- The tag workflow builds the binaries, signs and notarizes the
darwin-arm64binary with Developer ID, builds one MCPB bundle per target from the signed bytes, and verifies every bundle. The native smoke matrix runs each extracted bundle on its own platform before the release job starts. On macOS, Gatekeeper fetches the notarization ticket at the first launch because a bare executable cannot hold a stapled ticket. ci.ymlsigns each archive, bundle, and the checksum file with cosign keyless, then creates the GitHub Release. The checksum file includes the MCPB hashes.server.jsonrecords the MCPB identifier URL andfileSha256for each claimed platform.scripts/check_release.py packagesrecomputes each hash. Fordarwin/arm64the tag run compares the bundle with the release checksums file and the packed executable with the digest that the signing job reported, because the signed bytes cannot exist before the job runs. The release job fails before signing when a hash is wrong or a claimed platform is missing.- The Registry publication workflow verifies every archive and bundle hash and
signature again before
mcp-publisher publish. Verify a downloaded bundle with cosign:
cosign verify-blob \ --certificate bundle.mcpb.pem \ --signature bundle.mcpb.sig \ --certificate-identity "https://github.com/ThomasCrouzet/icloud-mcp/.github/workflows/ci.yml@refs/tags/v1.0.0" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ bundle.mcpbStatus
Section titled “Status”Checked on 2026-11-09. The client installation row was checked on 2026-12-04.
| Item | Status |
|---|---|
| Deterministic bundle build | Verified locally with synthetic and native fixtures. |
| Manifest v0.4 validation | Verified locally with @anthropic-ai/mcpb 2.1.2. |
Linux amd64 bundle binary -version |
Verified locally. |
| linux/arm64 and darwin/arm64 structure, hash, and native run | Verified on the matching CI runners for v1.1.0. |
| Windows bundle | Not produced. Compile only. |
| Release asset build, smoke, and signing of MCPB files | Verified for v1.1.0: three signed bundles with hashes in the checksums file. |
| Official Registry publication with packages | Published 1.1.0 with three packages on 2026-11-09 at 09:55:36Z; make check-registry passes. |
| MCPB client installation | Verified on 2026-12-04 for Claude Desktop 18.35363.0 on macOS 27.2.1 arm64 with synthetic credentials. The published v1.3.3 bundle starts with blank optional settings; bundles up to 1.3.2 fail there; see Host verification. Other hosts and a live account read are unverified. |