Changes for version 0.92

  • add opt-in dynamic workdirs to mcp-fs (--dynamic), including remote hosts. workdir-add and workdir-remove manage random temporary negative IDs without changing the persistent ID registry. Existing sandbox permissions apply to added workdirs. An initially empty workdir configuration is allowed with --dynamic.
  • add ScriptCat's VSCode protocol to mcp-sctl's existing listener, allowing userscript installs/updates in Firefox and Chromium. Named instances use the existing connect URL plus an alias; push is write-only and does not acknowledge installation.
  • simplify the permission helper protocol: semantic offers and answers, stable scope IDs, engine-owned rules and expiry, and optional local custom regex scopes. Helpers consume one LF-terminated JSON request through EOF; empty output with exit 0/1 allows/denies once (incompatible with old custom helpers). Keep native two-stage forms and add a complete form capability for a single helper invocation through a broker. Support multi-select form enums and a generic permission form adapter.
  • document writing and integrating permission helpers in the new AnyEvent::MCP::Permissions::Helper manpage.
  • add mcp-fs host-wayland grant for the host compositor socket, separate from host-x11, without exposing the host runtime directory.
  • consolidate VCS tools into vcs-read and vcs-write with backend and operation enums. Add fixed add/commit/fetch/pull/update/checkout/ switch/branch/push commands as applicable. Group permissions into read, local modification and publication; retain backend scoping.
  • implicitly expose standard Git and Mercurial user configuration files read-only to dedicated VCS commands, not to ordinary exec.
  • remember permission scope choices by stable IDs and rule lifetime in a separate preferences section, independent of saved authorization rules. Add a one-hour lifetime and label native elicitation scope choices. Set readonly=1 in [preferences] to freeze the stored defaults.
  • fix mcp-sctl permission argument digests for Unicode JSON input: hash UTF-8 octets rather than characters.
  • correct VCS tool descriptions: CVS uses ssh-agent for every operation, SVN only for log. Avoid repeating exec grant defaults and -- prefix scoping in both tool and parameter descriptions.
  • simplify mcp-fs workdirs to text-only ID/VCS/path and mount tables. Add list-grants for sandbox capability dependencies and descriptions, and advertise exec's existing workdir-read grant as its schema default. Remove duplicated structuredContent and incidental runtime metadata from workdir discovery.
  • list directory entries as d/f/etc records under one '/' header, avoiding repeated headers as directories and files interleave. Preserve the directory-header grouping for recursive find results.
  • return complete recursive compact text signatures from multibroker search-tools and list-tools: nested objects/maps, parameter descriptions, required fields, defaults and constraints, without size truncation. Repeated identical parameter schemas become <as before> within a result; omit unchanged descriptions when only other constraints differ. Clear description state when a parameter lacks one, and include requiredness when comparing repeated parameter schemas. Retain full-schema search and exact JSON schema retrieval via list-tools broker=NAME name=TOOL. Drop redundant structuredContent and schema/annotation metadata from discovery; native tools/list is unchanged.
  • support readonly, nondestructive, idempotent and closedworld options on tool registration. Emit only non-default MCP annotations; annotate bundled tools according to their actual effects and scope, leaving unrestricted and delegated operations conservative.
  • allow explicit --stdio and --connect together, optionally with --listen. Stdio owns the process lifetime; reverse connection failure does not stop it.
  • improve interoperability with broken MCP servers that advertise the wrong protocol version. Add a per-downstream --force-protocol DATE compatibility override, and avoid forwarding modern-only protocol metadata to legacy servers.
  • detect legacy Streamable HTTP servers that reject modern discovery with an empty or unrecognized HTTP 400. Preserve structured HTTP status and modern protocol errors; never downgrade authentication failures or arbitrary tool calls.
  • enable TCP SO_KEEPALIVE on both ends of reverse --connect MCP connections, with kernel-default timings; this allows eventual detection and reconnection after silent network failures.
  • exclude hidden subbrokers from unqualified multibroker search-tools, while allowing explicit broker=NAME searches. discover-brokers and explicit list-tools continue to include hidden brokers.
  • add opt-in mcp-multibroker --guard for configured downstream servers. Require permission before forwarding tool calls, using one shared permission profile with separate broker/tool scopes, the caller's user identity and existing rule expirations. Direct and wrapped calls use the same check; reverse connections remain unguarded.
  • follow HTTP redirects by default in mcp-http, with configurable recurse limit (0 disables). Return final URL only if changed. Select response header names through a positive regex; default retains content-type and a few useful uncommon headers.
  • add mcp-fs host-x11, user-dbus and host-dbus sandbox grants for pathname Unix sockets, and include them in world-write. Expose Xauthority when needed; use target-host environment for remote workers. These grants do not imply host-network.
  • rename mcp-fs network sandbox grant to host-network. It grants the host network namespace; private loopback tests do not need the grant.
  • accept + separated capability sets in --auto-allow/--auto-deny and configured automatic permission rules. Allow any subset of the set; deny requests implying the whole set. An explicitly empty third field denotes an empty set, distinct from an omitted field or *.
  • retry state-only MCP input_required tool results with up to ten retries, at 0, 250, 500, ... ms spacing. Preserve opaque requestState and original arguments; cancellation stops pending retries.
  • normalize mcp-vim patch temporary files and diff input to UTF-8, converting back to Vim's internal encoding before updating buffers. Reject lossy conversions without modifying the buffer.
  • identify remote mcp-fs workers with a magic PID line before stdout, reject noisy remote shells, and kill remote workers on cancellation or timeout via a second remote-shell command with the same elevation.
  • offer exec permission rules matching the exact argv prefix through the first standalone -- argument, with arbitrary subsequent arguments. Encourage this form in exec tool guidance when supported by the program.
  • allow --host-dac without bubblewrap: it is a no-op for unsandboxed workers, including --sandbox auto when bubblewrap is unavailable.
  • treat Return in the YAD permission dialog as Auto: deny once when a denial reason is entered, otherwise allow once. Explicit buttons keep their original meanings, regardless of the reason field.

Documentation

initialize MCP configuration and manage users and permissions
graphical or terminal permission helper
display an MCP elicitation form using YAD or a terminal
ask the human questions through MCP
filesystem and command tools with optional sandboxing
HTTP requests with URL and method permissions
inspect and manage one IMAP account through MCP
combine MCP servers under tool name prefixes
ScriptCat and sctl Browser WebSocket bridge for MCP
MCP server for live Vim editors
expose opted-in browser tabs to MCP
using MCP servers, clients and permissions
writing and integrating permission helpers

Modules

Model Context Protocol client/server support
asynchronous MCP client protocol
MCP over AnyEvent::HTTP
MCP byte streams and stdio subprocesses
a request for client input
named servers and derived MCP credentials
authenticated non-HTTP connections on an MCP listener
asynchronous JSON exchange with an external helper
pluggable external permission prompts
MCP request dispatch and JSON-RPC framing
reverse-connecting MCP JSONL server
an optional MCP HTTP listener and socket handler
MCP over a newline-delimited byte stream
action authorization and sandbox grants
simple function interface for MCP servers
MCP tool declarations and callbacks
persistent filesystem workdir IDs

Provides

in lib/AnyEvent/MCP.pm
in lib/AnyEvent/MCP/IMAP/OAuth2.pm
in lib/AnyEvent/MCP/IMAP/Providers.pm
in lib/AnyEvent/MCP/Worker/IMAP.pm