Skip to content

[Release Packs][RP-04] Expose complete pack operations through authenticated MCP #2258

Open

Description

@sswiftdrtv

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.ts
  • api/lib/mcp/oauth/fullOAuthToolPolicy.ts
  • api/lib/mcp/oauth/registerFullOAuthTools.ts
  • api/lib/mcp/oauth/executeFullOAuthTool.ts
  • api/lib/mcp/oauth/createFullOAuthToolServices.ts
  • api/lib/mcp/oauth/__tests__/fullOAuthCatalog.test.ts
  • api/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.

Activity

  1. sidneyswift commented on Nov 6, 2026

    @sidneyswift
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions