Skip to content

Agent Mesh

bridge: build into the repo-root bin like the other binaries

Tomas Tormo965054c90532
diff --git a/Makefile b/Makefile
index e4b986ba..c21a637e 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,9 @@ build:
# nano-init is a separate module: it carries a userspace TCP stack, which
# has no business in the dependency graph every other binary builds from.
go -C cmd/nano-init build -v -o "$(OUT_DIR)/nano-init" .
+ # sam-a2a-bridge is a separate module too: it keeps the a2a SDK out of
+ # the root dependency graph.
+ go -C cmd/sam-a2a-bridge build -v -o "$(OUT_DIR)/sam-a2a-bridge" .
.PHONY: mobile-ffi-host mobile-ffi-android mobile-ffi-android-x86_64 mobile-ffi-ios mobile-ffi mobile-app-apk mobile-app-apk-emulator
diff --git a/agents/skills/sam-a2a-bridge/SKILL.md b/agents/skills/sam-a2a-bridge/SKILL.md
index 7fe05ab6..233c69a7 100644
--- a/agents/skills/sam-a2a-bridge/SKILL.md
+++ b/agents/skills/sam-a2a-bridge/SKILL.md
@@ -34,7 +34,7 @@ Propose each shell command and let the user approve it before running anything.
module needs, so a stale system Go still works):
`make -C <sam-repo>/cmd/sam-a2a-bridge build`
3. Register it with the harness, passing the sidecar URL and its API token:
- `claude mcp add sam-a2a-bridge -- <sam-repo>/cmd/sam-a2a-bridge/sam-a2a-bridge -url http://localhost:8080 -token <sidecar-token>`
+ `claude mcp add sam-a2a-bridge -- <sam-repo>/bin/sam-a2a-bridge -url http://localhost:8080 -token <sidecar-token>`
(Agent-returned files land in `~/.sam/a2a-downloads` by default, auto-created; pass `-download-dir` to change it — you must create that directory yourself. No auto-cleanup; prune manually.)
4. Restart the harness session; the three tools appear.
diff --git a/cmd/sam-a2a-bridge/Makefile b/cmd/sam-a2a-bridge/Makefile
index a1ababd6..ef8e9756 100644
--- a/cmd/sam-a2a-bridge/Makefile
+++ b/cmd/sam-a2a-bridge/Makefile
@@ -4,11 +4,13 @@ GOTOOLCHAIN ?= go1.25.7
export GOTOOLCHAIN
BINARY := sam-a2a-bridge
+# Binaries land in the repo-root bin/ like every other sam binary.
+OUT_DIR := $(abspath ../../bin)
.PHONY: build test vet fmt install clean
build:
- go build -o $(BINARY) .
+ go build -o "$(OUT_DIR)/$(BINARY)" .
test:
go test ./...
@@ -23,4 +25,4 @@ install:
go install .
clean:
- rm -f $(BINARY)
+ rm -f "$(OUT_DIR)/$(BINARY)"