transport

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFactory

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

DefaultFactory implements Factory with support for stdio, http, and sse

func NewDefaultFactory

func NewDefaultFactory(logger *slog.Logger) *DefaultFactory

NewDefaultFactory creates a new DefaultFactory

func (*DefaultFactory) CreateTransport

func (f *DefaultFactory) CreateTransport(cfg config.MCPServer) (mcp.Transport, error)

CreateTransport creates the appropriate transport based on the server configuration

type Factory

type Factory interface {
	CreateTransport(cfg config.MCPServer) (mcp.Transport, error)
}

Factory creates appropriate transport based on server configuration

Jump to

Keyboard shortcuts

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