Filed by grokbot on behalf of trevato, after trying the Forge connector from Grok.
1. Remote MCP clients never get a sign-in prompt
A Grok-style connector pointed at /mcp never sees a login prompt. Unauthenticated initialize and tools/list answer 200 with only the seven token-free tools (openSession() in src/http/mcp.ts, since #13882), so the client never gets the 401 + WWW-Authenticate that starts OAuth. docs/MCP.md still says that 401 is how Claude and Grok attach. A signed-in person ends up acting as a stranger: code search hits the stranger limit (codeAtOnce: 1, "code search is busy for visitors who are not signed in").
Live (2026-11-25): initialize 200, tools/list 200 (contribute, explore, releases, search, report, start, offer), no www-authenticate; only tools/call tell returns 401 with the challenge.
Ideas: a documented auth-required endpoint (e.g. /mcp?auth=1) for Claude/Grok while /mcp stays open to no-account agents, or a 401 on unauthenticated tools/list again. Either way, fix the docs.
2. repo: in search q is not a qualifier
q: "repo:trevato/forge hetzner" returns nothing; scope is the separate repo argument. Either parse repo: in q or say so in the tool description.
3. start with action: "contribute": remove the hoops
Its schema does not advertise repo (or origin), so a client following the schema gets invalid_repo.
It always runs the anonymous mint (startAnswer → mintContributeToken), even with a bearer present; the caller's identity is never used.
takesOutside() requires the owner's contribute_open opt-in, so trevato/forge, trevato/open-platform and trevato/voxel (public, original, unarchived) all answer not_open. A repo not on this forge (oven-sh/bun) gives the same error.
trevato's preference: like migrate in spirit, contribute should work on any public, non-archived repository, not only those with contribute_open. Make the default open with an owner opt-out. Treat anonymous pushes as a constraint to design around:
pushes only to contrib/<agent>/… or a sandbox fork, never the repo itself;
pulls always held at the access wall for a writer;
keep short expiry and per-address mint caps, add a forge-wide cap;
still refuse private, archived and mirrored repos, with distinct errors for "not on this forge", "mirror", and "owner opted out".
A signed-in caller should skip the guest-token path entirely and use their own account (fork + pull, or a contrib/ branch if they can write).
---
Sharpened scope (triage 2026-11-30): Still true: src/http/mcp.ts:955 opens a session for token-free tools when no authorization header is sent, so a client gets no 401 challenge (bearerChallenge only on authed paths, mcp.ts:946/984). Rewrite: "a documented /mcp/auth endpoint answers initialize with 401 + WWW-Authenticate; /mcp stays open; docs/MCP.md says which to use; start/contribute work on any public repo." The decision (two endpoints vs challenge-on-initialize) is small; part 2 (start/contribute on any public repo) should be its own issue.
Filed by grokbot on behalf of trevato, after trying the Forge connector from Grok.
1. Remote MCP clients never get a sign-in prompt
A Grok-style connector pointed at
/mcpnever sees a login prompt. Unauthenticatedinitializeandtools/listanswer 200 with only the seven token-free tools (openSession()insrc/http/mcp.ts, since #13882), so the client never gets the 401 +WWW-Authenticatethat starts OAuth.docs/MCP.mdstill says that 401 is how Claude and Grok attach. A signed-in person ends up acting as a stranger: code search hits the stranger limit (codeAtOnce: 1, "code search is busy for visitors who are not signed in").Live (2026-11-25):
initialize200,tools/list200 (contribute, explore, releases, search, report, start, offer), nowww-authenticate; onlytools/call tellreturns 401 with the challenge.Ideas: a documented auth-required endpoint (e.g.
/mcp?auth=1) for Claude/Grok while/mcpstays open to no-account agents, or a 401 on unauthenticatedtools/listagain. Either way, fix the docs.2.
repo:in searchqis not a qualifierq: "repo:trevato/forge hetzner"returns nothing; scope is the separaterepoargument. Either parserepo:inqor say so in the tool description.3.
startwithaction: "contribute": remove the hoopsrepo(ororigin), so a client following the schema getsinvalid_repo.startAnswer→mintContributeToken), even with a bearer present; the caller's identity is never used.takesOutside()requires the owner'scontribute_openopt-in, so trevato/forge, trevato/open-platform and trevato/voxel (public, original, unarchived) all answernot_open. A repo not on this forge (oven-sh/bun) gives the same error.trevato's preference: like migrate in spirit, contribute should work on any public, non-archived repository, not only those with
contribute_open. Make the default open with an owner opt-out. Treat anonymous pushes as a constraint to design around:contrib/<agent>/…or a sandbox fork, never the repo itself;A signed-in caller should skip the guest-token path entirely and use their own account (fork + pull, or a
contrib/branch if they can write).--- Sharpened scope (triage 2026-11-30): Still true: src/http/mcp.ts:955 opens a session for token-free tools when no authorization header is sent, so a client gets no 401 challenge (bearerChallenge only on authed paths, mcp.ts:946/984). Rewrite: "a documented /mcp/auth endpoint answers initialize with 401 + WWW-Authenticate; /mcp stays open; docs/MCP.md says which to use; start/contribute work on any public repo." The decision (two endpoints vs challenge-on-initialize) is small; part 2 (start/contribute on any public repo) should be its own issue.