server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package server assembles the single HTTP listener: health endpoints, the REST API and the MCP streamable-HTTP endpoint. There is no authentication here on purpose: on the platform the agentgateway JWT policy in front of the route and muster in front of the MCP endpoint are the trust boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr       string
	MCPEnabled bool
	MCPPath    string
}

Config configures the listener.

type Server

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

Server is the assembled HTTP server.

func New

func New(cfg Config, svc *agents.Service, mcpSrv *mcpserver.MCPServer, log *slog.Logger) (*Server, error)

New builds the server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler exposes the mux (tests).

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run serves until ctx is done, then shuts down gracefully.

Jump to

Keyboard shortcuts

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