Documentation
¶
Overview ¶
Package helpers provides MCP result utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPtr ¶
BoolPtr returns a pointer to a bool value. Used for ToolAnnotations fields that are *bool.
func JSONResult ¶
func JSONResult(data json.RawMessage) *mcp.CallToolResult
JSONResult wraps raw JSON bytes as a text MCP result.
func SetIfNotEmpty ¶
SetIfNotEmpty adds a key to the map only if the value is non-empty.
func ToolErrResult ¶
func ToolErrResult(msg string) *mcp.CallToolResult
ToolErrResult returns an error MCP result with the given message.
func ValidateUUID ¶
func ValidateUUID(id, fieldName, listHint string) (*mcp.CallToolResult, bool)
ValidateUUID checks that id is a valid UUID and returns an error result if not. Returns true if valid, false if invalid (caller should return the result).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.