Skip to content

MCP: four tools for the elements of a Problem (StoryCAD #1546, pull request 2 of 3) - #48

Merged
terrycox merged 2 commits into
mainfrom
issue-1546-beat-tools
Nov 29, 2026
Merged

terrycox merged 2 commits into
mainfrom
issue-1546-beat-tools

Conversation

@StoryCADBot

Copy link
Copy Markdown

Issue: storybuilder-org/StoryCAD#1546
Design: https://github.com/storybuilder-org/storybuilder-miscellaneous/blob/november-2026-filing/devdocs/issue-1546-design.md

This is the MCP half of pull request 2 of the 3 that the design gives for StoryCAD issue 1546 (part 15.3, task 16). The StoryCAD half is storybuilder-org/StoryCAD#1718.

Merge this after StoryCAD pull request 1718. The four tools call API members that 1718 adds. The MCP project compiles StoryCADLib from the sibling StoryCAD checkout, so this branch does not build against StoryCAD dev until 1718 is merged.

What it does

  • Four tools in StoryCADMcp/Tools/BeatTools.cs: add_problem_element, remove_problem_element, get_elements_on_no_beat and move_beat_element. Each calls one member of the StoryCAD API.
  • New help text for assign_beat, clear_beat, delete_beat and load_beat_sheet in BeatTools.cs, and for apply_beat_sheet in WriteTools.cs. Each now says that an element stays in its Problem, on no beat.
  • StoryCADMcp/global.json and StoryCADMcp.Tests/global.json ask for Uno.Sdk 7.0.22 in place of 6.7.30.

What was checked

  • dotnet test in StoryCADMcp.Tests, with the sibling StoryCAD checkout on the branch of pull request 1718: 108 passed, 0 failed. 6 tests are new, in BeatToolsTests.cs.

Where the change goes beyond the words of the design

  • The Uno.Sdk version. StoryCAD went to Uno 7 on 2026-11-14 (its commit db6613c4). With 6.7.30 here, StoryCADLib did not compile from the MCP project: UNO0001 in RichEditBoxExtended.cs, and two errors in the beat tree code. The other global.json files of this repo still say 6.7.30 and are not changed.
  • The design puts GetElement_Problem_HasStructureElements in ReadToolsTests. It is in BeatToolsTests, which already makes the Problem the test needs.
  • One test more than one for each tool: MoveBeatElement_WithInvalidBeatIndex_ReturnsError.

🤖 Generated with Claude Code

terrycox and others added 2 commits November 29, 2026 07:13
add_problem_element, remove_problem_element, get_elements_on_no_beat
and move_beat_element in BeatTools, with tests. New help text for
assign_beat, clear_beat, delete_beat, load_beat_sheet and
apply_beat_sheet.

NOT BUILT AND NOT TESTED. These tools need the four API members of
StoryCAD branch issue-1546-api. A build of this project against that
branch failed in StoryCADLib for reasons not yet found.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
StoryCAD went to Uno 7 on 2026-11-14 (its commit db6613c4). The MCP
project and its tests compile StoryCADLib from the sibling checkout
and still asked for Uno.Sdk 6.7.30, so StoryCADLib did not compile:
UNO0001 in RichEditBoxExtended.cs, and two errors in the beat tree
code. With 7.0.22 the build works.

The four tools of the commit before this one are now built and
tested against StoryCAD branch issue-1546-api: 108 tests pass,
6 of them new.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.

2 participants