mcpserver

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultPath is the default streamable HTTP MCP endpoint path.
	DefaultPath = "/mcp"
)

Variables

This section is empty.

Functions

func Mount

func Mount(engine *gin.Engine, cfg Config) error

Mount attaches the MCP endpoint when it is enabled.

Types

type Config

type Config = configs.ApiMCPConfig

type Server

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

func New

func New(engine *gin.Engine, cfg Config) (*Server, error)

New creates an MCP server backed by the given Gin engine.

func (*Server) Mount

func (s *Server) Mount()

Mount registers the streamable HTTP MCP handler.

Jump to

Keyboard shortcuts

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