[Bug]: CLAUDE_CODE_ENTRYPOINT=t3-code disables MCP Tasks: tools/call never advertises io.modelcontextprotocol/tasks, so task waits fail with -32021
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- node.js, typescript
Piste de recherche
Start in the apps/server area named in the issue and trace where T3 Code sets CLAUDE_CODE_ENTRYPOINT and launches Claude Code; compare that path with the sdk-ts behavior described in the reproduction. Check the MCP integration and existing coverage for entrypoint configuration. Done when a T3 thread advertises the tasks capability on tools/call and task waits can complete and wake the idle thread.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Since #28410, T3 Code starts Claude Code with CLAUDE_CODE_ENTRYPOINT=t3-code. With that value, Claude Code doesn't advertise the MCP Tasks extension (io.modelcontextprotocol/tasks, protocol 2026-07-28) to MCP servers. A server that returns a task handle for a long-running tool therefore can't use one in a T3 Claude thread. The idle main conversation also never wakes when the task completes.
This is the same pattern as #29393 and #34562: Claude Code treats t3-code as an unknown entrypoint.
- Run any HTTP MCP server that speaks protocol 2026-07-28, advertises
extensions["io.modelcontextprotocol/tasks"]inserver/discover, and logsparams._meta["io.modelcontextprotocol/clientCapabilities"]ontools/call. The tool should returnresultType: "task"only when that capability is present, and JSON-RPC-32021otherwise. A 26-line Node recorder that does this is included at the end of this issue. - Add it to a Claude thread, for example in the project's
.mcp.json:{"mcpServers":{"rec":{"type":"http","url":"http://127.0.0.1:47812/mcp"}}}. - Make sure the instance has
CLAUDE_AUTO_BACKGROUND_TASKS=1, and thatCLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUNDandCLAUDE_CODE_MCP_AUTO_BACKGROUND_MSare unset. - In a new Claude thread, ask the model to call the tool once and end its turn.
To isolate the entrypoint, the same check runs outside T3 with a stream-json client that keeps its input open:
for e in t3-code sdk-ts cli; do
CLAUDE_CODE_ENTRYPOINT=$e claude --input-format stream-json --output-format stream-json --verbose \
--strict-mcp-config --mcp-config rec-mcp.json --allowedTools mcp__rec__probe_wait
done
Expected behavior
The tools/call metadata includes extensions: {"io.modelcontextprotocol/tasks": {}}. The server returns a task handle, and Claude Code polls tasks/get. When the task completes, the idle thread starts a new turn with origin task-notification / mcp-task. This is what happens with sdk-ts, the Agent SDK default that T3 Code used before #28410.
Actual behavior
With t3-code, the tools/call capability object contains only roots and elicitation, so the server answers -32021 Missing required client capability. No task is created and no wake follows.
Each result below is from a separate session. The cache columns are the state of the feature-flag cache in ~/.claude.json.
CLAUDE_CODE_ENTRYPOINT |
Cache before | Cache after | Tasks on tools/call |
|---|---|---|---|
t3-code (set by T3) |
any | false | no, -32021 |
t3-code + CLAUDE_INTERNAL_FC_OVERRIDES={"tengu_glowing_lark":true} |
true | false | no |
cli (unset) |
true | true | yes, handle polled, idle wake |
sdk-ts |
true | true | yes, handle polled, idle wake |
The results were the same through a local Anthropic-compatible proxy and with a direct connection. Claude Code 2.1.322, 2.1.326 and 2.1.327 all behave this way. In 2.1.327 the gate is the remote rollout flag tengu_glowing_lark. Its built-in default is on only for cli, and the remote value came back false for t3-code and true for sdk-ts and cli.
The flag value is stored in the shared ~/.claude.json cache, so this also affects other sessions:
- Each
t3-codesession writesfalseinto the cache. - A session that starts later with
sdk-tsorclibuilds its MCP capabilities from that cachedfalse. - That session keeps those capabilities for its whole lifetime, even after its own fetch returns
true.
So a single running T3 Claude thread can turn MCP Tasks off for the next standalone claude session on the same machine.
Impact
Major degradation or frequent failure
MCP servers that use durable task waits get -32021 in every T3 Claude thread. In our case, orchestrator threads arm a task wait and end their turn so they can be woken when a delegated agent finishes. That pattern doesn't work at all in T3 since #28410.
Version or commit
T3 Code 0.1.11-nightly.20261118.4864, also 0.1.11-nightly.20261117.4838. It worked before #28410, when T3 Code 0.1.6 launched Claude Code with the default sdk-ts.
Environment
macOS arm64; Claude Code 2.1.327 (also 2.1.322 and 2.1.326); Agent SDK 0.3.321; claude.ai subscription login; claudeAgent provider instance.
Logs or stack traces
# recorder log, CLAUDE_CODE_ENTRYPOINT=t3-code
server/discover protocol=2026-07-28 clientCapabilities={"roots":{"listChanged":true},"elicitation":{"form":{},"url":{}}}
tools/call protocol=2026-07-28 clientCapabilities={"roots":{"listChanged":true},"elicitation":{"form":{},"url":{}}}
-> -32021 Missing required client capability
# same server, CLAUDE_CODE_ENTRYPOINT=sdk-ts
server/discover clientCapabilities={...,"extensions":{"io.modelcontextprotocol/tasks":{}}}
tools/call clientCapabilities={...,"extensions":{"io.modelcontextprotocol/tasks":{}}}
tasks/get -> completed
result origin {"kind":"task-notification","producer":"session-task","taskKind":"mcp-task"}
Workaround
Override the entrypoint in the instance environment, which #28410 allows:
{ "name": "CLAUDE_CODE_ENTRYPOINT", "value": "sdk-ts", "sensitive": false }
Running threads keep their old environment and their capabilities from connect time, so you have to start a new thread.
Side effects of sdk-ts:
- Claude Code turns the Artifact tools off.
CLAUDE_CODE_ARTIFACT=1turns them back on (#31264). - Claude Code drops its built-in
claude-code-guidesubagent.
Possible fixes:
- Default back to
sdk-tsand send T3 attribution another way. - Or get
t3-coderegistered with Anthropic as a known Agent SDK entrypoint. That would cover this issue, #29393 and #34562 together.
mcp-tasks-recorder.mjs (run: node mcp-tasks-recorder.mjs 47812 rec.log)
import http from 'node:http';
import fs from 'node:fs';
const port = Number(process.argv[2]); const logFile = process.argv[3];
const MODERN = '2026-07-28', TASKS = 'io.modelcontextprotocol/tasks'; let waits = 0;
const log = (e) => fs.appendFileSync(logFile, JSON.stringify({ t: new Date().toISOString(), ...e }) + '\n');
const tool = { name: 'probe_wait', description: 'Probe wait tool. Call it once with no arguments.', inputSchema: { type: 'object', properties: {}, additionalProperties: false } };
http.createServer((req, res) => {
let raw = ''; req.on('data', (c) => (raw += c)); req.on('end', () => {
let msg = null; try { msg = JSON.parse(raw); } catch {}
const meta = msg?.params?._meta ?? null;
log({ rpcMethod: msg?.method ?? null, caps: meta?.['io.modelcontextprotocol/clientCapabilities'] ?? null, ua: req.headers['user-agent'] ?? null });
const reply = (b) => { res.writeHead(200, { 'content-type': 'application/json' }); res.end(JSON.stringify(b)); };
if (req.method !== 'POST' || !msg) { res.writeHead(405); return res.end(); }
if (msg.id === undefined) { res.writeHead(202); return res.end(); }
const ok = (result) => reply({ jsonrpc: '2.0', id: msg.id, result });
const now = new Date().toISOString();
switch (msg.method) {
case 'server/discover': return ok({ resultType: 'complete', supportedVersions: [MODERN], capabilities: { tools: {}, extensions: { [TASKS]: {} } }, serverInfo: { name: 'recorder', version: '0.0.1' }, instructions: 'probe' });
case 'tools/list': return ok({ resultType: 'complete', tools: [tool] });
case 'tools/call': if (meta?.['io.modelcontextprotocol/clientCapabilities']?.extensions?.[TASKS] !== undefined) { waits++; return ok({ resultType: 'task', taskId: 'probe-' + waits, status: 'working', createdAt: now, lastUpdatedAt: now, ttlMs: null, pollIntervalMs: 2000 }); }
return reply({ jsonrpc: '2.0', id: msg.id, error: { code: -32021, message: 'Missing required client capability' } });
case 'tasks/get': return ok({ resultType: 'complete', taskId: msg.params?.taskId, status: 'completed', createdAt: now, lastUpdatedAt: now, ttlMs: null, pollIntervalMs: 2000, result: { resultType: 'complete', content: [{ type: 'text', text: 'PROBE_DONE' }], isError: false } });
default: return reply({ jsonrpc: '2.0', id: msg.id, error: { code: -32601, message: 'not found' } });
}
});
}).listen(port, '127.0.0.1');
- Langage dominant
- TypeScript
- Étoiles
- 24.8k
- Forks
- 6.4k
- Merge moyen
- 4 h 29 min
- PR mergées (30 j)
- 488
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pingdotgg/t3code
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
needs more info
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
pingdotgg/t3code#39400 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Wrapped PR titles lose bottom padding in the thread details panelPeut-être pris @iamdatvt94 l’a pris il y a 1 jour. Ouvertebug needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
bug needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de pingdotgg/t3code
Issues similaires
-
area:plugins kind:bug priority:p2 ready
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
Les mainteneurs répondent en général sous 1 jour
-
Escaped `*` followed by `*` (`\**`) never matchesPeut-être pris @bardrop l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 71/100
editorconfig/editorconfig-core-js#172 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
vega/vega-webgpu#40 ·
-
Adjust break point sizingOuvertetype: bug 🐛
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
puckeditor/puck#1929 ·
Les mainteneurs répondent en général sous 1 jour
-
compression() compresses every response at Brotli quality 11Peut-être pris @staylor l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour