mcpserver

package
v0.0.0-...-1ae09b1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GarminMCPServer

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

GarminMCPServer wraps an MCP server exposing Garmin Messenger as tools and resources.

func New

func New(sessionDir, version string, logger *slog.Logger) *GarminMCPServer

New creates a new GarminMCPServer. It attempts non-fatal auth resume so already-logged-in users can use resources immediately.

func (*GarminMCPServer) Run

func (g *GarminMCPServer) Run(ctx context.Context) error

Run starts the MCP server on the given transport and blocks until done.

func (*GarminMCPServer) RunWithTransport

func (g *GarminMCPServer) RunWithTransport(ctx context.Context, t mcp.Transport) error

RunWithTransport starts the MCP server on a custom transport (for testing).

Jump to

Keyboard shortcuts

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