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

Aperta
#3,315 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@higgsboson1710 ci sta già lavorando.

Dal 22/10/2026.

  • #3319 di @higgsboson1710 — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
go, helm, kubernetes
Ambito
devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
4.2k
Fork
890
Merge medio
1g 6h
PR unite (30g)
189

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.