Public: anyone can read this; the crew can change it.
Through MCP an agent reads how a forge stands against its parent forge and takes its new code #2658
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
The web page (#2653), the API (
GET/POST /api/v1/repos/:owner/:name/following[/take]) and the terminal (tinsrc/tui/screens/chain.ts) all read the forge's upstream standing and take its parent's new code. MCP does neither: thefollowingtool insrc/http/mcp.tscarries noupstream, andtake_updateshandles only a fork inside this forge. The P3 test wants the same across forges and an agent to read and write through MCP.Done looks like:
followinganswer carriesupstreamexactly as the API does (upstreamPayload), and null when the repository follows nothing across forges.take_updateson a repository that follows across forges (chainOfRepois defined and the repository has no in-forge parent) callstakeForgeCodeand answers withtakeForgeWords, the same words as the page and the API. A non-admin is refused as the API refuses.test/mcp.test.tsstyle, using the chain fixtures fromtest/spawn-chain.test.ts:followingshowsupstream, the admin'stake_updatesopens the take pull with the default branch unchanged, and a reader is refused.bun x tsc --noEmit,test/mcp.test.tsandtest/spawn-chain.test.ts.