Documentation
¶
Index ¶
- Constants
- Variables
- func NewTextResult(content string, err error) *mcp.CallToolResult
- type Configuration
- type FullProfile
- type Profile
- type Server
- func (s *Server) Close()
- func (s *Server) GetEnabledTools() []string
- 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 ¶
View Source
const TokenScopesContextKey = "TokenScopesContextKey"
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 ¶
type Configuration struct { Profile Profile ListOutput output.Output StaticConfig *config.StaticConfig }
type FullProfile ¶
type FullProfile struct{}
func (*FullProfile) GetDescription ¶
func (p *FullProfile) GetDescription() string
func (*FullProfile) GetName ¶
func (p *FullProfile) GetName() string
func (*FullProfile) GetTools ¶
func (p *FullProfile) GetTools(s *Server) []server.ServerTool
type Profile ¶
type Profile interface { GetName() string GetDescription() string GetTools(s *Server) []server.ServerTool }
func ProfileFromString ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(configuration Configuration) (*Server, error)
func (*Server) GetEnabledTools ¶
func (*Server) GetKubernetesAPIServerHost ¶
GetKubernetesAPIServerHost returns the Kubernetes API server host from the configuration.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(httpServer *http.Server) *server.StreamableHTTPServer
func (*Server) ServeStdio ¶
Click to show internal directories.
Click to hide internal directories.