Repository navigation
MCP: four tools for the elements of a Problem (StoryCAD #1546, pull request 2 of 3) - #48
Merged
Merged
Conversation
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>
terrycox
approved these changes
Nov 29, 2026
1 of 16 tasks
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.
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
devuntil 1718 is merged.What it does
StoryCADMcp/Tools/BeatTools.cs:add_problem_element,remove_problem_element,get_elements_on_no_beatandmove_beat_element. Each calls one member of the StoryCAD API.assign_beat,clear_beat,delete_beatandload_beat_sheetinBeatTools.cs, and forapply_beat_sheetinWriteTools.cs. Each now says that an element stays in its Problem, on no beat.StoryCADMcp/global.jsonandStoryCADMcp.Tests/global.jsonask for Uno.Sdk 7.0.22 in place of 6.7.30.What was checked
dotnet testinStoryCADMcp.Tests, with the sibling StoryCAD checkout on the branch of pull request 1718: 108 passed, 0 failed. 6 tests are new, inBeatToolsTests.cs.Where the change goes beyond the words of the design
db6613c4). With 6.7.30 here, StoryCADLib did not compile from the MCP project: UNO0001 inRichEditBoxExtended.cs, and two errors in the beat tree code. The otherglobal.jsonfiles of this repo still say 6.7.30 and are not changed.GetElement_Problem_HasStructureElementsinReadToolsTests. It is inBeatToolsTests, which already makes the Problem the test needs.MoveBeatElement_WithInvalidBeatIndex_ReturnsError.🤖 Generated with Claude Code