response

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package response provides utilities for creating MCP tool responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string) ([]protocol.Content, bool)

Error creates an error response with the given message.

func JSON

func JSON(v interface{}) ([]protocol.Content, bool)

JSON creates a JSON response from the given value.

func Success

func Success(msg string) ([]protocol.Content, bool)

Success creates a success response with the given message.

func Text

func Text(msg string) ([]protocol.Content, bool)

Text creates a text response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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