A local-first multi-agent app development platform, built on PenguinHarness
Per-server permission for MCP Servers
- Date: 2026-08-20
- Type: feature
- Scope:
core,web,docs - PR: #364
An MCP Server entry gained an optional permission key with three states — auto (the
default), r and rw — that fixes the approval level of every tool that server exposes.
Under auto each tool keeps the level its own readOnlyHint annotation implies, which is
what shipped before. readOnlyHint is optional in the MCP spec and many servers never set
it, so their whole toolset landed on rw, which the read-only approval mode stops for on
every call; an explicit r or rw now overrides the annotation for all of them at once.
Details
tools.mcpServers[].config.permissionsits alongsideconnectTimeoutMs,timeoutMsandmaxOutputLength, and like them applies to every tool of that server. A value that is notauto,rorrwmakes the entry invalid: the resolver reports a warning and skips that server, so a typo in hand-edited YAML costs one server rather than the Agent.- The level is per server, not per tool — the setting is made when a server is added, before any tool has been discovered.
- The Web App's Add/Edit MCP Server modal carries the control, with the same three-way
option menu the builtin tool table uses plus the
autostate, and the server table lists each entry's effective level. Savingautowrites no key, so an entry that was never given an explicit level keeps following the default.
What the flag governs
permission fixes the level each of the server's tools reports, and exactly one approval
mode reads that level. Under read-only an r tool is auto-approved and an rw tool
needs manual confirmation; allow-all, deny-all and always-ask never consult it, so an
entry marked rw adds no prompt outside read-only. Beyond that the key does nothing. It
is not a sandbox: it does not restrict what the server's tools do once they run, it is
never sent to or verified against the server, and the server keeps whatever capabilities
its transport gives it. Marking a server r that can in fact write removes the
confirmation read-only would have asked for.