feat: release v0.5.1 with multi-file skill system and IDE plugin manifest
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled

This commit is contained in:
gitea committed 2026-09-03 15:32:01 +08:00
1 parent c1dc9f1616
commit 188a0fb5dc
22 files changed
+3912 -187

No files matched your search

+26
View File
@@ -153,4 +153,30 @@ describe("hose-use MCP server & hose_cli single-gate pattern", () => {
await Promise.allSettled([client.close(), server.close()]);
}
});
test("returns empty tools when MCP is disabled via configuration", async () => {
const server = createServer({ enabled: false });
const client = new Client({ name: "hose-use-test-disabled", version: "1.0.0" });
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
try {
await Promise.all([
server.connect(serverTransport),
client.connect(clientTransport),
]);
const listed = await client.listTools();
expect(listed.tools).toEqual([]);
const callResult = await client.callTool({
name: HOSE_CLI_TOOL_NAME,
arguments: { command: "version" },
});
expect(callResult.isError).toBe(true);
const content = callResult.content as Array<{ type: "text"; text: string }>;
expect(content[0]?.text).toContain("HOSE_USE_MCP_ENABLED=false");
} finally {
await Promise.allSettled([client.close(), server.close()]);
}
});
});