feat: Only send custom notifications when ACP client specifies this capability in the initialization request (#9596)

This commit is contained in:
Lifei Zhou
2026-06-05 08:39:59 +10:00
committed by GitHub
parent 6251e56347
commit ec519eeaaf
15 changed files with 306 additions and 103 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ import {
DEFAULT_GOOSE_MCP_HOST_CAPABILITIES,
GooseClient,
type Client,
type GooseInitializeRequest,
} from '@aaif/goose-sdk';
import { PROTOCOL_VERSION } from '@agentclientprotocol/sdk';
import packageJson from '../../package.json';
@@ -58,7 +57,7 @@ async function initializeConnection(): Promise<GooseClient> {
name: packageJson.name,
version: packageJson.version,
},
} satisfies GooseInitializeRequest);
});
monitorConnection(client);
return client;