myimpl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package myimpl shows how to create a custom MCP server implementation by extending the default handler provided in github.com/viant/mcp-protocol/server.

The code is meant for demonstration purposes and is *not* part of the public API of the module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMCPServer added in v0.3.9

func NewMCPServer() server.NewHandler

NewMCPServer returns a factory for MyMCPServer.

Types

type MyMCPServer added in v0.3.9

type MyMCPServer struct {
	*server.DefaultHandler
}

MyMCPServer is a sample MCP implementer embedding the default Base.

func (*MyMCPServer) Implements added in v0.3.9

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

Implements indicates which methods this implementer supports.

func (*MyMCPServer) ListResources added in v0.3.9

ListResources implements the resources/list method.

Jump to

Keyboard shortcuts

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