feat: add get_board tool — kanban board view#7
Merged
phuryn merged 4 commits intophuryn:mainfrom Mar 15, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add 6 tests in a new 'Board View' describe block covering: - empty board returns zero counts - intents grouped into correct status columns - claimed intents include claimed_by and claim_id - blocked intents include blocked_by - team_id filtering - draft exclusion from all columns Tests expect to fail with "db.getBoard is not a function" until the query is implemented. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wire up get_board tool in overview.ts (optional team_id filter). Replace Partial<Record<IntentStatus, ...>> with Record<BoardStatus, ...> using Exclude<IntentStatus, 'draft'> — makes the draft-exclusion contract explicit at the type level and eliminates non-null assertions in consumers. Closes phuryn#6 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #6.
get_boardMCP tool — returns all intents grouped by status (open, claimed, blocked, done, cancelled) with active claims and blocked dependenciesteam_idparameter to filter to a single teamBoardStatus = Exclude<IntentStatus, 'draft'>type ensures the draft-exclusion contract is visible at the type levelChanges
src/types.ts—BoardIntent,BoardView,BoardStatustypessrc/db/queries.ts—getBoard()query functionsrc/tools/overview.ts—get_boardtool registrationtests/overview.test.ts— 6 integration tests (empty board, status grouping, claims, blocked deps, team filter, draft exclusion)Test plan
claimed_byandclaim_idblocked_bydependency IDsteam_idfilter restricts results to that team only🤖 Generated with Claude Code