Repository navigation
Route Memtrace MCP calls per Session working directory; minimal plugin (v0.3.0) - #2
Merged
Merged
Conversation
Set perWorkingDirectory: true on the mcp-memtrace row so dsh-mcp-client starts each tool call in a child in the calling Session's working directory (git worktrees resolve to the main repository's store). This needs dsh-mcp-client with that option; a stock dsh ignores the unknown key, and there a restated row's cwd: <repo root> is the fallback. Remove the published dsh-plugin-memtrace-mcp bin, its launcher, and the memtrace resolver; package.json drops bin and bin/ and moves to 0.3.0. README (en/zh) and the arc42 docs describe the option, the patched-client requirement, and the cwd restate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rewrite the runtime, deployment, risk, and ADR docs for the pinned `memtrace` command and per-Session `perWorkingDirectory` routing, with the stock-dsh `cwd` restate. Deduplicate the README explanation (EN/ZH) into How it works and add a Compatibility row for the patched client. Drop the unused directory/resourceDirectory fields from load-skills and their test assertions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mal plugin (v0.3.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ugin (v0.3.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Mention Blocks like a regular teammate with your question or request: @blocks review this pull request Run |
Contributor
Author
|
The client-side proposal for |
Alex793x
approved these changes
Nov 21, 2026
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.
Why
Inside DeepSeek Harness, every Memtrace call failed with:
memtrace mcppicks its repository from its working directory. dsh-mcp-client 0.2.2-rc.5 starts one child per config row with a fixedcwd, and this row had none. The child therefore ran in the dsh profile folder, which holds no repository and has no owner to attach to.What changed
mcp-memtracerow setsperWorkingDirectory: true. The fix lives in dsh-mcp-client and is proposed upstream in mcp-client: run stdio tool calls in the calling Session's working directory (opt-in perWorkingDirectory) deepseek-ai/deepseek-harness#13951. DeepSeek Harness does not accept external pull requests, so it is a Discussion (Ideas).cwd: <repo root>(documented in both READMEs).bin/memtrace-mcp.jslauncher and its npx-fallback resolver, plus two fields ofload-skillsthat nothing read;dsh-plugin-memtrace-mcpbin is gone, so the version goes to0.3.0.Verification
node --test: 11/11.mcp__memtrace__list_indexed_repositories.memtrace mcpchild per Session folder.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.