Skip to content

pack_and_copy

Pack publisher packages and install the tarballs into consumer repos.

Wraps polygraph _pack-and-copy for pre-release validation of a publisher change against downstream consumers.

NameTypeRequiredDescription
sessionIdstringyesThe Polygraph session ID, or a supported Polygraph app session URL. Supported URL paths are /s/<session-id> and /orgs/<org-id>/sessions/<session-id>. URL inputs are normalized to the session ID; the MCP always uses the current Polygraph API configuration.
pairsarrayyesPublisher-consumer path pairs. Each publisher tarball will be packed and installed into the corresponding consumer. Each pair is an object with publisherPath (path to the publisher package directory — the package to build and pack) and consumerPath (path to the consumer project directory where the packed tarball should be installed), both required strings.
runScriptsbooleannoEnable npm lifecycle scripts during packing. Off by default for security.