fix: preserve experimental capability settings (#721)
This commit is contained in:
parent
2ca6a59d2f
commit
c55a3a231f
1 changed files with 81 additions and 27 deletions
|
|
@ -45,6 +45,9 @@ function createMockClient(
|
|||
const testHostInfo = { name: "TestHost", version: "1.0.0" };
|
||||
const testAppInfo = { name: "TestApp", version: "1.0.0" };
|
||||
const testHostCapabilities: McpUiHostCapabilities = {
|
||||
experimental: {
|
||||
"com.example/host-extension": { version: 1 },
|
||||
},
|
||||
openLinks: {},
|
||||
serverTools: {},
|
||||
logging: {},
|
||||
|
|
@ -97,7 +100,12 @@ describe("App <-> AppBridge integration", () => {
|
|||
});
|
||||
|
||||
it("Bridge receives app info and capabilities after initialization", async () => {
|
||||
const appCapabilities = { tools: { listChanged: true } };
|
||||
const appCapabilities = {
|
||||
experimental: {
|
||||
"com.example/app-extension": { version: 1 },
|
||||
},
|
||||
tools: { listChanged: true },
|
||||
};
|
||||
app = new App(testAppInfo, appCapabilities, { autoResize: false });
|
||||
|
||||
await bridge.connect(bridgeTransport);
|
||||
|
|
|
|||
Loading…
Reference in a new issue