MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / parseMessageToExtension

Function parseMessageToExtension

packages/shared/src/mcp/protocol.ts:73–75  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

71 PingMessageSchema
72])
73
74export type RegisteredMessage = z.infer<typeof RegisteredMessageSchema>
75export type StateMessage = z.infer<typeof StateMessageSchema>
76export type ToolCallPayload = z.infer<typeof ToolCallPayloadSchema>
77export type ToolCallMessage = z.infer<typeof ToolCallMessageSchema>
78export type MessageToExtension = z.infer<typeof MessageToExtensionSchema>

Callers 2

protocol.test.tsFile · 0.90
handleMessageFunction · 0.90

Calls 1

parseJsonWithSchemaFunction · 0.85

Tested by

no test coverage detected