Documentation
¶
Overview ¶
Package mcpbridge serves a stdio MCP server's tools to an ACP agent over loopback streamable HTTP. Some agents (GitHub Copilot CLI) accept only remote MCP servers in session/new, so a per-session stdio server such as the hosted Compozy tool proxy is relayed through a loopback listener guarded by a per-bridge bearer token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge relays one stdio MCP server's tools over a loopback HTTP endpoint. Close releases the listener and the child; it is safe to call more than once.
func Start ¶
Start launches spec as a stdio MCP client, mirrors its tools onto an HTTP MCP server, and listens on an ephemeral loopback port. The returned bridge owns the child process and listener until Close.
func (*Bridge) AuthorizationHeader ¶
AuthorizationHeader is the header value the agent must send. It is a secret: never log it or persist it outside the session request.