mcpwn API
    Preparing search index...

    Function capturePin

    • mcpwn pin capture [--out mcpwn.lock] -- <server> [args...] — spawn the server, run a minimal MCP handshake (initialize → initialized), enumerate tools/list, resources/list and prompts/list, hash each surface into a canonical lockfile, then exit. Drives the child directly (like baseline capture) rather than proxying, so stdio here is normal CLI I/O. A surface the server does not support (JSON-RPC error) is recorded as empty — the capture never hangs on it.

      Parameters

      • command: string
      • args: string[]
      • outFile: string
      • logger: PinLogger

      Returns Promise<number>