Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RelayHandler ¶
type RelayHandler struct {
// contains filtered or unexported fields
}
RelayHandler bridges MCP tool calls to Keep policy evaluation.
func NewRelayHandler ¶
func NewRelayHandler(engine *keep.Engine, router *Router, logger *audit.Logger, agentID string) *RelayHandler
NewRelayHandler creates a handler that evaluates policy on every tool call.
func (*RelayHandler) HandleToolCall ¶
func (h *RelayHandler) HandleToolCall(ctx context.Context, name string, args map[string]any) (*mcp.ToolCallResult, error)
HandleToolCall implements mcp.Handler.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router maps tool names to upstream MCP clients and scopes.
func NewRouter ¶
NewRouter connects to all configured upstreams, discovers tools, and builds a routing table. Returns an error if any tool name appears in multiple upstreams.
Click to show internal directories.
Click to hide internal directories.