Add native toolbox MCP tools

This commit is contained in:
Mikei386 committed 2026-08-29 13:27:28 +02:00
1 parent 63542bb29e
commit 454bb111fe
13 files changed
+211 -35

No files matched your search

+9
View File
@@ -74,6 +74,8 @@ describe("secret handling", () => {
describe("risk classification", () => {
test("classifies root shell and container changes as critical", () => {
expect(getToolRisk("unraid_system_shell")).toBe("critical");
expect(getToolRisk("unraid_toolbox_exec")).toBe("critical");
expect(getToolRisk("unraid_toolbox_status")).toBe("read");
expect(getToolRisk("unraid_system_job_start")).toBe("critical");
expect(getToolRisk("unraid_system_job_cleanup")).toBe("critical");
expect(getToolRisk("unraid_system_job_status")).toBe("read");
@@ -91,6 +93,13 @@ describe("risk classification", () => {
});
});
describe("agent toolbox tools", () => {
test("publishes explicit status and execution schemas", () => {
expect(toolByName("unraid_toolbox_status")).toBeDefined();
expect(toolByName("unraid_toolbox_exec")).toBeDefined();
});
});
describe("direct Unraid terminal", () => {
test("accepts a normal command with the extended timeout", async () => {
const tool = toolByName("unraid_system_shell");