server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package server provides a factory for creating the MCP S3 server.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time.

Functions

func New

func New(cfg Config) (*mcp.Server, *tools.Toolkit, error)

New creates a new MCP S3 server with the given configuration.

func NewWithDefaults

func NewWithDefaults() (*mcp.Server, *tools.Toolkit, error)

NewWithDefaults creates a new MCP S3 server with default configuration from environment.

Types

type Config

type Config struct {
	// Client configuration
	ClientConfig *client.Config

	// Extension configuration
	ExtConfig extensions.Config

	// Multi-server configuration
	MultiConfig *multiserver.MultiConfig

	// Logger
	Logger *slog.Logger
}

Config holds configuration for the MCP S3 server.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns a configuration with sensible defaults.

func FromEnv

func FromEnv() Config

FromEnv creates a configuration from environment variables.

Jump to

Keyboard shortcuts

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