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

server

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 50 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
	Version          string
	LayoutDefault    []byte
	Runtime          *executor.Runtime
	Client           sdk.Backend
	AgentFinder      agentmodel.Finder
	AgentIDs         []string
	AuthRuntime      *svcauth.Runtime
	SchedulerService *svcscheduler.Service
	SchedulerOptions *sdk.SchedulerOptions
	UIBridgeHandler  http.Handler
}

type RuntimeOptions

type RuntimeOptions struct {
	WorkspaceRoot     string
	Defaults          *execconfig.Defaults
	SchedulerHeadless bool
	RecordOOBAuthURL  func(context.Context, string) error
	ConfigureRuntime  func(context.Context, *executor.Runtime, string)
}

Jump to

Keyboard shortcuts

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