Skip to main content

Module mcp_package

Module mcp_package 

Source
Expand description

Package specs for interpreter-launched MCP servers.

command: npx, args: ["@yawlabs/fetch-mcp"] runs whatever the registry serves at spawn time. The binary pin cannot help here — it hashes npx (see crate::exec::is_interpreter_command) — so the first thing that can is knowing which release the user approved.

This module only parses and resolves the spec. Verifying the bytes that actually get executed needs package-manager cache introspection or a MUR-owned install, which is tracked separately.

Structs§

PackageSpec
A package spec found in an interpreter entry’s args.

Enums§

Runner

Functions§

parse_spec
Find the package spec an interpreter entry will run.
pinned_version_of
Find name==version for name in a uv pip compile lockfile.
resolve_current_version
Ask the package manager which version it would resolve right now.
runner_for
The runner behind a command, for callers that already know it’s one.