Skip to content

Add brain-tools MCP tool registration unit tests#728

Merged
selfcontained merged 1 commit into
mainfrom
agt_10ac8785e7bf/job-test-enforcer-1358b922
Jul 8, 2026
Merged

Add brain-tools MCP tool registration unit tests#728
selfcontained merged 1 commit into
mainfrom
agt_10ac8785e7bf/job-test-enforcer-1358b922

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Adds 39 unit tests for apps/server/src/shared/mcp/brain-tools.ts — the MCP tool registration module for brain operations (objects, lists, events)
  • Covers conditional registration, all 11 tool handler success/error paths, toBrainError error type dispatch, and optional publishBrainChanged callback behavior
  • Server test count: 2168 (up from 2127)

Test plan

  • pnpm run check — passes
  • pnpm run test — 2168 server tests + 188 web tests pass
  • pnpm run test:e2e — 172 passed, 12 terminal-live skipped (expected)

🤖 Generated with Claude Code

@selfcontained
selfcontained merged commit 4f7bf61 into main Jul 8, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_10ac8785e7bf/job-test-enforcer-1358b922 branch July 8, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant