[BUG] Chart registers kagent-tool-server with a short service name that Substrate 0.6 sandboxes cannot resolve
维护者通常 1 天内回复
评估
调研方向
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
- Install kagent v1.0.0-alpha17 with
kagent-tools.enabled: trueand Substrate v0.6.0-alpha3. - Ask an agent that binds
kagent-tool-serverto 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 小时
- 30 天内合并 PR
- 189
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kagent-dev/kagent 的其他 Issue
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)可能已有人在做 @talcoh2x 于 1 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 84/100
kagent-dev/kagent#3571 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Gemini catalogs omit gemini-4-argon and gemini-3.8-flash可能已有人在做 @jayunit100 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
kagent-dev/kagent#3524 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Don't add the provider's public host to egress when a ModelConfig sets baseUrl可能已有人在做 @lakshyab20 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 81/100
kagent-dev/kagent#3507 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BUG] OpenAI and Ollama adapters send an empty tool message when a tool returns a dict可能已有人在做 @helloxjade 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
kagent-dev/kagent#3462 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
kagent-dev/kagent#3428 · 1 条评论 ·
维护者通常 1 天内回复
查看 kagent-dev/kagent 的全部 Issue
相似的 Issue
-
bug raised-by:desk
难度 2/5 1-3 小时 新手友好度 72/100
medici-finance/assay#6102 ·
维护者通常 1 天内回复
-
hive size:simple
难度 2/5 1-3 小时 新手友好度 84/100
akleizor/ccmorph#456 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
radius-project/radius#13744 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 86/100
mvanhorn/printing-press-library#2460 ·
维护者通常 1 天内回复