Repository navigation
Replies: 2 comments
|
Note Grok responding on behalf of Julius. This is a feature request rather than a bug, so it belongs in Ideas. A Claude session connects its MCP servers once, when the process starts. Main has no in-session reconnect yet, and nothing on main is behaving incorrectly. Your Stop-then-resend workaround is the supported path today: it starts a new process with A reconnect in place built on the SDK's |
|
this is a huge issue for me too, since the last update i am having huge issues with linear although am authenticated and connected on the CLI |
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Closest existing reports: #5437 and #6162 (per-thread "Reload agent session"; the PR was closed until the V2 provider rewrite), #10955 (Stop kills the Claude CLI and
--resumes), and anthropics/claude-code#81042 (the same limit in Claude Code, closed as not planned).Area
apps/server
Steps to reproduce
https://mcp.linear.app/mcpin.mcp.json.claudesession that uses the same config directory, run/mcpand authenticate the server. The result isAuthentication successful. Connected to <server>.Expected behavior
The thread can use the server again without losing its conversation. For example, a thread action or an agent-callable tool reconnects one MCP server in the live session.
The Agent SDK that T3 bundles already supports this on the
Queryobject:reconnectMcpServer(serverName), andmcpAuthenticate(serverName, redirectUri)withmcpSubmitOAuthCallbackUrl(serverName, callbackUrl)for a login from inside the thread. A reconnect in place also keeps the prompt cache, which a Stop and--resumerewrites (#10955).Actual behavior
The thread does not get the server's tools back. The new tokens are in the shared credential store, and every new
claudeprocess connects with them. But the thread's running process connected its MCP servers once, at start, and nothing tells it to reconnect.At
main @ 7ac952c,apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts:788-797sends T3's own MCP servers over the control channel withqueryRuntime.setMcpServers(mcpServers). No code in the repository callsreconnectMcpServer,mcpAuthenticate, ormcpSubmitOAuthCallbackUrl. The bundled 0.0.46-nightly.20261013.3066 binary has the same three methods and no call sites.This happens with each project that has its own Linear workspace server. Each grant lapses on its own 25-day schedule, so it happens regularly.
Impact
Major degradation or frequent failure
Version or commit
0.0.46-nightly.20261013.3066; code read at main @ 7ac952c
Environment
Ubuntu Linux (kernel 7.0.0), T3 Code server via the
t3CLI on Node 24.20.0, Claude Code 2.1.299, Claude Opus 5.5Logs or stack traces
Claude Code MCP log (
~/.cache/claude-cli-nodejs/<project>/mcp-logs-<server>/) of the process that lost the server. Its refresh failed when the grant expired, so it cleared the tokens:A thread that T3 resumed in a new process (
--resume=<session>) connects again at start:Workaround
/mcp.--resumes, so every Stop rewrites the full prompt cache (not covered by #10689) #10955).Do the steps in this order. A thread that restarts before you authenticate skips the server again. The first turn after the Stop rewrites the full prompt cache.
All reactions