util

package
v0.35.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONResult

func JSONResult(value any) *mcp.CallToolResult

JSONResult returns a JSON-formatted MCP tool result.

func ShellQuote

func ShellQuote(value string) string

ShellQuote returns a POSIX-safe single-quoted shell argument.

func StringMapValue

func StringMapValue(values map[string]any, key string) string

StringMapValue reads and trims a string-like value from generic JSON input.

func TextResult

func TextResult(text string) *mcp.CallToolResult

TextResult returns a plain-text MCP tool result.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL