agent

package
v0.0.0-...-d01bc7e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package agent reverse-proxies a pinned local MCP server over one outbound yamux/WebSocket tunnel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func New

func New(cfg Config, logger *slog.Logger) (*Agent, error)

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

type Config

type Config struct {
	GatewayURL string
	APIKey     string
	// LocalMCPURL is pinned at startup; the gateway cannot redirect agent traffic.
	LocalMCPURL    string
	ServiceVersion string
	Metadata       map[string]string
	MinBackoff     time.Duration
	MaxBackoff     time.Duration
}

Jump to

Keyboard shortcuts

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