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

custom

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package custom shows how to implement a fully custom MCP tool and register it with a server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) protoserver.NewHandler

New creates a new Handler instance

Types

type Config

type Config struct {
	BaseURL string
	Options []storage.Option
}

type Handler added in v0.4.2

type Handler struct {
	*protoserver.DefaultHandler
	// contains filtered or unexported fields
}

func (*Handler) Implements added in v0.4.2

func (i *Handler) Implements(method string) bool

Implements returns true if the method is supported by this implementer

func (*Handler) ListResources added in v0.4.2

func (*Handler) ReadResource added in v0.4.2

func (*Handler) Subscribe added in v0.4.2

Subscribe adds the URI to the subscription map.

Jump to

Keyboard shortcuts

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