proxy

package
v0.0.0-...-662abac Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCachePath

func DefaultCachePath() (string, error)

DefaultCachePath returns the default persistent tool cache path.

Types

type Proxy

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

func New

func New() *Proxy

func NewWithCache

func NewWithCache(cachePath string) *Proxy

NewWithCache creates a proxy that persists upstream tool metadata at cachePath.

func (*Proxy) Connect

func (p *Proxy) Connect(_ context.Context, cfg *config.Config, handlers map[string]sdkauth.OAuthHandler)

func (*Proxy) ConnectEager

func (p *Proxy) ConnectEager(ctx context.Context)

ConnectEager dials all servers configured with eager:true in parallel. Errors are logged but don't prevent startup — the connector will retry lazily.

func (*Proxy) RegisterDirect

func (p *Proxy) RegisterDirect(ctx context.Context, serverNames ...string) error

RegisterDirect registers tools from the named servers directly on the local MCP server. If no names are given, all servers are registered using their DirectTools config. Called with explicit names by the --direct flag (all tools).

func (*Proxy) RegisterDiscover

func (p *Proxy) RegisterDiscover()

func (*Proxy) Server

func (p *Proxy) Server() *mcp.Server

type Resetter

type Resetter interface {
	Reset()
}

Resetter is implemented by auth handlers that support explicit cache invalidation (e.g. clearing a stale token source after RAPT expiry).

Jump to

Keyboard shortcuts

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