mcp

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mcp provides error constructors for MCP server operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeContentRequired

func TypeContentRequired() error

TypeContentRequired returns an error when type or content is missing from an MCP tool call.

Returns:

  • error: "type and content are required"

func UnknownEventType

func UnknownEventType(eventType string) error

UnknownEventType returns an error for an unrecognized session event type.

Parameters:

  • eventType: the unrecognized event type string

Returns:

  • error: "unknown event type: <eventType>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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