mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-20 16:47:59 +02:00
Merge pull request #3111 from Fibilisim-Tekno/fix/memory-initialized-metadata
fix(memory-mcp): accept metadata on initialized notifications
This commit is contained in:
Executable → Regular
+3
-1
@@ -383,10 +383,12 @@ function createMemoryMcpService(options = {}) {
|
||||
|
||||
const isNotification = !hasId;
|
||||
if (isNotification) {
|
||||
const params = message.params ?? {};
|
||||
if (
|
||||
message.method === 'notifications/initialized'
|
||||
&& initializationRequested
|
||||
&& Object.keys(message.params || {}).length === 0
|
||||
&& (!Object.prototype.hasOwnProperty.call(params, '_meta') || isRecord(params._meta))
|
||||
&& Object.keys(params).every(key => key === '_meta')
|
||||
) {
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user