mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 02:02:42 +00:00
test: cover provider feature discovery over MCP e2e
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user