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

Function parseMessageFromExtension

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

Source from the content-addressed store, hash-verified

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>
79export type ActivateMessage = z.infer<typeof ActivateMessageSchema>
80export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>
81export type MessageFromExtension = z.infer<typeof MessageFromExtensionSchema>
82

Callers 1

protocol.test.tsFile · 0.90

Calls 1

parseJsonWithSchemaFunction · 0.85

Tested by

no test coverage detected