server

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package server implements the Orla MCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrlaServer

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

OrlaServer stores the state and dependencies for the Orla MCP server.

func NewOrlaServer

func NewOrlaServer(cfg *config.OrlaConfig, configPath string) *OrlaServer

NewOrlaServer creates a new OrlaServer instance

func (*OrlaServer) Reload

func (o *OrlaServer) Reload() error

Reload reloads configuration and rescans tools directory

func (*OrlaServer) Serve

func (o *OrlaServer) Serve(ctx context.Context, addr string) error

Serve starts the server on the given address using HTTP (Streamable HTTP transport per MCP spec) The StreamableHTTPHandler manages sessions, Origin validation, and HTTP protocol details

func (*OrlaServer) ServeStdio

func (o *OrlaServer) ServeStdio(ctx context.Context) error

ServeStdio starts the server using stdio transport (per MCP spec)

Jump to

Keyboard shortcuts

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