mcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolVersion = "2024-11-05"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) RegisterTool

func (s *Server) RegisterTool(name, description string, inputSchema map[string]interface{}, handler ToolHandler)

func (*Server) ServeStdio

func (s *Server) ServeStdio(ctx context.Context) error

func (*Server) SetIdentity

func (s *Server) SetIdentity(name, version string)

type ToolHandler

type ToolHandler func(ctx context.Context, args map[string]interface{}) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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