MCPcopy Create free account
hub / github.com/Noumena-Network/code / initializeParams

Function initializeParams

src/remote/appServer/client.ts:129–145  ·  view source on GitHub ↗
(args: RemoteAppServerConnectArgs)

Source from the content-addressed store, hash-verified

127}
128
129function initializeParams(args: RemoteAppServerConnectArgs): InitializeParams {
130 return {
131 clientInfo: {
132 name: args.clientName,
133 title: null,
134 version: args.clientVersion,
135 },
136 capabilities: {
137 experimentalApi: args.experimentalApi ?? false,
138 optOutNotificationMethods:
139 args.optOutNotificationMethods &&
140 args.optOutNotificationMethods.length > 0
141 ? args.optOutNotificationMethods
142 : null,
143 },
144 }
145}
146
147function appServerEventFromNotification(
148 notification: ServerNotification,

Callers 1

initializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected