You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Evaluate prompt-permission MCP server as fallback for clients without reliable hook support #1989
Investigate whether the prompt-permission MCP server/tool can serve as an adequate fallback or replacement enforcement path for clients where we do not yet have a reliable native hook environment.
Why this matters
For some clients, native pre-tool / pre-command hooks may be:
undocumented
unreliable
unavailable
too risky to auto-install without stronger verification
If the prompt-permission MCP server can provide a trustworthy interception or governance path for those platforms, it may let us ship broader coverage sooner without pretending native hook support exists.
Questions to answer
Which clients can rely on prompt-permission MCP interactions instead of native hook wiring?
Is the enforcement semantics strong enough compared to native pre-tool hooks?
Does it apply to both interactive and agentic tool usage?
Can it preserve session-aware policy evaluation and reporting?
What are the UX tradeoffs versus native hook installation?
What security gaps remain if we use this instead of a host-native hook?
Evaluation areas
Technical fit
compatibility with cursor
compatibility with windsurf
compatibility with gemini-cli
compatibility with codex
any other Setup-surfaced clients lacking verified hook support
Governance quality
deterministic vs advisory behavior
failure modes when the prompt-permission service is unavailable
audit/reporting implications
interaction with existing evaluate_permission session routing
Product fit
whether this should be automatic, optional, or fallback-only
how it should be surfaced in Setup
whether it can reduce the need for manual Permissions & Security instructions
Acceptance criteria
documented recommendation for each client class: native hook required, prompt-permission adequate fallback, or unsupported
explicit list of security/UX tradeoffs
decision on whether to integrate this into Setup flows
Initial candidates for prompt-permission fallback based on native-hook investigation:
Best fallback candidates
These are the clients where I did not verify a documented native hook path in the current pass, so prompt-permission fallback may matter most:
cursor
codex
claude-desktop
vscode
lmstudio
Clients that look better served by native integration first
These now appear to have documented native hook systems and should probably be implemented natively before we treat prompt-permission as the main answer:
claude-code
gemini-cli
windsurf
cline
Important nuance
Windsurf does have native hooks, but its contract differs materially from Claude/Gemini:
Reframing this issue after the recent permissions/platform work:
This should stay an investigation / architecture issue, not a "build and deploy immediately" issue.
Updated framing
We should evaluate a separate companion authorization MCP server as an optional fallback for platforms where native hooks are unavailable, incomplete, or not the best fit.
That means:
this is about authorization / permission brokering, not authentication
this should remain separate from the main DollhouseMCP server rather than being folded into the CRUDE server
the primary target class is non-hook-enabled platforms and other platforms where hook-style integration is weak or absent
Important scope clarification
This is not yet a commitment to one implementation.
A companion authorization MCP server is one strong candidate, but it may not be the only viable fallback/control path. As we continue surveying platforms, we may find at least three broad integration styles:
Native hooks
best fit for platforms with reliable pre-tool / pre-command interception
examples already in motion: Claude Code, Codex, Cursor, Windsurf, VS Code, Gemini CLI
Authorization / permission companion MCP server
candidate fallback for platforms that can route approval / tool mediation through MCP without requiring native hooks
the bridge repo's permission-prompt server is proof that this pattern is real for at least one class of client, but not proof that it is universal
Other broker / supervisory techniques
plugin / extension surfaces
supervised execution loops
HTTP / streamable HTTP sidecars or other client-specific control channels
future platform-specific adapters we have not discovered yet
Why this issue stays open
We have only investigated a limited set of platforms so far. There are many more, and new ones will continue to appear. We should avoid a whack-a-mole strategy where every new platform forces a bespoke rethink from scratch.
Instead, this issue should help us answer:
which platform classes can use a companion authorization server meaningfully
where native hooks remain the preferred path
where some third technique is the right answer
how to present those options honestly in Setup / Permissions without overstating what is supported
Current practical takeaway
The permission improvements already landed on develop are solid enough to ship.
This issue should guide the next extensible architecture layer, not block current release work.
Non-hook / weak-hook platforms should be the first place we evaluate this companion-server fallback model.
Future platforms to keep in mind
This investigation should stay broad enough to cover platforms we have not yet worked through in detail, including things like OpenClaw and other future MCP-capable or streamable-HTTP-capable environments.
Architecture option: local Host Guard as a stripped-down MCP server
A new option from the hosted/streamable-HTTP deployment discussion: make the local helper app an actual MCP server rather than a generic daemon.
Shape
Run a small local companion MCP server beside the user's normal MCP clients and the remote/hosted DollhouseMCP server. This local server would be a stripped-down Dollhouse-derived component focused on host integration and permission brokering:
install and manage host-specific hooks/config for Claude Code, Codex, Cursor, VS Code, Gemini, Windsurf, etc.;
receive native host lifecycle events where the platform supports hooks;
authenticate to the hosted/enterprise DollhouseMCP streamable HTTP server;
forward permission evaluations to the remote authoritative policy engine;
map the remote decision back into the local platform's required response shape;
expose local status/diagnostics as MCP tools/resources so clients and setup UI can inspect whether enforcement is active.
Why this option is attractive
This keeps the helper inside the MCP model instead of inventing a separate control plane. We already know DollhouseMCP can manage hooks, expose setup/status tools, run a local HTTP sidecar, and evaluate gatekeeper.externalRestrictions; a local Host Guard MCP server could reuse or extract those proven pieces while staying much smaller than the full portfolio server.
It also gives hosted DollhouseMCP a credible local enforcement story: the cloud/enterprise server owns identity, active elements, policy, audit, and OAuth, while the local Host Guard owns the filesystem/platform boundary that a remote streamable HTTP server cannot safely mutate.
Caveats
This should be presented as one option, not as a committed design yet.
It still cannot force enforcement on clients that do not call the local server or expose usable hooks.
It needs a clear session-binding model so local hook decisions evaluate the correct remote user/session/active elements.
It should avoid becoming a second full DollhouseMCP installation. The scope should be host hooks, permission brokering, local diagnostics, and remote-server profile management.
Refinement: use the existing local stdio DollhouseMCP install as the Host Guard
Follow-up option from hosted/streamable-HTTP design discussion: instead of requiring a separate local helper app, update the existing stdio/local DollhouseMCP install so it can run in selectable modes.
Product shape
A user installs/updates DollhouseMCP once. Then they choose a mode/profile:
Local portfolio mode
current behavior;
local ~/.dollhouse/portfolio is the source of truth;
local hooks evaluate against local active elements/policies.
Hosted portfolio mode
local stdio DollhouseMCP remains installed beside Claude Code/Codex/Cursor/etc.;
local server authenticates to a hosted/enterprise streamable HTTP DollhouseMCP server via OAuth;
hosted server owns portfolio data, DB backend, identity, active/persisted session policy, and audit;
local server owns local host config, hook installation, hook execution, platform-specific response formatting, and local diagnostics;
local tools either proxy to hosted APIs or expose a reduced local setup/status/control surface.
Hybrid/sync mode (future)
local cache or local editable portfolio with explicit sync to hosted;
useful for offline work, enterprise policy snapshots, or migration.
Why this may be preferable to a separate companion app
This is a cleaner adoption path for existing users: update DollhouseMCP and turn on a profile/flag, rather than installing another binary. It also lets us reuse existing code paths for hook installers, permission diagnostics, the local console, setup UX, and MCP tool registration.
The local stdio server effectively becomes a gateway/guard profile of DollhouseMCP: not a second full hosted server, but the local authority for filesystem/platform integration plus a broker to the remote policy engine.
Implementation concern
Avoid a single giant mode switch. This should likely be decomposed behind small provider abstractions:
PortfolioProvider: local filesystem vs hosted API vs hybrid cache;
PolicyProvider: local active elements vs hosted/session-bound policy export;
PermissionEvaluator: local evaluation vs remote evaluation with local fallback semantics;
AuthProfile: none/local GitHub vs hosted OAuth/device/loopback flow;
HookInstaller: remains local-only regardless of portfolio source.
Key open questions
How does the local stdio server bind hook decisions to the correct hosted user/session/active elements?
Which MCP tools proxy to hosted, which remain local-only setup/status tools, and which are hidden in hosted mode?
What is the enterprise fail-open/fail-closed default when the hosted server is unreachable?
Should hosted mode require policy freshness TTLs and cached deny rules?
How should the setup UI present local, hosted, and hybrid modes without overclaiming enforcement for clients that lack hooks?
This refinement may be the strongest version of the Host Guard idea because it preserves the simple product story: DollhouseMCP is the local install; hosted DollhouseMCP is an optional backend/profile.
Activity
mickdarling commentedon Apr 14, 2026
Initial candidates for prompt-permission fallback based on native-hook investigation:
Best fallback candidates
These are the clients where I did not verify a documented native hook path in the current pass, so prompt-permission fallback may matter most:
cursorcodexclaude-desktopvscodelmstudioClients that look better served by native integration first
These now appear to have documented native hook systems and should probably be implemented natively before we treat prompt-permission as the main answer:
claude-codegemini-cliwindsurfclineImportant nuance
Windsurf does have native hooks, but its contract differs materially from Claude/Gemini:
pre_run_command,pre_write_code, etc.)2andstderrSo prompt-permission fallback may still be worth comparing there as a product fallback, but it should not be treated as the first or only path.
mickdarling commentedon Apr 15, 2026
Reframing this issue after the recent permissions/platform work:
This should stay an investigation / architecture issue, not a "build and deploy immediately" issue.
Updated framing
We should evaluate a separate companion authorization MCP server as an optional fallback for platforms where native hooks are unavailable, incomplete, or not the best fit.
That means:
Important scope clarification
This is not yet a commitment to one implementation.
A companion authorization MCP server is one strong candidate, but it may not be the only viable fallback/control path. As we continue surveying platforms, we may find at least three broad integration styles:
Native hooks
Authorization / permission companion MCP server
Other broker / supervisory techniques
Why this issue stays open
We have only investigated a limited set of platforms so far. There are many more, and new ones will continue to appear. We should avoid a whack-a-mole strategy where every new platform forces a bespoke rethink from scratch.
Instead, this issue should help us answer:
Current practical takeaway
developare solid enough to ship.Future platforms to keep in mind
This investigation should stay broad enough to cover platforms we have not yet worked through in detail, including things like OpenClaw and other future MCP-capable or streamable-HTTP-capable environments.
mickdarling commentedon Jun 4, 2026
Architecture option: local Host Guard as a stripped-down MCP server
A new option from the hosted/streamable-HTTP deployment discussion: make the local helper app an actual MCP server rather than a generic daemon.
Shape
Run a small local companion MCP server beside the user's normal MCP clients and the remote/hosted DollhouseMCP server. This local server would be a stripped-down Dollhouse-derived component focused on host integration and permission brokering:
Why this option is attractive
This keeps the helper inside the MCP model instead of inventing a separate control plane. We already know DollhouseMCP can manage hooks, expose setup/status tools, run a local HTTP sidecar, and evaluate
gatekeeper.externalRestrictions; a local Host Guard MCP server could reuse or extract those proven pieces while staying much smaller than the full portfolio server.It also gives hosted DollhouseMCP a credible local enforcement story: the cloud/enterprise server owns identity, active elements, policy, audit, and OAuth, while the local Host Guard owns the filesystem/platform boundary that a remote streamable HTTP server cannot safely mutate.
Caveats
This should be presented as one option, not as a committed design yet.
Relationship to #2010
This overlaps with #2010, but the emphasis is different:
The two could converge if the hook runtime becomes a separable package that the Host Guard server embeds.
mickdarling commentedon Jun 4, 2026
Refinement: use the existing local stdio DollhouseMCP install as the Host Guard
Follow-up option from hosted/streamable-HTTP design discussion: instead of requiring a separate local helper app, update the existing stdio/local DollhouseMCP install so it can run in selectable modes.
Product shape
A user installs/updates DollhouseMCP once. Then they choose a mode/profile:
Local portfolio mode
~/.dollhouse/portfoliois the source of truth;Hosted portfolio mode
Hybrid/sync mode (future)
Why this may be preferable to a separate companion app
This is a cleaner adoption path for existing users: update DollhouseMCP and turn on a profile/flag, rather than installing another binary. It also lets us reuse existing code paths for hook installers, permission diagnostics, the local console, setup UX, and MCP tool registration.
The local stdio server effectively becomes a gateway/guard profile of DollhouseMCP: not a second full hosted server, but the local authority for filesystem/platform integration plus a broker to the remote policy engine.
Implementation concern
Avoid a single giant mode switch. This should likely be decomposed behind small provider abstractions:
PortfolioProvider: local filesystem vs hosted API vs hybrid cache;PolicyProvider: local active elements vs hosted/session-bound policy export;PermissionEvaluator: local evaluation vs remote evaluation with local fallback semantics;AuthProfile: none/local GitHub vs hosted OAuth/device/loopback flow;HookInstaller: remains local-only regardless of portfolio source.Key open questions
This refinement may be the strongest version of the Host Guard idea because it preserves the simple product story: DollhouseMCP is the local install; hosted DollhouseMCP is an optional backend/profile.