feat: persist workspace per working directory (#14) #16

Merged
fred merged 1 commit from feat/14-persistent-workspace into main 2026-03-07 13:02:00 +00:00
Collaborator

Summary

  • Workspace wird jetzt aus MD5-Hash des Working-Directory abgeleitet statt temporär pro Session erstellt
  • Speicherort: ~/.jdt-mcp/workspaces/<md5-of-cwd>/
  • Gleicher Pfad = gleicher Workspace = Projekte müssen nicht neu importiert werden
  • JDTMCP_WORKSPACE Override funktioniert weiterhin
  • macOS-kompatibel (md5 -q Fallback)
  • Windows: PowerShell-basierter MD5-Hash

Test plan

  • Starten mit gleichem Working-Directory → Workspace wird wiederverwendet
  • Starten mit anderem Working-Directory → neuer Workspace
  • JDTMCP_WORKSPACE Override funktioniert weiterhin
  • Smoke Tests bestehen

Closes #14

## Summary - Workspace wird jetzt aus MD5-Hash des Working-Directory abgeleitet statt temporär pro Session erstellt - Speicherort: `~/.jdt-mcp/workspaces/<md5-of-cwd>/` - Gleicher Pfad = gleicher Workspace = Projekte müssen nicht neu importiert werden - `JDTMCP_WORKSPACE` Override funktioniert weiterhin - macOS-kompatibel (`md5 -q` Fallback) - Windows: PowerShell-basierter MD5-Hash ## Test plan - [ ] Starten mit gleichem Working-Directory → Workspace wird wiederverwendet - [ ] Starten mit anderem Working-Directory → neuer Workspace - [ ] `JDTMCP_WORKSPACE` Override funktioniert weiterhin - [ ] Smoke Tests bestehen Closes #14
feat: persist workspace per working directory (#14)
All checks were successful
Build and Release / build (push) Successful in 4m7s
7513a4289e
Instead of creating a temporary workspace for each session (/tmp/jdtls-mcp-<pid>),
derive a persistent workspace from a hash of the current working directory.
Same directory = same workspace = projects already imported from previous sessions.

Workspace location: ~/.jdt-mcp/workspaces/<md5-of-cwd>/
JDTMCP_WORKSPACE override still works.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fred merged commit 7513a4289e into main 2026-03-07 13:02:00 +00:00
fred deleted branch feat/14-persistent-workspace 2026-03-07 13:02:01 +00:00
Sign in to join this conversation.
No description provided.