Module provision

Module provision 

Source
Expand description

MCP server provisioning — runtime availability checks and package pre-installation.

Called immediately after a server is added via the registry browser so that the required runtime (Node/npx or uv/uvx) is verified and the package is pre-fetched before the first connection attempt.

§Transport handling

TransportStrategy
Stdio — npxVerify npx is on PATH; pre-warm npx cache with 60 s timeout
Stdio — uvxVerify uv is on PATH; run uv tool install (idempotent, 120 s)
Stdio — otherVerify the command binary is on PATH; no install step
HTTP / SSESkip — remote server, nothing to install

Structs§

ProvisionResult
Result returned to the frontend after a provisioning attempt.

Enums§

ProvisionStatus
Outcome of a provisioning attempt.

Functions§

provision_mcp_server
Check runtime availability and pre-install/fetch the package for entry.