source

module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT

README

Building x-broker from source

Run these commands in the source directory with the Go version named in go.mod. The server and the local MCP client are separate programs. Installation, registration and upgrades are described in the README and in README_AGENT.md.

Build

go build -o bin/asb-server ./cmd/asb-server
go build -o bin/asb-client ./cmd/asb-client

On Windows, add .exe to the output names. Official release builds use CGO_ENABLED=0, -trimpath -buildvcs=false and -ldflags "-s -w -X main.version=<version>".

Run

./bin/asb-server --listen 127.0.0.1:8787 --memory-dir .agent-memory

Create a project and its credentials in the control panel, then let the Claude Code, Codex or Kimi harness on each machine start the local stdio MCP client. The server never starts agent processes. Never copy credentials into documents or logs.

Official releases ship the server as release binaries and a container image, and the client as the npm package @xelexis/x-broker.

Test

go vet ./...
go test ./... -count=1

Some tests run Node.js 22 or later. Browser tests are opt-in and skip unless their environment variable is set.

Directories

Path Synopsis
cmd
asb-client command
asb-server command
internal
access
Package access carries admission policy without depending on a broker or UI.
Package access carries admission policy without depending on a broker or UI.
accesslog
Package accesslog records bounded, classified HTTP events to server-owned files.
Package accesslog records bounded, classified HTTP events to server-owned files.
attachmentclient
Package attachmentclient keeps file bytes outside model-facing messages.
Package attachmentclient keeps file bytes outside model-facing messages.
attachments
Package attachments owns the ephemeral server attachment spool.
Package attachments owns the ephemeral server attachment spool.
bugreport
Package bugreport owns the instance-wide, private defect report store.
Package bugreport owns the instance-wide, private defect report store.
bugreport/clientdiag
Package clientdiag defines the wire diagnostics shared by clients and the server.
Package clientdiag defines the wire diagnostics shared by clients and the server.
channel
Package channel bridges a local broker to Claude's official stdio channel.
Package channel bridges a local broker to Claude's official stdio channel.
clientstate
Package clientstate keeps the local MCP client's durable registration state: a stable per-PC client id and, per (project, harness, session), the registration id, assigned name and client-generated resume secret.
Package clientstate keeps the local MCP client's durable registration state: a stable per-PC client id and, per (project, harness, session), the registration id, assigned name and client-generated resume secret.
codexcontrol
Package codexcontrol connects only to the verified Codex ancestor's local daemon.
Package codexcontrol connects only to the verified Codex ancestor's local daemon.
controlpanel
Package controlpanel owns administrator credentials and project access policy.
Package controlpanel owns administrator credentials and project access policy.
i18n
Package i18n holds the control panel's English and Korean message catalogs (1.1.0).
Package i18n holds the control panel's English and Korean message catalogs (1.1.0).
localactivity
Package localactivity observes bounded local harness metadata.
Package localactivity observes bounded local harness metadata.
mcpconfig
Package mcpconfig supplies shared MCP capabilities and connection guidance.
Package mcpconfig supplies shared MCP capabilities and connection guidance.
memory
Package memory persists immutable Markdown nodes in a project-local graph.
Package memory persists immutable Markdown nodes in a project-local graph.
nativeinbox
Package nativeinbox posts to the current Claude MCP parent's inherited local inbox.
Package nativeinbox posts to the current Claude MCP parent's inherited local inbox.
pathguard
Package pathguard creates private directory trees without traversing aliases.
Package pathguard creates private directory trees without traversing aliases.
pinnedpath
Package pinnedpath supplies filesystem operations for directory capability paths.
Package pinnedpath supplies filesystem operations for directory capability paths.
processinfo
Package processinfo reads macOS process identity without spawning a shell.
Package processinfo reads macOS process identity without spawning a shell.
serverdiag
Package serverdiag is the server's bounded, value-free stderr boundary.
Package serverdiag is the server's bounded, value-free stderr boundary.
serverruntime
Package serverruntime starts the HTTP relay without local harness execution.
Package serverruntime starts the HTTP relay without local harness execution.
sqlitestore
Package sqlitestore provides the server's transactional durable key store.
Package sqlitestore provides the server's transactional durable key store.

Jump to

Keyboard shortcuts

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