Skip to content

test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933

Open

Description

@yannickmonney

Summary

A person can now connect a coding agent to Tale by signing in from the agent, and it is on by default (#4926). It has been observed end to end with one real client, the Codex CLI, and with a stand-in agent. The other clients the guides will name were not driven end to end, because they need an interactive session or a hosted service. This issue tracks a manual round with each, so the documented steps are observed and not assumed.

What was observed (2026-10-13, a local stack, defaults untouched)

  • Codex CLI: codex mcp add tale --url <endpoint>, then codex mcp login tale --no-browser with the callback pasted on stdin. The backend fetched Codex's client metadata document from chatgpt.com (log line [agent-oauth] client metadata document refreshed host=chatgpt.com), the person reached the consent page, Codex received a token, and the stored credential listed 39 tools over MCP (tools/list answered ok in the backend log). This run is what found that Codex asks for identity scopes beside the agent ones (openid profile email tale:organization …), which the endpoint now narrows instead of refusing.
  • A stand-in agent went through discovery, registration, consent, a call its access does not cover (refused), a refresh and a disconnect.
  • Claude Code 2.1.296 (CLI): added with claude mcp add --transport http tale <endpoint>, it shows "Needs authentication" from the endpoint's 401 challenge. claude mcp login tale --no-browser (run in a terminal) printed the authorization URL, the person signed in and chose the access on the consent page, and the redirect to Claude Code's local callback completed the sign-in (Authenticated with "tale"); claude mcp list then reported tale … ✔ Connected, and the backend log shows its client metadata document read from claude.ai and server/discover and tools/list answered ok. Claude Code asked for exactly the scopes the endpoint lists (the agent scopes, no identity scopes).
  • Five agent lanes against real Postgres: 125 of 125 checks.

What was not observed

  • Claude Code: the interactive /mcp screen (only claude mcp login was run), and a tool call by the model.
  • Cursor, VS Code (agent mode), Gemini CLI, claude.ai (custom connector): not run at all. claude.ai also needs the deployment to be reachable from Anthropic's servers (the hardening page for operators lists their published range).
  • Cursor's cloud agents: Cursor's documentation (read 2026-10-13) lists two callbacks, http://localhost:8787/callback for the desktop app and https://www.cursor.com/agents/mcp/oauth/callback for the web and cloud agents. The first is a loopback redirect and is accepted; the second is a web redirect on a host that is not in the default list below, so a cloud agent would be refused unless an operator adds the host.
  • What each client sends at registration and at authorization. Registration with a web redirect is accepted only for claude.ai, claude.com, chatgpt.com, vscode.dev and insiders.vscode.dev (DEFAULT_DCR_WEB_REDIRECT_HOSTS in services/platform/backend/auth/agent-oauth-config.ts); a client with another web redirect would be refused, while a local loopback redirect is accepted (the list can be changed with TALE_MCP_DCR_WEB_REDIRECT_HOSTS).
  • Windows and WSL clients; a deployment behind a reverse proxy that does not forward the .well-known paths (the operator guide has a path table).

What a round needs

  • A throwaway deployment reachable from the client (for claude.ai, from the internet) and an owner account.
  • The manual boxes: services/platform/tests/manual/suites/auth.md (AUTH-F34 to AUTH-F36, AUTH-B20, AUTH-A6) and services/platform/tests/manual/suites/settings.md (SET-F85 to SET-F88, SET-B38, SET-A11).
  • The vendors' own descriptions of sign-in, read on 2026-10-13: Claude Code claude mcp add --transport http then /mcp or claude mcp login; Codex codex mcp add … --url then codex mcp login, with CIMD or registration chosen automatically; claude.ai Customize › Connectors › Add custom connector (the OAuth client can be Claude's published identity or registered automatically, and the server must be reachable from Anthropic's network); opencode opencode mcp auth <name>; Gemini CLI gemini mcp add --transport http then /mcp auth <name>; VS Code's documentation did not describe the sign-in.
  • For each client: the exact commands or clicks, what the client sent (read from the backend log and the Connected agents page), and the access the consent page offered, written down so the user guides can quote them.

Questions

  • Which of these clients must be observed before the user guides name them as supported, and which can be listed as "should work, not verified"?
  • Who runs the rounds that need a hosted client (claude.ai) or a paid plan?

Related

#4926, #4925

Activity

  1. added
    priority: medium
    improvement
    service: platform
    on Oct 13, 2026
  2. yannickmonney commented on Oct 13, 2026

    @yannickmonney
    ContributorAuthor

    Update 2026-10-14, after the connect dialog (#4958) and its follow-ups.

  3. added
    agent-ready
    on Oct 29, 2026
  4. tale-review-bot commented on Oct 31, 2026

    @tale-review-bot
    Collaborator

    Decision: Tale names a coding-agent client as supported only after its sign-in has been observed end to end and recorded. The four unobserved clients stay under Other until then, and the round that observes them needs a person.

    The question. Which clients must be observed end to end before the connect dialog and the guides name them as supported, and who runs the rounds that the agents cannot run? (TALE-196, tale#4933)

    Options weighed

    • List each documented client now as "should work, not verified". The cost: people would follow steps no one has run. The rounds so far found real differences:

      • Codex signs in with its add command, while Claude Code needs a second login step (comment of 2026-10-14 on tale#4933).
      • Cursor's cloud agents use a web callback on www.cursor.com, which the default list refuses. The list is DEFAULT_DCR_WEB_REDIRECT_HOSTS at services/platform/backend/auth/agent-oauth-config.ts:21 in tale-project/tale main df6105cef08a78084439c029d5917611c4adcf54.

      Unrun steps would be wrong in the same ways.

    • Observe before naming. This is the rule the connect dialog already follows: tabs for Claude Code and Codex, whose steps were run, and an Other tab with the address and the guide (same comment). The cost: people using Cursor, VS Code, Gemini CLI or claude.ai use Other until their client's round is done.

    Decided: observe before naming, for every client. A client gets a tab in the connect dialog and its own steps in the user guides only after a round has observed it and recorded:

    • the commands or clicks;
    • what the client sent at registration and authorization (backend log and the Connected agents page);
    • the access the consent page offered;
    • what the client prints for a certificate it does not trust (tale#4973).

    Until then, these clients reach Tale through Other. The reasons, in order: correctness of what Tale tells people, then consistency with how the dialog already works. TALE-200 (tale#4974) stays blocked on this round, and adds each client once its round is recorded.

    Who runs the round: a person. Each client needs an account of its own:

    • Cursor needs a Cursor account;
    • VS Code's agent mode needs a GitHub Copilot plan;
    • Gemini CLI needs a Google account;
    • claude.ai needs a plan that allows custom connectors.

    Each also needs an interactive session, and claude.ai needs a deployment that Anthropic's servers can reach. No agent holds these accounts or can drive these apps. Creating or using an account in a person's name is an act only a person can do.

    After the round:

    • each client observed working goes into TALE-200's scope;
    • each difference found becomes its own issue (a refused callback, a missing scope, wrong guide steps);
    • this task then closes tale#4933.

    What would change this decision: a vendor that publishes a scriptable, non-interactive sign-in an agent can run without an account. That client's round could then run in CI instead of by hand.


    Waits for a person: run the manual sign-in round with Cursor (desktop app), VS Code (agent mode), Gemini CLI and claude.ai (custom connector).

    Where: a throwaway Tale deployment, signed in as its owner, with agent sign-in on (the default). For claude.ai, the deployment must be reachable from Anthropic's servers.

    What to do:

    1. Connect each client as its vendor describes, one client at a time.
    2. Tick the boxes AUTH-F34–AUTH-F36, AUTH-B20 and AUTH-A6 in services/platform/tests/manual/suites/auth.md, and SET-F85–SET-F88, SET-B38 and SET-A11 in services/platform/tests/manual/suites/settings.md.
    3. Write down, per client:
      • the exact commands or clicks;
      • what the client sent at registration and authorization (backend log, Connected agents page);
      • the access the consent page offered;
      • what it printed for an untrusted certificate (tale#4973).
    4. Post that record here or on tale#4933.

    What happens after:

    • I move TALE-200 (tale#4974) on for the clients that worked;
    • I file an issue for each difference the round finds;
    • this task closes tale#4933.
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

    agent-readyimprovementpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions