Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 62 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfiguredAGUIDemoBackends added in v0.1.57

func ConfiguredAGUIDemoBackends(root *wscfg.Root) ([]sdk.AGUIDemoBackend, error)

Demo entries are operator-owned startup configuration, never browser-supplied URLs. Their anonymous upstream traffic does not carry the BFF session.

func DiscoverWorkspaceAgentIDs

func DiscoverWorkspaceAgentIDs(workspaceRoot string) []string

func NewAPIHandler

func NewAPIHandler(ctx context.Context, opts APIOptions) (http.Handler, error)

func NewExposedMCPServer

func NewExposedMCPServer(ctx context.Context, rt *executor.Runtime, cfg *mcpexpose.ServerConfig, authRuntime *svcauth.Runtime) (*http.Server, error)

Types

type APIOptions

type APIOptions struct {
	PublishedWindowBindings    *sdk.PublishedWindowBindings
	ToolCatalogWarmup          ToolCatalogWarmOptions
	MCPUIResourceReader        sdk.MCPUIResourceReader
	MCPUIResourceContextBinder sdk.MCPUIResourceContextBinder
	Version                    string
	LayoutDefault              []byte
	NativeLayoutSource         *resourcesvc.CapturedLayoutSource
	MenuReader                 svcworkspace.LayoutMenuReader
	Runtime                    *executor.Runtime
	Client                     sdk.Backend
	AgentFinder                agentmodel.Finder
	AgentIDs                   []string
	AuthRuntime                *svcauth.Runtime
	SchedulerService           *svcscheduler.Service
	SchedulerOptions           *sdk.SchedulerOptions
	UIBridgeHandler            http.Handler
	AGUIDemoBackends           []sdk.AGUIDemoBackend
}

type RuntimeOptions

type RuntimeOptions struct {
	WorkspaceRoot          string
	Defaults               *execconfig.Defaults
	SchedulerHeadless      bool
	SkipRegistryInitialize bool
	RecordOOBAuthURL       func(context.Context, string) error
	ConfigureRuntime       func(context.Context, *executor.Runtime, string)
	// ConfigureBuilder registers trusted host authorization providers and
	// mappings before workspace authorization mode is constructed.
	ConfigureBuilder func(context.Context, *executor.Builder) error
}

type ToolCatalogWarmOptions added in v0.1.57

type ToolCatalogWarmOptions struct {
	Disabled        bool
	ExcludedServers []string
	Timeout         time.Duration
	Interval        time.Duration
}

ToolCatalogWarmOptions controls proactive metadata preparation after the authentication middleware has established the caller's identity.

Jump to

Keyboard shortcuts

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