Skip to main content
Connect’s setup agent can research and prepare a package outside the built-in library. For ordinary use, start with the CLI quickstart. This page describes the package inputs and setup tools for application authors.

Setup tools

The host selects trusted runtimes, permitted acquisition profiles and resource locations. The agent selects the integration, version, entrypoint and operations.

Inspect acquired dependencies (unreleased)

When the host enables acquired-source inspection and the advertised tool schema includes archive_sha256, setup_inspect_acquired can read a retained dependency selected by its exact digest in the acquisition job’s artifacts array. Omitting the selector preserves primary-archive inspection. The agent still selects the entrypoint and authors metadata; inspection executes no package code and does not establish native-addon or runtime compatibility.

Describe the package

Prepare an IntegrationPackage in package.json and an ActivationManifest in activation.json. Obtain the canonical package digest with:
Use summary.package_content_digest in the activation manifest. It identifies the canonical package content; raw file hashes identify the input files. The manifest’s owner IDs need actual runtime bindings. Selected-Python installation does not resolve those names into authentication, readiness, shutdown or policy handlers. Keep the host’s exact configuration and policy references, and bind the selected connection through the native owners. Do not substitute fixture IDs or remove unresolved package requirements.

Input layouts

Retain the original server wheel and a complete dependency closure with exact versions and hashes. The manifest selects the module entrypoint and literal arguments. The installer verifies wheel ownership and installed files, then uses ordinary offline pip.
Exact package schemas and installer contracts are in crates/toolkit-package/PYTHON-INSTALL.md, NODE-INSTALL.md and sdk/consumer-setup/SELECTED.md in the source distribution.

Validate and install

Call setup_selected_check with the prepared inputs. Review its proposal, then pass the returned proposal ID and digest to setup_selected_install. Installation uses a new destination and retains the selected input hashes and resulting launch configuration. The host then supplies account credentials, approves operation access and attaches the emitted connection through the native MCP owner. A bare configuration exposes the whole server; a declared read operation does not hide its write tools or authorize their use. Connect’s native protected attachment can separately enforce the host-approved subset of exact MCP tool names. Inspect the actual schemas and request only the operations needed through that protected review; separate write tools do not themselves prevent a scoped read grant. An operation-name allowlist does not constrain query semantics, prevent startup effects or provide filesystem confinement. Check those behaviors and apply the host’s separate resource controls. Installation and effect metadata alone do not prove a read-only connection.

Inspect the installed server

Discover the server’s tools and schemas through the selected MCP connection. Choose the operations needed for the task, apply the host’s access policy and invoke them through the intended agent. For an update, prepare the new selection in a separate directory, switch the consumer and retire the old process. Keep the original selection available for recovery.

Reuse a selection

Save the exact package, activation and source observations as a local recipe. Future setup can read that recipe and apply current configuration and access decisions. See local recipes.

Packages that need a build (unreleased)

This is unreleased development functionality, not part of Connect 0.9.0. One Linux source-addon installation and fresh Node consumer have passed. Each integration still needs its own MCP compatibility and operation checks.
Some Node packages ship source that must be compiled, or need a script to generate their JavaScript entrypoint. The setup agent can propose those steps when the host has explicitly enabled a matching build toolchain. Ordinary users stay in the same setup conversation and review the resulting installation proposal.
  1. The agent inspects the acquired package and its build instructions.
  2. setup_state.node_build reports available executable and input-file IDs, the exact Node target and limits. The agent chooses a plan from that evidence.
  3. setup_selected_check freezes the plan with the package and returns its commands, inputs and output destinations for review.
  4. After approval, setup_selected_install runs the commands and verifies the generated files. Native attachment and operation review follow separately.
For inline metadata, supply build_plan_json. For staged metadata, retain the plan as closure/node-build-plan and supply its exact build_plan_sha256. Both forms select the Node profile and bind the same reserved artifact in the dependency closure. With acquired_source, the host retains the original acquisition evidence and adds the authored plan to the selected declaration; do not rewrite its receipt. The version-1 plan has schema_version, target, inputs, steps and outputs. Inputs copy selected original npm files or host toolchain files into a separate working directory. Steps select host executable IDs and literal arguments. Outputs map generated files to exact installed package paths. Replacing an original file requires its original hash; an addition cannot overwrite it. Use the advertised tool description and pinned installer’s contract for the full shape. npm lifecycle scripts remain disabled. An explicitly reviewed build step may run package source or a build script as trusted local code. This is not a sandbox or a complete toolchain deployment service. Missing tools require a host correction. Readback checks the selected inputs and generated files without rebuilding or importing the addon. A lost or invalid build reply leaves that live attempt unconfirmed. Replaying its install call observes the same job; an explicit retry proposes a new destination and review. Cold readback establishes current file consistency, not proof of the historical build. Installation success does not establish server compatibility or completion of the user’s task.

Container-backed selections

A host can expose setup_acquire_compose to acquire an exact container graph and immutable images from allowed registries. It produces a proposal for the host’s Compose execution path. See deployment and activation for lifecycle management.