MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / negotiateProtocolVersion

Function negotiateProtocolVersion

server/mcp/handler.go:331–336  ·  view source on GitHub ↗
(requestedVersion string)

Source from the content-addressed store, hash-verified

329}
330
331func negotiateProtocolVersion(requestedVersion string) string {
332 if _, ok := supportedProtocolVersions[requestedVersion]; ok {
333 return requestedVersion
334 }
335 return ProtocolVersion
336}
337
338func (s *Server) getSession(id string) (session, bool) {
339 if id == "" {

Callers 1

handleInitializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected