Documentation
¶
Overview ¶
Package server wires an mcp.Server behind a net/http.Server with a bearer-token middleware in front. This is the full HTTP surface for a running hearsay instance: POST /mcp for MCP traffic, GET /health for tunnel/reverse-proxy probes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance is a running hearsay server; Shutdown() gracefully stops it.
type Options ¶
type Options struct {
Port int
Bind string
Token string
PeerName string
PeerVersion string
DataDir string
LiveWindow time.Duration
Quiet bool
// Agent is non-nil iff `--enable-agent` was set. When nil, the
// Phase-2 agent tools (ask_peer_claude, etc.) are not registered
// and the existing 8 read-only tools are the entire surface.
Agent agent.Agent
}
Click to show internal directories.
Click to hide internal directories.