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
func (i *MyMCPServer) ListResources( ctx context.Context, req *schema.ListResourcesRequest, ) (*schema.ListResourcesResult, *jsonrpc.Error)
ListResources implements the resources/list method.
Click to show internal directories.
Click to hide internal directories.