McpHelpers Module
Shared pure helpers used by MCP tool wiring classes.
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
optStr s
Parameters:
string
Returns: string option
|
|
Full Usage:
textResult isError text
Parameters:
bool
text : string
Returns: CallToolResult
|
A tool result holding the text, flagged as a failure when isError is true, so the client and the logging filter can tell a refusal from an answer.
|
Full Usage:
toJson obj
Parameters:
'a
Returns: string
Type parameters: 'a |
|
Full Usage:
toJsonResult result
Parameters:
Result<'a, string>
Returns: CallToolResult
Type parameters: 'a |
An Ok value as JSON text; an Error message as plain text with IsError set.
|
GenPRES