mcpkit

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Name    string
	Version string
	Tools   []Tool

	Visible func(r *http.Request) func(t Tool) bool
	// contains filtered or unexported fields
}

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Tool

type Tool struct {
	Name        string
	Description string
	Properties  map[string]any
	Required    []string
	Schema      map[string]any
	Scope       string
	Method      string
	Path        func(args map[string]any) (string, error)
	Body        func(args map[string]any) ([]byte, error)
	Handler     http.Handler
}

Jump to

Keyboard shortcuts

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