From 9bdd44d9b64de20356e1f4d0d989161b0412a643 Mon Sep 17 00:00:00 2001 From: Virgil Date: Tue, 31 Mar 2026 18:13:27 +0000 Subject: [PATCH] fix(mcp): advertise process.start in channel capability Sync the claude/channel capability list with the process lifecycle events emitted by the service. Co-Authored-By: Virgil --- pkg/mcp/notify.go | 1 + pkg/mcp/notify_test.go | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/pkg/mcp/notify.go b/pkg/mcp/notify.go index 7bbcd47..487bd6d 100644 --- a/pkg/mcp/notify.go +++ b/pkg/mcp/notify.go @@ -114,6 +114,7 @@ func channelCapability() map[string]any { "brain.remember.complete", "brain.recall.complete", "inbox.message", + "process.start", "process.exit", "harvest.complete", "test.result", diff --git a/pkg/mcp/notify_test.go b/pkg/mcp/notify_test.go index fb90c96..79de58a 100644 --- a/pkg/mcp/notify_test.go +++ b/pkg/mcp/notify_test.go @@ -64,4 +64,15 @@ func TestChannelCapability_Good(t *testing.T) { if len(channels) == 0 { t.Fatal("expected at least one channel in capability definition") } + + foundProcessStart := false + for _, channel := range channels { + if channel == "process.start" { + foundProcessStart = true + break + } + } + if !foundProcessStart { + t.Fatal("expected process.start to be advertised in capability definition") + } }