Handle ACP providers without MCP support
This commit is contained in:
@@ -66,4 +66,12 @@ describe("ACP provider catalog", () => {
|
||||
AUGMENT_DISABLE_AUTO_UPDATE: "1",
|
||||
});
|
||||
});
|
||||
|
||||
it("preserves provider params in the daemon config patch", () => {
|
||||
const droidPatch = buildAcpProviderConfigPatch(findProvider("factory-droid"));
|
||||
|
||||
expect(droidPatch.providers?.["factory-droid"]?.params).toEqual({
|
||||
supportsMcpServers: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -19,6 +19,7 @@ export function buildAcpProviderConfigPatch(
|
||||
description: entry.description,
|
||||
command: [...entry.command],
|
||||
env: entry.env ? { ...entry.env } : {},
|
||||
...(entry.params ? { params: { ...entry.params } } : {}),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user