Documentation
¶
Overview ¶
Package serve offers an Orb session's tools to another agent harness over MCP, the protocol harnesses take outside tools through. The harness integration chooses the tools (those its harness lacks) and carries the messages, over its own channel with a Pipe or over any go-sdk transport. Each call runs through engine.RunToolCall, so argument validation and the session's tool-call hooks, Orb's permission policy among them, apply as in Orb's own loop.
Index ¶
- Variables
- type Pipe
- func (p *Pipe) Close() error
- func (p *Pipe) Connect(context.Context) (mcp.Connection, error)
- func (p *Pipe) Deliver(message json.RawMessage) error
- func (p *Pipe) Read(ctx context.Context) (jsonrpc.Message, error)
- func (p *Pipe) SessionID() string
- func (p *Pipe) Write(_ context.Context, message jsonrpc.Message) error
- type Server
Constants ¶
This section is empty.
Variables ¶
var Implementation = mcp.Implementation{Name: "orb", Version: "0.1.0"}
Implementation is how Orb names itself to MCP peers, as client and as server.
Functions ¶
This section is empty.
Types ¶
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
Pipe is a transport over a channel the harness integration already has: it hands each message that arrives to Deliver, and write sends one out in the harness's own framing. One Pipe carries one connection.