Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:1mcp app Agent Pnpm Lockfile

From Leeroopedia
Knowledge Sources
Domains Dependency_Management, Build
Last Updated 2026-10-29 00:00 GMT

Overview

Concrete pnpm lockfile (`pnpm-lock.yaml` v9.0) that pins exact dependency versions, integrity hashes, and platform-specific binary resolutions for the 1MCP project, ensuring reproducible installs across all environments.

Description

The pnpm-lock.yaml file is the deterministic dependency lockfile for the 1MCP monorepo. It uses lockfile version 9.0, recording the package manager (pnpm 12.10.1), all direct and transitive dependencies with content-addressable integrity hashes, and platform-specific optional binaries (e.g., `@pnpm/exe.*` for android/darwin/linux/win32 across arm64/x64/musl/glibc). The lockfile is the single source of truth for `pnpm install --frozen-lockfile` in CI and production builds, preventing supply-chain drift between development and deployment. It also pins peer-fixture dependencies used in protocol conformance testing.

Usage

Reference this file when you need to:

  • Understand which exact dependency versions 1MCP ships with
  • Audit transitive dependencies or verify integrity hashes
  • Debug install reproducibility issues
  • Update dependencies via `pnpm update` and review lockfile changes

Code Reference

Source Location

Signature

lockfileVersion: '9.0'

importers:
  .:
    configDependencies: {}
    packageManagerDependencies:
      pnpm:
        specifier: 12.10.1
        version: 12.10.1

packages:
  # Each entry: name@version with resolution integrity, cpu, os, libc
  '@pnpm/exe.linux-x64@12.10.1':
    resolution: {integrity: sha512-...}
    cpu: [x64]
    os: [linux]
    libc: [glibc]

snapshots:
  # Resolved dependency graph with optional/dev flags

Import

# Used by pnpm automatically; no manual import needed
pnpm install --frozen-lockfile

I/O Contract

Inputs

Name Type Required Description
package.json JSON manifest Yes Declares direct dependencies and their version ranges
pnpm-workspace.yaml YAML config Yes Declares workspace root and package manager

Outputs

Name Type Description
node_modules/ directory Installed dependency tree matching the lockfile exactly
lockfileVersion string `9.0` — the pnpm lockfile format version
integrity hashes sha512 Content-addressable verification for every resolved package

Usage Examples

Reproducible Install

# Install exactly the locked dependency versions (used in CI)
pnpm install --frozen-lockfile

# Verify lockfile is up to date with package.json
pnpm install --frozen-lockfile --lockfile-only

Inspecting a Dependency

# List why a package is installed and its resolution chain
pnpm why @modelcontextprotocol/sdk

# Check the locked version and integrity hash
grep '@modelcontextprotocol/sdk' pnpm-lock.yaml

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment