Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromService

func FromService(s svc.Service) []mcpschema.Tool

FromService converts a service.Service to a slice of MCP Tool. Tool.Name is the method name; Input/Output schemas are derived from reflection types.

Types

type ToolUIMetadataProvider added in v0.1.9

type ToolUIMetadataProvider interface {
	MCPUIToolUI(method string) (mcpuimeta.ToolUI, bool)
}

ToolUIMetadataProvider optionally exposes MCP UI metadata for specific service methods. The MCP adapter consults this provider and, when present, injects the returned `_meta.ui` payload into the generated MCP tool definition for that method.

Jump to

Keyboard shortcuts

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