@little_monkey/dsh-cwd-mcp
v1.0.0
Published
Mounts the UE4 MCP servers at Host level and exposes their tools only to Sessions whose working directory is listed on the bundle's page in the Plugins view.
Maintainers
Readme
dsh-cwd-mcp
Host-level UE4 MCP servers with a working-directory gate.
What it does
- Mounts
ue4-ui-reader(stdio) andue4-editor-python(streamable HTTP) as Host-level@deepseek-ai/dsh-mcp-clientrows. Their tools register globally, so every Agent inherits them. - Denies those exact tool names on the Agent context of every Session whose
working directory is not listed in
directories, usingctx.tools.restrict({ deny })— the only supported way to mask global tools per Agent. Sessions under a listed directory keep the tools. - Names are read back from the live global registry on every decision, so a
server re-sync never leaves a stale name behind, and
restrict()never sees a name it would reject.
Sessions whose cwd is not listed see no mcp__ue4-* tools at all: not in the
tool catalog, not callable.
Configure
Open Plugins → @little_monkey/dsh-cwd-mcp and edit the directory list on the card.
The list is a volatile Config field, so a save applies to the next Session
without restarting the app.
YAML form (the bundle's own patch supplies the default):
- insert:
- id: cwd-mcp
name: '@little_monkey/dsh-cwd-mcp'
config:
directories:
- 'D:\G112\race_project\LuaSource'Overriding the row replaces the whole config, so restate the complete list.
Limits
- The MCP servers connect eagerly at app start; the gate only controls tool visibility, not process lifetime.
- A Session keeps the mask it was created with. Editing the directory list affects Sessions created afterwards.
- Tool masking is not a security boundary: it hides schemas and rejects calls from that Agent, but the server process itself is shared by the whole Host.
