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

MCP `upstream`: read and set the repository a fork follows, and check it now #4902

shipped production is serving it opened this has it
opened this

Intent: a fork's owner sees and changes what it follows from their harness.

Done:

  • [ ] src/http/mcp.ts has a upstream tool, placed right after follow_mode, that calls what GET and PUT /api/v1/repos/:owner/:name/upstream and POST …/upstream/check call, for the same caller
  • [ ] docs/MCP.md has its row beside follow_mode
  • [ ] test/mcp-upstream.test.ts: an admin sets an upstream, reads it back and checks it; a reader is refused set; an upstream they cannot read is refused

Risks: test/mcp-size.test.ts holds tools/list under a 37,000-byte headroom, so keep the description to one short sentence. Other MCP tools are being added in parallel, so put this one exactly where named. Do not change the API routes: the tool calls the functions they call, with the same permissions.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs