agentmcp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg types.Config, opts Options, shellJobs *wizmcp.ShellJobs, transports ...mcp.Transport) error

Run builds a headless agent session and serves it as an MCP server over the transport selected by opts. transports are the agent's tool servers (shell, filesystem, web, plugins) exactly as the TUI/CLI receive them. shellJobs is the shared background-shell registry (the same one StartTransports gave the bash server); wiring it lets `bash_background` jobs keep a converse run parked and push their completion as a nib/reply notification. It may be nil.

Types

type Options

type Options struct {
	HTTP bool   // serve over streamable HTTP instead of stdio
	Addr string // HTTP listen address (with HTTP=true)
}

Options selects the transport for the MCP server.

Jump to

Keyboard shortcuts

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