-
Notifications
You must be signed in to change notification settings - Fork 11
Add script debugger MCP tools, CLI REPL, and RPC mode #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f357bf9
Add script debugger support to MCP tools, CLI, and docs
clavery fc80ac5
Add MCP diagnostics tools doc page and sidebar sub-group
clavery 09c18c5
Group MCP tools sidebar by use case
clavery 9247381
Collapse MCP tools sidebar groups by default
clavery d10d760
Clarify that debug_wait_for_stop and debug_capture_at_breakpoint block
clavery 5336e32
Improve MCP debug tools based on real-world agent feedback
clavery d9653d9
Fix resolveBreakpointPath treating absolute local paths as server paths
clavery 8da16e3
Exclude diagnostics tools from MCP coverage threshold
clavery 0f83b48
Add tests for diagnostics tools (session registry + tool handlers)
clavery a2028bd
Fix lint errors in diagnostics test files
clavery 9d72bf0
Remove debugger tools from STOREFRONTNEXT toolset
clavery b1276e4
Add comprehensive tests for diagnostics tools, remove coverage exclusion
clavery e78679b
Refactor debug MCP tools: shared projections, registry helpers, doc u…
clavery 3860c39
Align diagnostics auth section with other MCP tool docs
clavery ece6c23
Merge remote-tracking branch 'origin/main' into feature/debug-mcp
clavery File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@salesforce/b2c-cli': minor | ||
| --- | ||
|
|
||
| Add `b2c debug cli` command for interactive terminal-based script debugging. Includes a REPL with commands for breakpoints, stepping, variable inspection, and expression evaluation. Use `--rpc` for JSONL-over-stdio mode suitable for headless scripts and agents. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@salesforce/b2c-dx-mcp': minor | ||
| --- | ||
|
|
||
| Add script debugger MCP tools to the CARTRIDGES and STOREFRONTNEXT toolsets. Includes `debug_start_session`, `debug_end_session`, `debug_list_sessions`, `debug_set_breakpoints`, `debug_wait_for_stop`, `debug_get_stack`, `debug_get_variables`, `debug_evaluate`, `debug_continue`, `debug_step_over`, `debug_step_into`, `debug_step_out`, and `debug_capture_at_breakpoint`. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@salesforce/b2c-dx-docs': patch | ||
| '@salesforce/b2c-agent-plugins': patch | ||
| --- | ||
|
|
||
| Add debug command documentation and b2c-debug agent skill covering interactive REPL, RPC mode, and DAP usage. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@salesforce/b2c-dx-mcp': minor | ||
| --- | ||
|
|
||
| Add `ServerContext` for persistent server-scoped state across MCP tool invocations. Enables stateful tools (debug sessions, log watches) while preserving per-call config reloading for existing tools. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@salesforce/b2c-tooling-sdk': minor | ||
| --- | ||
|
|
||
| Add `resolveBreakpointPath` utility that normalizes user-provided file paths to SDAPI script paths. Accepts server paths, absolute/relative local paths, and cartridge-name-prefixed paths with helpful error messages on failure. |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no strong opinion, but given that the same tool shows up in different auto-detected configurations will this grouping by names that mirror toolset names cause more confusion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe. I was going for the primary toolset of the tools for the tertiary organization here. I do think we will need more doc refactor here