outbound

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package outbound defines the outbound port interfaces for connecting to upstream MCP servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPClient

type MCPClient interface {
	// Start launches the upstream MCP server connection.
	// Returns the server's stdin (for sending) and stdout (for receiving).
	Start(ctx context.Context) (stdin io.WriteCloser, stdout io.ReadCloser, err error)

	// Wait blocks until the upstream server process/connection terminates.
	// Returns nil on graceful shutdown, error on failure.
	Wait() error

	// Close terminates the upstream connection and cleans up resources.
	Close() error
}

MCPClient is the outbound port for connecting to upstream MCP servers. Adapters implement this to support different transports (stdio, HTTP).

Jump to

Keyboard shortcuts

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