Documentation
¶
Index ¶
- Variables
- func NewTextResult(content string, err error) *mcp.CallToolResult
- type Configuration
- type FullProfile
- type Profile
- type Server
- func (s *Server) Close()
- func (s *Server) GetKubernetesAPIServerHost() string
- func (s *Server) ServeHTTP(httpServer *http.Server) *server.StreamableHTTPServer
- func (s *Server) ServeSse(baseUrl string, httpServer *http.Server) *server.SSEServer
- func (s *Server) ServeStdio() error
- func (s *Server) VerifyTokenAPIServer(ctx context.Context, token string, audience string) (*authenticationapiv1.UserInfo, []string, error)
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
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) GetKubernetesAPIServerHost ¶ added in v0.0.45
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) ServeStdio ¶ added in v0.0.14
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.
Click to show internal directories.
Click to hide internal directories.