myimpl

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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