app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(mgr *mcpserver.Manager, latticeDir, configPath, transport, host string) *mcp.Server

NewServer creates an MCP server with all tools registered. configPath is the path to mcp.json used for persisting dynamic server registrations. transport and host describe how the gateway itself is being served, so register_server can gate registration when bound to a non-loopback HTTP address (see ADR-0001).

func ServeHTTP

func ServeHTTP(ctx context.Context, s *mcp.Server, host, port string) error

ServeHTTP runs the MCP server over HTTP with graceful shutdown.

func ServeStdio

func ServeStdio(ctx context.Context, s *mcp.Server) error

ServeStdio runs the MCP server over stdin/stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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