Repository navigation
Open
Description
Parent epic: #2254
Work package: RP-04 · Depends on: RP-02, RP-03
Problem and deliverable
Register prepare_release_pack, get_release_pack, estimate_release_pack, generate_release_pack and retry_release_pack as thin wrappers over the same domain functions as REST. Use explicit object schemas compatible with target hosts.
Files
api/lib/mcp/tools/content/ (new)api/lib/mcp/tools/index.tsapi/lib/mcp/oauth/fullOAuthToolPolicy.tsapi/lib/mcp/oauth/registerFullOAuthTools.tsapi/lib/mcp/oauth/executeFullOAuthTool.tsapi/lib/mcp/oauth/createFullOAuthToolServices.tsapi/lib/mcp/oauth/__tests__/fullOAuthCatalog.test.tsapi/lib/content/packs/uploadPackAsset.ts (new)
Action items
- Register prepare_release_pack, get_release_pack, estimate_release_pack, generate_release_pack and retry_release_pack as thin wrappers over the same domain functions as REST. Use explicit object schemas compatible with target hosts.
- Expose supported selected-audio/image ingestion through the same account-owned storage, with MIME/size checks and provider-readable bounded locators. A track URL is not proof the actual audio has been acquired. Do not rely on a local filesystem or a site-specific 4 MB upload route for normal songs.
- Bind every job/run/asset and upload to the authenticated caller and selected authorized workspace. No caller account impersonation and no OAuth credential extraction into REST.
- Update delegated tool policy and actual advertised catalog, not only standard MCP registration. Return clear connection/scope/capability errors and refresh instructions without treating missing environment variables or an empty roster as a broken connection.
- Keep preparation/read/estimate separate from paid generation. Tool descriptions disclose spend and authorization requirements. Credential export and unrequested publication remain unavailable.
Done when
- Fresh supported host can discover the pack workflow, submit selected audio, quote, generate, poll and retrieve assets through the Recoup connection without API keys or shell plumbing.
- Standard and delegated OAuth paths use the same job rules and cannot access another account through opaque IDs.
- Limited grants fail with a specific reconnect action; unavailable operations are not silently substituted with a different provider/model.
Validation
- Provider-free MCP schema/catalog/adapter tests plus wrong-owner, expired grant, missing scope, zero roster, upload limits and readback fixtures.
- Fresh real host inventory verification is deferred to RP-09; repository tests alone do not establish client availability.
Source references and boundaries
Re-read current main and existing related PRs before implementation. New files listed above are proposed implementation locations. Use the owning repository's feature branch and PR; update the parent PR matrix as soon as a PR opens. No shipped or live behavior is implied by this ticket. Store/legal/provider and real-account evidence remain distinct from source checks.
Metadata
Metadata
Assignees
Labels
No labels
Activity
sidneyswift commentedon Nov 6, 2026
Shipped and deployed: seven pack MCP tools on the same domain functions as REST, with signed private upload and finalize (recoupable/api#1064). Authenticated MCP discovery and readback passed on an existing account.
Left: discovery and a full run from a fresh supported host install. That is waiting on the Recoup listing, installed version and account linkage, which RP-09 tracks.