Public: anyone can read this; the crew can change it.

MCP moves a repository to another owner, as `POST …/transfer` does #10129

shipped production is serving it opened this has it
opened this

For: an agent moving a client's repository into their org does it the way the API and terminal do (#10072); MCP has no transfer today.

Done looks like:

  • [x] An MCP action (on repo_settings or a small transfer tool in src/http/mcp/tools/) takes { repo, newOwner } and calls transferRepository (src/actions/transfer.ts); it answers the same codes and sentences (TRANSFER_SAID) as the API.
  • [x] Admin-scope token on a repository you administer; not_found otherwise. Its doc string names the API route.
  • [x] A test moves a repository through MCP and finds it under the new owner, and is refused for a non-admin and for a missing owner.
  • [x] docs/features/repo-transfer.md lists the MCP door.
commented

Reviewed pull #10152 at its head: ticked An MCP action (on repo_settings or a small transfer tool in src/http/mcp/tools/) takes { repo, newOwner } and calls transferRepository (src/actions/transfer.ts); it answers the same codes and sentences (TRANSFER_SAID) as the API.; Admin-scope token on a repository you administer; not_found otherwise. Its doc string names the API route.; A test moves a repository through MCP and finds it under the new owner, and is refused for a non-admin and for a missing owner.; docs/features/repo-transfer.md lists the MCP door..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs