feat: add jdt_reload_workspace tool #42

Merged
fred merged 1 commit from feat/reload-workspace into main 2026-03-08 13:00:39 +00:00
Collaborator

Summary

  • New jdt_reload_workspace MCP tool that removes all projects, re-imports from working directory, and triggers full rebuild
  • readyLatch changed to volatile so it can be reset — other tools are blocked during reload
  • Registered as import-safe tool (manages its own blocking)

Use Cases

  • Corrupt workspace (stale index, missing projects)
  • New modules added to project structure
  • After deleting and re-creating workspace directory

Test plan

  • Call jdt_reload_workspace in a session with existing projects → verify all projects re-imported
  • Call jdt_list_projects during reload → verify status shows "importing"
  • Call other tools during reload → verify they block until reload completes
  • Verify no files are deleted on disk

🤖 Generated with Claude Code

## Summary - New `jdt_reload_workspace` MCP tool that removes all projects, re-imports from working directory, and triggers full rebuild - `readyLatch` changed to `volatile` so it can be reset — other tools are blocked during reload - Registered as import-safe tool (manages its own blocking) ## Use Cases - Corrupt workspace (stale index, missing projects) - New modules added to project structure - After deleting and re-creating workspace directory ## Test plan - [ ] Call `jdt_reload_workspace` in a session with existing projects → verify all projects re-imported - [ ] Call `jdt_list_projects` during reload → verify status shows "importing" - [ ] Call other tools during reload → verify they block until reload completes - [ ] Verify no files are deleted on disk 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: add jdt_reload_workspace tool
All checks were successful
Build and Release / build (push) Successful in 4m31s
b3892e4098
Removes all projects from workspace, re-imports from working directory,
and triggers a full rebuild. Useful when workspace is corrupt, projects
are missing, or after major structural changes (new modules added).
Other tools are blocked during reload via readyLatch reset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fred merged commit b3892e4098 into main 2026-03-08 13:00:39 +00:00
fred deleted branch feat/reload-workspace 2026-03-08 13:00:39 +00:00
Sign in to join this conversation.
No description provided.