Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMyImplementer ¶
func NewMyImplementer() server.NewImplementer
NewMyImplementer returns a factory for MyImplementer.
Types ¶
type MyImplementer ¶
type MyImplementer struct {
*server.DefaultImplementer
}
MyImplementer is a sample MCP implementer embedding the default Base.
func (*MyImplementer) Implements ¶
func (i *MyImplementer) Implements(method string) bool
Implements indicates which methods this implementer supports.
func (*MyImplementer) ListResources ¶
func (i *MyImplementer) 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.