Skip to content

KAN-967 fix(mcp): set_board_sort echoes the resolved value, not null - #456

Open
fulsomenko wants to merge 2 commits into
developfrom
kan-967-set-board-sort-echo
Open

KAN-967 fix(mcp): set_board_sort echoes the resolved value, not null#456
fulsomenko wants to merge 2 commits into
developfrom
kan-967-set-board-sort-echo

Conversation

@fulsomenko

Copy link
Copy Markdown
Owner

Bug (v0.8.0 bug-hunt, epic KAN-960)

set_board_sort {"sort":"name"} (order omitted) persisted a concrete order to disk but the JSON response reported board_sort_order: null because it echoed the raw request (order.map(...)) rather than the resolved value. The CLI reports the resolved pair, so the two surfaces disagreed.

Fix

McpContext::set_board_sort now returns the resolved (field, order) pair (it already computed it to persist), and the tool echoes that. An omitted dimension is reported concretely.

Test

MCP integration: set_board_sort with order omitted echoes a concrete board_sort_order string (was null before). mcp suite green; clippy -D + fmt clean.

The tool echoed the raw request, so an omitted dimension reported null even
though set_board_sort resolved and persisted a concrete value. McpContext::
set_board_sort now returns the resolved (field, order) pair and the tool echoes
it, matching the CLI.
@fulsomenko fulsomenko self-assigned this Jul 24, 2026
@fulsomenko fulsomenko changed the title fix(mcp): set_board_sort echoes the resolved value, not null (KAN-967) KAN-967 fix(mcp): set_board_sort echoes the resolved value, not null Jul 24, 2026
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