[BUG] Chart registers kagent-tool-server with a short service name that Substrate 0.6 sandboxes cannot resolve

オープン
#3,315 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@higgsboson1710 がすでに取り組んでいます。

2026年10月22日 から。

  • #3319 @higgsboson1710 による — マージされずにクローズ

評価

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

調査の方向性

Read helm/kagent/templates/toolserver-kagent.yaml and compare its URL with toolserver-api.yaml, which the issue says uses the authority helper pattern. Check how the chart derives the cluster domain and render the chart with tools enabled. Done means the rendered tool server URL is fully qualified and respects the configurable cluster domain so sandboxed Substrate workloads can resolve it.

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

説明

Bug description

The chart registers the built-in tool server with a short service name:

# helm/kagent/templates/toolserver-kagent.yaml
spec:
  url: "http://{{ $toolsFullname }}.{{ $toolsNamespace }}:8084/mcp"

which renders to http://kagent-tools.kagent:8084/mcp. Agents running on Substrate 0.6 (the version kagent alpha17 pins) cannot resolve that name, so every tool call to the built-in server fails:

lookup kagent-tools.kagent ... no such host

Substrate 0.6 enforces DNS for sandboxed workloads, and only fully qualified names resolve. The same template's sibling, toolserver-api.yaml, already uses kagent.controllerServiceAuthority.

Steps to reproduce
  1. Install kagent v1.0.0-alpha17 with kagent-tools.enabled: true and Substrate v0.6.0-alpha3.
  2. Ask an agent that binds kagent-tool-server to list namespaces.
Expected

The tool call succeeds.

Actual

The MCP call fails with the DNS error above. The workaround is a post-renderer that rewrites the URL to http://kagent-tools.kagent.svc.cluster.local:8084/mcp, after which tools work.

Suggested fix

Render the fully qualified name, {{ $toolsFullname }}.{{ $toolsNamespace }}.svc.{{ clusterDomain | default "cluster.local" }}, or reuse the authority helper pattern from toolserver-api.yaml.

Environment

kagent v1.0.0-alpha17 (Helm), Substrate v0.6.0-alpha3.

主要言語
Go
スター
4.2k
フォーク
890
平均マージ
1日 6時間
マージ済み PR(30日)
189

環境構築

Codespaces で開く

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

はじめの一歩

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

kagent-dev/kagent のほかの issue

kagent-dev/kagent の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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