Quickstart¶
Generate your first LCP manifest in 60 seconds.
Install¶
LCP requires Python 3.10 or newer.
The [ai] extra adds OpenAI and Anthropic clients for AI DocGen.
Scan a package¶
Generate an LCP manifest for any installed Python package:
By default this skips private (underscore-prefixed) symbols and scans submodules recursively. To include private symbols:
Tip
The default JSON indent is 2 spaces. Use --indent 0 for compact output suitable for diffs.
Inspect the output¶
The generated file is a JSON document. You can pipe it through jq or open it in any editor.
Each entry has a stable id (module:symbol), a kind (function, class, method, module...), a signature, and optional fields for summary, stability, deprecations, and effects.
Validate¶
Validation runs automatically during scan. To validate an existing file:
A successful validation prints OK. Errors point at the offending JSON Pointer path.
Next steps¶
- CLI reference — all
lcpcommands and flags. - MCP Server — serve the manifest to an AI agent.
- LCP v1 spec — what each field means.