server

package
v0.0.0-...-06bc5ed Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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