proxy

package
v0.0.0-...-0f551d3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

func New

func New() *Proxy

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