server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package server creates and configures the Packeteer MCP server, registering all tool handlers with the MCP SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(exec executor.CommandExecutor, logger *slog.Logger, opts ...Option) *mcp.Server

New creates and configures the Sharkline MCP server with all tools, resources, and prompts registered.

Types

type Option

type Option func(*config)

Option configures the MCP server.

func WithCaptureDir

func WithCaptureDir(dir string) Option

WithCaptureDir sets the directory for browsing capture files via MCP resources.

func WithMaxConcurrentCaptures

func WithMaxConcurrentCaptures(max int) Option

WithMaxConcurrentCaptures sets the maximum number of simultaneous live captures. Defaults to 3 if not set or set to 0.

Jump to

Keyboard shortcuts

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