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

Abierto
#3,315 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@higgsboson1710 ya está trabajando en esto.

Desde el 22/10/2026.

  • #3319 de @higgsboson1710 — cerrado sin fusionar

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
go, helm, kubernetes
Área
devops

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
4.2k
Forks
890
Merge medio
1 d 6 h
PR fusionados (30 d)
189

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kagent-dev/kagent

Todos los issues de kagent-dev/kagent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.