mcp

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	SSEServer         *server.Server
	SSEHandler        *transport.SSEHandler
	StreamableServer  *server.Server
	StreamableHandler *transport.StreamableHTTPHandler
}

func NewMcpServer

func NewMcpServer() *Server

func (*Server) HandleMessage

func (mcp *Server) HandleMessage(ctx *gin.Context)

func (*Server) HandleSSE

func (mcp *Server) HandleSSE(ctx *gin.Context)

func (*Server) HandleStreamable

func (mcp *Server) HandleStreamable(ctx *gin.Context)

func (*Server) RegisterTools

func (mcp *Server) RegisterTools()

RegisterTools 注册所有MCP工具到服务器

Directories

Path Synopsis
calculator
Package calculator 提供了一个基本的计算器工具 Package calculator provides a basic calculator tool
Package calculator 提供了一个基本的计算器工具 Package calculator provides a basic calculator tool
current_time
Package current_time 提供了一个获取当前时间的工具 Package current_time provides a tool to get the current time
Package current_time 提供了一个获取当前时间的工具 Package current_time provides a tool to get the current time

Jump to

Keyboard shortcuts

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