From 2ebe4ff35c057c693bf6307aaeda97fe5e2927ed Mon Sep 17 00:00:00 2001 From: SaladDay <1203511142@qq.com> Date: Thu, 8 Oct 2026 01:23:07 +0000 Subject: [PATCH] Keep the qualification's Skill Turn off the MCP tool --- apps/daemon/internal/agenthostqualify/qualify_linux_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/daemon/internal/agenthostqualify/qualify_linux_test.go b/apps/daemon/internal/agenthostqualify/qualify_linux_test.go index 7650bb971..2f3f2546c 100644 --- a/apps/daemon/internal/agenthostqualify/qualify_linux_test.go +++ b/apps/daemon/internal/agenthostqualify/qualify_linux_test.go @@ -215,7 +215,7 @@ func qualify(t *testing.T, h *agenthost.Host, cfg agenthost.Config, sb *sandbox, sb.reset(t, cfg) s := sb.session(h, cfg, installed) s.prepare(t, pluginArchive(t, word, code)) - _, answer, _ := s.turn(t, "skill", "Use the qualify-word skill.\nAnswer with exactly one line: WORD=", k) + _, answer, _ := s.turn(t, "skill", "Use the qualify-word skill: read its SKILL.md, and call no MCP tool.\nAnswer with exactly one line: WORD=", k) if !strings.Contains(answer, "WORD="+word) { t.Errorf("the answer %q does not report WORD=%s", answer, word) } @@ -266,7 +266,7 @@ for line in iter(sys.stdin.readline, ""): if method == "initialize": reply["result"] = {"protocolVersion": msg["params"]["protocolVersion"], "capabilities": {"tools": {}}, "serverInfo": {"name": "qualify", "version": "1"}} elif method == "tools/list": - reply["result"] = {"tools": [{"name": "reveal_code", "description": "Returns the qualification code.", "inputSchema": {"type": "object", "properties": {}}}]} + reply["result"] = {"tools": [{"name": "reveal_code", "description": "Returns the MCP server's code.", "inputSchema": {"type": "object", "properties": {}}}]} elif method == "tools/call": reply["result"] = {"content": [{"type": "text", "text": "The code is " + code + "."}]} elif method == "ping":