mcp

package
v0.0.0-...-7202591 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSummary

type AgentSummary struct {
	Ref         string `json:"ref"`
	Description string `json:"description,omitempty"`
}

type InvokeAgentInput

type InvokeAgentInput struct {
	Agent     string `json:"agent" jsonschema:"Agent reference in format namespace/name"`
	Task      string `json:"task" jsonschema:"Task to run"`
	ContextID string `json:"context_id,omitempty" jsonschema:"Optional A2A context ID to continue a conversation"`
}

type InvokeAgentOutput

type InvokeAgentOutput struct {
	Agent     string `json:"agent"`
	Text      string `json:"text"`
	ContextID string `json:"context_id,omitempty"`
}

type ListAgentsInput

type ListAgentsInput struct{}

Input types for MCP tools

type ListAgentsOutput

type ListAgentsOutput struct {
	Agents []AgentSummary `json:"agents"`
}

type MCPHandler

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

MCPHandler handles MCP requests and bridges them to A2A endpoints

func NewMCPHandler

func NewMCPHandler(kubeClient client.Client, a2aBaseURL string, authenticator auth.AuthProvider) (*MCPHandler, error)

NewMCPHandler creates a new MCP handler Wraps the StreamableHTTPHandler and adds A2A bridging and context management.

func (*MCPHandler) ServeHTTP

func (h *MCPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler interface

func (*MCPHandler) Shutdown

func (h *MCPHandler) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the MCP handler

Jump to

Keyboard shortcuts

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