mcp

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProfileNames []string
View Source
var Profiles = []Profile{
	&FullProfile{},
}

Functions

func NewTextResult

func NewTextResult(content string, err error) *mcp.CallToolResult

Types

type Configuration added in v0.0.28

type Configuration struct {
	Profile    Profile
	ListOutput output.Output

	StaticConfig *config.StaticConfig
}

type FullProfile added in v0.0.34

type FullProfile struct{}

func (*FullProfile) GetDescription added in v0.0.34

func (p *FullProfile) GetDescription() string

func (*FullProfile) GetName added in v0.0.34

func (p *FullProfile) GetName() string

func (*FullProfile) GetTools added in v0.0.34

func (p *FullProfile) GetTools(s *Server) []server.ServerTool

type Profile added in v0.0.34

type Profile interface {
	GetName() string
	GetDescription() string
	GetTools(s *Server) []server.ServerTool
}

func ProfileFromString added in v0.0.34

func ProfileFromString(name string) Profile

type Server added in v0.0.14

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

func NewServer added in v0.0.43

func NewServer(configuration Configuration) (*Server, error)

func (*Server) Close added in v0.0.19

func (s *Server) Close()

func (*Server) GetKubernetesAPIServerHost added in v0.0.45

func (s *Server) GetKubernetesAPIServerHost() string

GetKubernetesAPIServerHost returns the Kubernetes API server host from the configuration.

func (*Server) ServeHTTP added in v0.0.41

func (s *Server) ServeHTTP(httpServer *http.Server) *server.StreamableHTTPServer

func (*Server) ServeSse added in v0.0.16

func (s *Server) ServeSse(baseUrl string, httpServer *http.Server) *server.SSEServer

func (*Server) ServeStdio added in v0.0.14

func (s *Server) ServeStdio() error

func (*Server) VerifyTokenAPIServer added in v0.0.45

func (s *Server) VerifyTokenAPIServer(ctx context.Context, token string, audience string) (*authenticationapiv1.UserInfo, []string, error)

VerifyTokenAPIServer verifies the given token with the audience by sending an TokenReview request to API Server.

Jump to

Keyboard shortcuts

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