Migrate to APCore Surfaces¶
The first unified Python, Rust, and TypeScript SDKs use apcore-surfaces version 0.1.0 and Core 0.34.1. Toolkit, MCP, A2A, and CLI share the same SDK package in each language. Each language SDK has its own release version.
See Install and use APCore Surfaces for Core dependencies, imports, and command usage in each language.
| Component | Python import | Rust import | TypeScript import |
|---|---|---|---|
| Toolkit | apcore_surfaces.toolkit |
apcore_surfaces::toolkit |
apcore-surfaces/toolkit |
| Toolkit for browsers and workers | apcore-surfaces/toolkit/browser |
||
| MCP | apcore_surfaces.mcp |
apcore_surfaces::mcp |
apcore-surfaces/mcp |
| A2A | apcore_surfaces.a2a |
apcore_surfaces::a2a |
apcore-surfaces/a2a |
| CLI | apcore_surfaces.cli |
apcore_surfaces::cli |
apcore-surfaces/cli |
Replace dependencies on the individual apcore-toolkit, apcore-mcp, apcore-a2a, and apcore-cli distributions with a dependency on the unified package. Select extras or features to match the components the application uses and update its lockfile.
pip install 'apcore-surfaces[mcp,openapi]==0.1.0'
cargo add [email protected] --features a2a,openapi
npm install [email protected]
Python installs Toolkit in the base environment. Use the mcp, a2a, and cli extras for the adapters. Add openapi for OpenAPI proxy support where an adapter exposes it, or use all to enable all bundled capabilities. Rust uses features to enable the relevant adapters and executable targets. The Node package installs the JavaScript runtime dependencies, while the browser Toolkit export provides the runtime-neutral API for bundlers.
To preserve the old Rust Toolkit defaults, enable http-proxy and device-auth. The base unified crate leaves both features off. Enable prometheus-server when the application hosts a metrics server through Toolkit.
The command names apcore-mcp, apcore-a2a, and apcore-cli carry over. Install each replacement in a fresh virtual environment or command prefix to prevent the old and new packages from competing for the same executable. For example:
cargo install apcore-surfaces --version 0.1.0 --locked --features mcp --bin apcore-mcp
npm exec --package [email protected] -- apcore-mcp --help
The Node CLI can use keytar as an optional peer. If an installation uses the system keyring, install keytar in that Node environment. File-based credential storage requires an explicit configuration choice.
The A2A Explorer asks for the bearer token again after a reload. Copied curl commands use YOUR_TOKEN as a placeholder. To roll back an application, restore its prior dependency declarations and lockfile, then reinstall the historical packages into its previous environment.
Protocol SDKs in 0.1.0¶
| Language | MCP | A2A |
|---|---|---|
| Python | mcp 2.3.0 |
a2a-sdk 1.4.0 |
| TypeScript | @modelcontextprotocol/server 2.4.0 and @modelcontextprotocol/sdk 1.32.2 for legacy API compatibility |
@a2a-js/sdk 1.3.0 |
| Rust | rmcp 3.12.1 on the current protocol path |
a2a-lf 0.4.3 for A2A 1.0 types |
MCP stdio and Streamable HTTP accept the 2026-07-28 revision without an initialization handshake. Clients using earlier revisions still negotiate with initialize. Hosts can enable multi-round input for published tools and resources. The adapter collects input and then dispatches through Core's usual validation, ACL, and approval. APCore's durable approval workflow remains available.
Python A2A applications can advertise extensions and enable validate_required_extensions on serve, async_serve, or the server factory. TypeScript exposes validateInputModes and a configurable pushNotificationStore. Rust servers support A2A 1.0 JSON-RPC task streaming and subscriptions to active tasks. Rust clients can use A2AClient::new(url).with_v1_json_rpc() and subscribe_to_task(task_id). Rust hosts can enable A2A 1.0 webhook delivery with PushNotificationPolicy or the CLI flag --push-notification-origin.
See Release and verify the SDKs for single-language and coordinated releases.