test: cover provider feature discovery over MCP e2e

This commit is contained in:
zbl
2026-05-13 19:10:38 +07:00
committed by Mohamed Boudra
parent 2b7002a878
commit bfb8f5b640
@@ -390,6 +390,26 @@ describe("Suite A: Core Fixes", () => {
}
});
test("list_provider_features returns draft provider features over MCP", async () => {
const payload = await callToolStructured(topLevelClient, "list_provider_features", {
provider: "claude",
cwd: parentAgentCwd,
model: "claude-test-model",
featureValues: { test_feature: true },
});
expect(payload.provider).toBe("claude");
expect(recordArr(payload.features)).toEqual(
expect.arrayContaining([
expect.objectContaining({
type: "toggle",
id: "test_feature",
value: true,
}),
]),
);
});
test("create_agent accepts labels param", async () => {
let agentId: string | null = null;
try {