Phase 11, part 2: module tools over MCP

Agents get each module's tools by their scopes: reading tools with read,
the others with read and act. Content (drafts and items; writing, editing
and discarding drafts), Prospects (signals, review, outreach, suppression;
outreach drafts and edits), SEO (the morning check, What to write next,
links, changes; editing a proposal), Sites and Metrics (reading) and the
Market (list, get, save). They call what the pages call, and what an agent
changes is in the audit log as the agent. Nothing that leaves Supermarket
is offered yet: that waits for approvals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 10:31:43 -07:00
co-authored by Claude Opus 5.5
parent da2d56f8d2
commit bfb74e7700
6 changed files with 903 additions and 6 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func newTestServer(t *testing.T, c *core.Core) (*Server, http.Handler) {
PublicURL: "http://localhost:8470", Version: "test", MCPToken: testToken,
Log: slog.New(slog.NewTextHandler(io.Discard, nil)),
}
s.MCP = mcpserver.Handler(d, "test", s.AgentAuth)
s.MCP = mcpserver.Handler(d, "test", s.AgentAuth, s.AgentTools)
if err := s.EnsureHermes(testToken); err != nil {
t.Fatal(err)
}