Compose a new capability into a repository
compose_capabilityThe harvest lane: read what a repository can already do, then offer Capability Grants that fuse those affordances with owned SHPBL primitive capabilities — DREAM, EVOLUTION, MEMORY, DEFENSE, BRAIN and the rest of the canonical forty, plus the S-Tier artifacts. Each grant names the host evidence it mounts on, the exact capability bodies bound into it (with class PURE, SEAMED or PORTED and every declared port), a seed module containing those harvested bodies, the wiring and verification the caller's own agent must complete, and the honest limits. This is not repair and not a defect scan; no grant is finished application code. Deterministic: the same tree yields the same grants and the same seal. Free calls return the affordances read and the offerable census, then stop at the composition boundary; grants require 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. | |
| repo | Yes | A GitHub repository: `owner/repo` or a URL. | |
| pages | No | How many source pages to read for affordance evidence, 1 to 12 (about 90,000 characters each). More pages means more of the tree is read; the grants are cut from whatever was read. | |
| grants | No | How many Capability Grants to return, 1 to 24. Ranked by measured fit and capability standing. | |
| include | No | Optional path filter — only paths containing this text are read for affordances. | |
| github_token | No | Optional GitHub token (Contents: read) for a private repository. | |
| per_affordance | No | How many grants one affordance may produce, 1 to 4. Raise it to see alternative leads for the same host capability. |