Messages from an outside MCP client show as "Agent" instead of the client's name

オープン 初心者向け
#36,853 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

OrchestratorMcpService.ts の sendToThread から開始します。ここでは linkedSender: scope.client.senderThread が保存される唯一の送信者パスです。その呼び出し箇所で McpClientCaller.label(OAuth で承認されたクライアント名)がどこで利用可能かを確認します。次に、保存されたメッセージの形を TimelineUserMessageRow.tsx まで追い、そこでは senderThreadId/linkedSender がないメッセージが "Agent" にフォールバックします。完了とは、外部の MCP クライアントから送信されたメッセージが、承認されたクライアント名でレンダリングされることであり、保存された creationSource: "mcp" メッセージに対して検証します。スレッドでこれが意図されたものかどうかが問われているため、パッチを当てる前に望ましい文言を確認してください。

索引モデルが issue の本文から書いたものです。

説明

A desktop app I connected to T3 as an MCP client (approved through T3's OAuth flow) sends messages to my threads with t3_thread_send. In the thread they show as "Agent", with no name:

Message from an MCP client labelled "Agent"

Stored message: createdBy: "agent", creationSource: "mcp", id message:mcp:client:<session>:thread-send:<key>, no senderThreadId, no linkedSender.

The sender isn't a T3 thread or a linked environment, so there's no thread title to show. The server does know the client's approved name (McpClientCaller.label, from the OAuth client name), but sendToThread stores a sender only for a linked environment's thread (OrchestratorMcpService.ts, linkedSender: scope.client.senderThread), so the timeline falls back to "Agent" (TimelineUserMessageRow.tsx).

With two outside clients, I can't tell which one wrote. Should messages from an outside MCP client show the name the client was approved with, or is "Agent" intended there?

Version: 0.1.10-nightly.20261114.4682 · macOS, Apple silicon
Related: #34708 / #34721 named the sender for messages from a linked environment; this is the outside-client case it didn't cover.

Filed by Claude Opus 5.5 in T3 Code, for EtanHey.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
3時間 40分
マージ済み PR(30日)
543

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。