mcpgenerator

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgumentOption

func ArgumentOption(col model.EndpointParams, opts ...mcp.PropertyOption) mcp.ToolOption

Types

type MCPServer

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

func New

func New(
	plugs map[string]any,
) (*MCPServer, error)

func (*MCPServer) EnableRawProtocol added in v0.2.1

func (s *MCPServer) EnableRawProtocol()

func (*MCPServer) ServeSSE

func (s *MCPServer) ServeSSE(addr string, prefix string) *server.SSEServer

func (*MCPServer) ServeStdio

func (s *MCPServer) ServeStdio() *server.StdioServer

func (*MCPServer) Server added in v0.0.9

func (s *MCPServer) Server() *server.MCPServer

func (*MCPServer) SetConnector added in v0.2.2

func (s *MCPServer) SetConnector(connector connectors.Connector) error

func (*MCPServer) SetTools added in v0.2.1

func (s *MCPServer) SetTools(tools []model.Endpoint)

func (*MCPServer) Tools added in v0.2.7

func (s *MCPServer) Tools() []model.Endpoint

Jump to

Keyboard shortcuts

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