MCPcopy Create free account
hub / github.com/Effect-TS/effect / getOfferedProtocolVersion

Function getOfferedProtocolVersion

packages/effect/src/unstable/ai/McpServer.ts:2343–2346  ·  view source on GitHub ↗
(payload: unknown)

Source from the content-addressed store, hash-verified

2341})
2342
2343const getOfferedProtocolVersion = (payload: unknown): string => {
2344 const decoded = Schema.decodeUnknownResult(OfferedProtocolVersion)(payload)
2345 return Result.isSuccess(decoded) ? decoded.success.protocolVersion : ""
2346}
2347
2348const protocolForInternalTag = (
2349 registry: McpProtocolRegistry.ProtocolRegistry<McpProtocol.ProtocolAdapter>,

Callers 1

McpServer.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected