Documentation
¶
Overview ¶
Package server implements the MCP server that exposes VanPanel's agent tools to external MCP clients via stdio or HTTP transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(ctx context.Context, opts ServeOptions, toolMgr *agentToolManager.ToolManager, riskEval *agentRisk.Evaluator, logger *zap.Logger) error
Serve starts the VanPanel MCP server exposing all agent tools.
Types ¶
type AgentMcpBridge ¶
type AgentMcpBridge struct {
// contains filtered or unexported fields
}
AgentMcpBridge bridges Eino Agent tools to MCP server tools.
func NewAgentMcpBridge ¶
func NewAgentMcpBridge(toolMgr *agentToolManager.ToolManager, riskEval *agentRisk.Evaluator, logger *zap.Logger) *AgentMcpBridge
NewAgentMcpBridge creates a new bridge.
func (*AgentMcpBridge) RegisterTools ¶
func (b *AgentMcpBridge) RegisterTools(mcpServer *server.MCPServer)
RegisterTools registers all agent tools as MCP tools on the server.
type ServeOptions ¶
type ServeOptions struct {
Transport string // "stdio" or "http"
Port int // for "http" transport, default 8890
}
ServeOptions configures how the MCP server runs.
Click to show internal directories.
Click to hide internal directories.