Harvest a repository
harvest_repoStage three of a SHPBL repository audit — the harvest: walk an entire repository in batches under a hard character ceiling and fold it into a sealed capability ledger. Batch 1 carries the protocol and the full path-to-batch manifest; later batches carry source only. Pass estimate: true to size a scope before walking it, and ledger_digest to resume a walk in a fresh session. Your own model composes the ledger. Free runs walk the whole tree and seal the ledger of the repository's own capabilities, then stop at the composition boundary — no library search, no candidates, no dispositions. Composition and write-back need a Practitioner key (7-day free trial).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Your SHPBL Practitioner subscription key (shpbl_mcp_…). Optional if your client sends it as the `Authorization: Bearer …` request header. | |
| part | No | Which batch to return, 1 to 2000. Batch 1 carries the protocol and the manifest; walk them all in order. | |
| repo | Yes | A GitHub repository: `owner/repo` or a URL. | |
| brief | No | Skip the harvest protocol preamble on batch 1 and spend the payload on source. Use it once you already hold the method — `method_protocol` (free) returns it verbatim. | |
| budget | No | Characters per batch — a whole number from 10,000 to 120,000. Defaults to 90000; lower it for a smaller context window, raise it only if the client can carry it. Out-of-range values are refused in plain words, not silently clamped. | |
| include | No | Optional path filter — only paths containing this text are harvested. | |
| estimate | No | Return the size of the walk only — batch count, total characters, largest batch, split files — with no source. | |
| github_token | No | Optional GitHub token (Contents: read) for a private repository. Not needed if the SHPBL GitHub App is connected to this key. | |
| ledger_digest | No | The ledger folded so far, handed back by a previous session so this batch continues the same run instead of starting over. |