MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isMessageAction

Function isMessageAction

packages/cli/src/ui/commands/mcpCommand.test.ts:39–43  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

37
38// Helper function to check if result is a message action
39const isMessageAction = (result: unknown): result is MessageActionReturn =>
40 result !== null &&
41 typeof result === 'object' &&
42 'type' in result &&
43 result.type === 'message';
44
45// Helper function to create a mock DiscoveredMCPTool
46const createMockMCPTool = (

Callers 1

mcpCommand.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected