ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/AnyEvent-MCP/Changes
Revision: 1.80
Committed: Sat Nov 7 21:00:41 2026 UTC (59 minutes, 47 seconds ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.79: +6 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 Revision history for AnyEvent::MCP
2    
3 root 1.64 0.83 (unreleased)
4 root 1.80 - eliminate the last utf8::is_utf8-based encoding decision in OAuth2:
5     form values are Unicode text encoded to UTF-8 before percent escaping;
6     decode redirect and persisted refresh-token bytes explicitly.
7     - unify UTF-8 INI parsing in parse_ini (byte input, character output)
8     across config, permissions and IMAP; write Unicode account settings
9     and refresh tokens as UTF-8 bytes, preserving raw password bytes.
10 root 1.79 - load Encode::MIME::Header explicitly in the mcp-imap worker; only
11     mcp-imap requires it, not other AnyEvent::MCP components.
12     - decode RFC 2047 encoded subject and address display fields in
13     mcp-imap ENVELOPE summaries; include attachment names, MIME types,
14     sizes and part numbers in read-only previews without extra FETCHes.
15     - make mcp-fs remote subprocess framing byte-only: explicitly UTF-8
16     encode MCP argv and Unicode paths at their source, preserve raw OS
17     executable/env paths and binary stdin, reject non-octet frame fields;
18     add remote and VCS Unicode path/argv regressions.
19     - log idle IMAP keepalive failure details at trace and suppress only
20     IMAPTalk's raw warning for our expected timeout exception.
21     - register installed optional Encode::HanExtra, Encode::JIS2K and
22     Encode::EUCJPASCII charsets for mcp-imap MIME decoding; advertise
23     them as runtime suggestions, not dependencies.
24     - split distribution tests into core cNN_ files run by default and
25     extended eNN_ files skipped without PERL_ANYEVENT_MCP_TESTS=1;
26     add independent core filesystem smoke tests while retaining the full
27     integration and failure-injection suite for development and releases.
28 root 1.78 - include mailbox, destination, operation, batch size, paging position
29     and bounded SEARCH criteria in mcp-imap request logs, without
30     logging message bodies or UID lists.
31     - keep remote filesystem tests valid with long CPAN tester Perl paths:
32     the mock rsh checks the short loader overhead without imposing
33     an artificial 256-byte limit on the executable pathname.
34     - shorten mcp-fs remote bootstrap: embed the launcher byte length with
35     sprintf and append source directly via sysread without extra argv.
36 root 1.77 - raise sort_create/sort_page UID page maximum from 100 to 1000,
37     keeping the default at 100 and leaving message fetching and MOVE
38     batches capped at 100.
39 root 1.76 - enable multibroker-managed idle exit in mcp-http and mcp-ask-user
40     after 300 seconds, and mcp-imap after 3600 seconds (mcp-fs already
41     supported 300 seconds). Retain ask-user continuations; disposable
42     IMAP SORT snapshots are lost on idle exit. Retry declined idle
43     shutdown after the interval.
44 root 1.75 - add worker-local immutable UID SORT (SUBJECT DATE) snapshots for
45     subject-grouped classification: sort_create returns the first 100
46     UIDs, sort_page pages without re-sorting, sort_discard frees the
47     snapshot; one snapshot per worker, invalidated on restart.
48 root 1.74 - expose read-only UID THREAD ORDEREDSUBJECT through mcp-imap:
49     group by base subject with optional SEARCH filter and UID range,
50     retaining the complete nested server order without pagination.
51 root 1.72 - keep mcp-imap connections alive with an idle NOOP (250 seconds by
52     default, configurable via --keepalive, 0 disables); stop pinging
53     on failure, and reconnect on the next tool call without retrying
54     interrupted operations.
55 root 1.69 - allow shell-friendly instance names (ASCII alphanumerics, underscore,
56     hyphen, dot, @ and +), with separate strict managed-user names.
57     - fold small state-file locking and atomic replacement helper into
58     MCP.pm instead of a separate AnyEvent::MCP::File module.
59     - make --ask a shared common option, with per-option exclusion;
60     add --ask none to deny unresolved permissions and decline
61     downstream elicitation without prompting.
62 root 1.71 - document mcp-imap login keys individually in --help and manpage;
63     support tls connect/starttls/none (including explicit unencrypted IMAP)
64     and reset default ports on TLS mode changes.
65     - report LOGINDISABLED with no supported SASL mechanism cleanly on
66     IMAP password login, without obscure Authen::SASL warnings.
67 root 1.70 - add mcp_permissions to Simple: default permission engine, explicit
68     object or explicit undef; apply --ask and automatic rule overrides
69     centrally without dropping application-supplied automatic rules.
70 root 1.68 - give mcp-fs writable private /tmp and /var/tmp (mode 1777) even
71     with world-read; only shared-tmp or world-write exposes host
72     temporary directories. Make world-write formally imply shared-tmp
73     for permission checks; document the private/host lifetime distinction.
74     - add read-only mcp-imap previews for 25 UIDs, with bounded partial
75     MIME decoding, HTML link preservation and grouped IMAP FETCH calls.
76     - allow mcp-imap messages to fetch selected UIDs without SEARCH.
77     - actually truncate bounded IMAP part/raw responses to max_bytes,
78     not just flag them as truncated.
79 root 1.67 - use a 15-second HTTP read-inactivity timeout by default, suspended
80     while processing complete requests; respect explicit handle rtimeout.
81     - load MIME::Base64 in the HTTP server itself for encoded modern
82     Mcp-Name headers, without depending on the HTTP client loading it.
83 root 1.66 - log ordinary HTTP 404 responses at trace rather than warn,
84     including GET /; keep other HTTP rejection warnings.
85 root 1.73 - return 404 to GET / even when / is the MCP POST endpoint; drop
86     the unhelpful connection object address from HTTP rejection logs
87     while retaining the remote address and sanitized URI.
88 root 1.65 - reuse the latest saved per-dimension scope as the next permission
89     rule editor's default where offered, otherwise keep the original
90     conservative choice; native, YAD and terminal forms agree.
91     - handle the common token-only HTTP endpoint in warning logs:
92     redact known tokens without misclassifying unrelated paths.
93     - include bounded, JSON-escaped request paths in rejected HTTP request
94     warnings; omit queries and redact configured and attempted URL tokens.
95 root 1.64 - show captured helper status, stderr and stdout when the permission
96     UI test fails, and report remote file-patch results and file content
97     when the mock remote filesystem test fails (CPAN Testers diagnostics).
98    
99 root 1.63 0.82 Fri 06 Nov 2026 15:53:46 CET
100     - add a first-permission-dialog walkthrough to Intro.pod, explaining
101     one-time versus persistent grants, rule scopes and exec stdin risks;
102     correct its description of logical workdir IDs.
103 root 1.62 - add common repeatable -s/--set KEY=VALUE process-local overrides
104     for trusted instance configuration, after program/instance defaults.
105     - key remote mcp-fs host permissions by --host alone, independent of
106     --rsh; add independent local/remote host scopes (this host by
107     default, or all hosts), retaining old unscoped saved rules.
108     Workdir scopes remain plain paths, independent of host.
109     - omit single-choice permission scope selectors from native, YAD and
110     terminal rule dialogs, automatically retaining the sole match in
111     saved rules without broadening their applicability.
112 root 1.60 - log rejected HTTP requests (status 400 and above) with method,
113     status and peer information, without leaking URL tokens; demote
114 root 1.61 ordinary connection/TLS errors to trace.
115 root 1.62 - do not warn on routine GET / requests; keep the normal 404
116     response without exposing a server-identification page.
117     - preserve mcp-vim subprocess stderr when its JSONL initialization
118     fails, instead of hiding the failure behind EOF and SIGPIPE.
119 root 1.57 - bootstrap remote mcp-fs over a short Perl command, streaming the
120     launcher source over stdin. Avoid rsh command length limits and
121     preserve worker input across exec by using exact sysread.
122 root 1.58 - format mcp-fs sandbox grants, tools, trusted configuration keys
123     and permission action classes as individually searchable POD items.
124 root 1.62 - give the mock remote filesystem test its running Perl interpreter
125     explicitly, rather than assuming it is in a fixed Unix PATH.
126     - avoid locale-dependent TCP error strings in reverse-connection tests,
127     and skip mcp-imap provider CLI tests when optional fork modules
128     are unavailable while retaining standalone provider parser tests.
129 root 1.57
130 root 1.56 0.81 Thu 05 Nov 2026 04:51:59 CET
131 root 1.55 - keep OAuth2 tests working without optional Mail::IMAPTalk,
132     IO::Socket::SSL or Authen::SASL; skip only worker-specific checks.
133     - support optional `mount-try.SUFFIX = ro:/path` or `rw:/path` in
134     mcp-fs configuration. Pass these directly as bubblewrap
135     --ro-bind-try/--bind-try for each invocation, without startup path
136     checks, locally and remotely; required mount.* entries are unchanged.
137     - support one remote host per mcp-fs instance with -h/--host and
138     -e/--rsh; resolve remote workdirs and available tools in a single
139     startup probe, then execute existing workers through a binary-framed
140     remote Perl launcher without installing any MCP modules remotely.
141 root 1.56 - use logical absolute pathnames (without resolving symlinks) as compact
142     workdir IDs across hosts; qualify remote permission scopes independently.
143     Named profiles remain shared between instances. Report cached remote
144     VCS markers and remote umask.
145 root 1.55 - reserve -h for application-specific options; --help remains common.
146     - test remote workers, external GNU utilities, permission isolation,
147     shell argument quoting and startup probing using a mock remote shell
148     and bubblewrap, including unsandboxed/auto behavior. Verify matching
149 root 1.56 workdir IDs for identical logical paths across local and remote
150 root 1.55 instances.
151     - make mock remote-agent tests independent of a local SSH_AUTH_SOCK
152     inherited from the test runner (including CPAN Testers).
153     - document --eager when starting mcp-webbrowser through multibroker;
154     defer possible downstream preferences for --eager and --hidden.
155    
156 root 1.53 0.8 Thu 05 Nov 2026 01:52:48 CET
157 root 1.49 - INCOMPATIBLE CHANGE: due to the added user management, existing
158     url tokens have been invalidated.
159 root 1.54 - limit distribution permission normalization to its staging
160     directory, and supply proper CPAN author and abstract metadata.
161 root 1.52 - give shared command-line switches their own reference in
162     Server::Simple; use individually indexed POD items for executable
163     options and application-specific shared-option behavior.
164 root 1.51 - refresh the introductory guide and mcp-imap/mcp-http manuals
165     with first-use workflows, OAuth2 setup, mailbox/search examples
166     and reverse-TLS troubleshooting; correct stale retry documentation.
167 root 1.50 - extend mcp-imap SEARCH filters with recursive AND/OR/NOT, header,
168     text/body, date, size and flag criteria; use explicitly quoted
169     IMAP arguments and bounded filter complexity.
170     - capture deliberately triggered connection errors in test assertions,
171     avoiding noisy successful test runs.
172 root 1.49 - expose IMAP LSUB to inspect subscribed mailboxes, alongside
173     subscribe/unsubscribe; return the same format as LIST.
174     - remove superseded IMAP OAuth provider and pagination prototypes
175     and their obsolete reference tests.
176 root 1.51 - defer outgoing mail submission research (mcp-smtp or mcp-imap)
177     in TODO.md.
178 root 1.48 - retry reverse connections only for TCP connection refusal and
179     unexpected disconnects; report and stop on other TCP errors or
180     TLS handshake/verification failures.
181     - force scalar context when checking Mail::IMAPTalk results;
182     list context truncated LIST responses and could corrupt SEARCH
183     results. Test with context-sensitive IMAP mocks.
184     - report HTTPS reverse-connection handshake failures rather than
185     silently retrying; send credentials only after verified TLS succeeds.
186     - omit pointless mailbox permission dimension for mcp-imap mailboxes.
187     - clarify expected OAuth redirect error page and account selection.
188     - implement mcp-imap OAuth2 authorization-code login with PKCE,
189     human-pasted headless browser redirect, HTTPS token exchange,
190     refresh-token persistence/rotation and IMAP SASL XOAUTH2.
191     Keep interactive credentials outside MCP tools and argv.
192     - omit unnecessary shell quotes in mcp-imap providers commands.
193     - expand mcp-imap providers with Thunderbird ISPDB domain search,
194     provider-hosted HTTPS autoconfig lookup and ISPDB fallback,
195     password-based IMAP alternatives and provider setup instructions;
196     continue printing optional OAuth configuration without saving it.
197 root 1.47 - add per-downstream --hidden to mcp-multibroker, omitting a
198     server's tools from normal discovery while retaining explicit
199     list-tools, discover-brokers and call-tool access.
200 root 1.46 - number the user management test consecutively as t/27_users.t.
201 root 1.45 - tidy Perl import grouping, internal comments and source layout
202     in the command-line tools and library modules.
203     - stop imposing an IMAP account file mode check; access is governed
204     by ordinary filesystem permissions.
205 root 1.44 - use the permission engine's literal matching convention for exact
206     user identities and test positive permission-scope validation.
207     - reject invalid browser WebSocket credentials via the documented
208     handshake exception interface, producing one specific warning.
209     - apply the same handshake rejection handling to Vim WebSocket
210     connections, including peer and invalid-token/path warnings.
211     - document user-management scopes and URL examples in command help.
212 root 1.43 - add scoped, revocable MCP users with HKDF-derived credentials,
213     an implicit global default user, and atomic user management;
214     list effective user URLs with --print-url[=USER], also accepting
215     --print-urls, without binding the advertised listener port.
216     - associate HTTP credentials with per-request users, bind user
217     identity to persistent permissions and permission continuations,
218     and delegate original users through trusted multibrokers.
219     - select the effective connect_user (default: default) for reverse
220     MCP, private Vim and browser connections, independently of normal
221     authenticated HTTP tool calls.
222 root 1.42 - treat empty directory paths as "." in mcp-fs list, find, grep and
223     VCS cwd, without accepting empty filenames.
224 root 1.41 - support opportunistic HTTP/HTTPS and reverse MCP connections on the
225     same listener, TLS certificate/key CLI options, and dual URL discovery;
226     support verified HTTPS for outgoing reverse connections.
227 root 1.39 - treat idle HTTP disconnects as normal EOF while retaining errors
228     for clients disconnecting during request headers or bodies.
229     - identify failing MCP connections by client name, remote address
230     and connection id, including modern per-request client metadata.
231 root 1.38 - trace local multibroker prompt starts, outcomes and cancellations
232     with elapsed time to diagnose disappearing permission dialogs.
233     - use an 8 MiB default MCP message size across JSONL and HTTP
234     clients and servers, allowing large base64 tool requests through
235     mcp-multibroker; log server transport errors at warn level
236     instead of silently closing connections.
237 root 1.37 - load AnyEvent::Log at compile time so its format_time call is parsed
238     as a function, fixing activity logging on Perl 5.10.
239    
240 root 1.36 0.71 Fri 30 Oct 2026 18:01:51 CET
241 root 1.35 - make multibroker-spawned children ask for permissions through MCP,
242     independently of the multibroker's own permission prompt mode.
243 root 1.36 - log VCS backend and a bounded, JSON-quoted preview of filenames for
244     vcs-diff, vcs-status and vcs-log.
245     - load only core modules in t/00_load.t; optional IMAP dependencies
246     are tested separately when available.
247     - let the fake bubblewrap test use the host temporary directory on
248     systems without /tmp (notably Termux).
249     - suppress Perl startup locale warnings in sandbox workers when
250     the requested C.UTF-8 locale is unavailable.
251     - canonicalize temporary test paths to match mcp-fs on systems with
252     symlinked temp directories; diagnose failing filesystem assertions.
253     - test SSE notification ordering at client delivery rather than
254     server enqueue time, avoiding a network scheduling race.
255     - diagnose failing multibroker HTTP integration tests with preflight
256     responses, RPC results and bounded server startup diagnostics.
257 root 1.35
258 root 1.34 0.7 Fri 30 Oct 2026 14:56:18 CET
259     - WARNING: mcp-imap is unfinished and has not been tested against a real IMAP server.
260     - INCOMPATIBLE CHANGE: rules have changed, old rules will be erased.
261     - declare the same license terms as Perl itself in distribution metadata.
262     - new mcp servers in this release: mcp-http
263     - accept optional dimension default matcher for persistent-rule prompts;
264 root 1.33 - clarify that mcp-fs exec has private /tmp by default; shared-tmp
265     exposes host /tmp and is not needed for ordinary temporary files or IPC.
266 root 1.32 - add mcp-fs vcs-log for Git, SVN, CVS and Mercurial, reusing bounded
267     output and dedicated permission actions; SVN log receives network
268     and SSH-agent grants alongside CVS operations.
269 root 1.31 mcp-webbrowser prefers any JavaScript in the current tab, while the
270     independent origin dimension remains scoped to the current origin.
271 root 1.30 - log mcp-http requests with their method and a sanitized URL preview;
272     identify mcp-http/$VERSION in User-Agent unless overridden by the caller.
273 root 1.31 Allow generic key=value context in the shared mcp_log_request formatter.
274 root 1.29 - silently treat invalid saved permission-rule files as empty, prompting
275     instead of aborting broker startup; subsequent saves replace the old file.
276 root 1.30 - add mcp-http for arbitrary HTTP methods with URL-scoped approvals,
277     caller-managed cookie jars, bounded bodies and text grep/regex/substitution.
278     Disable redirects, retries and proxies; verify HTTPS certificates.
279     - derive browser permission origins from reported URLs, not a new
280     userscript field; keep older browser clients able to execute with
281     origin-scoped permissions.
282     - accept compatible browser-protocol minor versions; return empty
283     operation discovery for 1.0 clients instead of disconnecting them.
284 root 1.29 Direct rule saves no longer perform semantic validation.
285 root 1.28 - replace special-case subject, origin and workdir permission scopes with
286     named dimensions: metadata-driven prompts, generic match.NAME rule keys,
287     and engine-enforced matcher choices. Reject old request and rule fields;
288     no conversion or backward-compatible rule loading.
289 root 1.27 - preserve selected origin scopes when external permission helpers
290     forward persistent decisions through native MCP elicitation.
291 root 1.26 - add origin-scoped MCP permission rules, selectable independently of
292 root 1.30 code/tab scopes; mcp-webbrowser derives browser origins for
293 root 1.26 JavaScript and tab operations, with exact, any-port and any-origin
294     choices. Existing rules without origins continue to match all origins.
295 root 1.25 - use POSIX::uname instead of nonportable hostname -f for the XPCSE
296     browser nickname, consistent with HTTP URL wildcard host selection.
297     - make form helper test run via explicit ./ path, avoid early HTTP
298     timer races, and test filesystem discovery with optional tools absent.
299 root 1.23 - report browser protocol rejections through bounded WebSocket close
300     reasons; show abnormal disconnects in the userscript console and toast.
301     - document browser wire-protocol minor-version compatibility: accept
302     compatible older and newer clients without breaking base functionality.
303     - remove the obsolete private stdio permission-result bridge from
304     mcp-multibroker; use ordinary form elicitation.
305 root 1.22 - add per-tab operation discovery and calls to mcp-webbrowser, with
306     per-tab routing, ordinary MCP permissions and browser protocol 1.1;
307     the userscript initially advertises no extra operations.
308     - make the unsandboxed-warning test tolerate diagnostic output from
309     non-GNU utility probes (FreeBSD and BusyBox).
310     - add mcp-imap with one named password-authenticated account per instance,
311     bounded UID search, MIME reads, explicit mailbox/message mutations,
312     UIDPLUS-only targeted expunge, forked worker and MCP permissions.
313 root 1.21 - propagate XPCSE save response ETags back to Vim session metadata;
314     make stale upload HTTP status an editor error.
315     - require GNU sed in worker tool discovery; report missing-Perl diagnostics in tests.
316 root 1.18 - xpcse: forward Vim's :write! flag through mcp-vim to browser
317     uploads, without changing upload behavior yet.
318 root 1.19 - recommend rather than require WebSocket modules: only mcp-vim and
319     mcp-webbrowser use them; mcp-vim loads them only for browser clients,
320     and tests skip optional WebSocket coverage when unavailable.
321 root 1.18
322 root 1.17 0.65 Fri 23 Oct 2026 22:41:32 CEST
323 root 1.14 - fix mcp-webbrowser userscript title indicator duplicating prefixes on empty titles.
324 root 1.17 - use built scripts in make test PATH, avoiding source shebangs and
325     accidentally installed helpers in rule management tests.
326 root 1.15 - clarify browser execute code wrapper and reject function/symbol return
327     values instead of silently converting them to null.
328 root 1.17 - fix many bugs in the testsuite.
329 root 1.13
330 root 1.12 0.62 Thu 22 Oct 2026 13:32:52 CEST
331 root 1.16 - INCOMPATIBLE API CHANGE: mcp_getoptions now returns a hash reference instead of
332     a key/value list.
333 root 1.11 - Simple accepts server_name/server_version independently of the local
334     instance name, leaving server_info as an unmodified protocol override.
335     - query multibroker children in parallel for tool and broker discovery,
336     preserving tool order and returning partial results after 15 seconds
337     instead of blocking on an unresponsive child.
338 root 1.8 - accept a missing trailing slash on HTTP MCP endpoint URLs, working
339 root 1.10 around Claude's MCP connector wrongly dropping it from the configured URL,
340 root 1.18 thus corrupting it.
341 root 1.7 - allow omitted ports in reverse extension URLs, defaulting to port 80.
342 root 1.9 - fix MCP client/server version fields serialized as JSON numbers in 0.61.
343 root 1.7
344 root 1.6 0.61 Thu 22 Oct 2026 08:57:42 CEST
345 root 1.5 - resolve bind hostnames via AnyEvent::Socket instead of Socket::getaddrinfo.
346 root 1.4 - honor user-selected file permissions and preserve them across replacements.
347     - fix permission test fixture grants.
348     - fix activity log timestamp formatting on older perl versions.
349     - correct multibroker test tool count (including meta-instructions).
350     - fix perl 5.12 syntax errors in mcp-fs and mcp-vim.
351    
352 root 1.3 0.6 Wed 21 Oct 2026 20:43:20 CEST
353 root 1.2 - 34k LOC of pure llm madness. but seems to work. yay.
354 root 1.1
355     0.0 Sat 03 Oct 2026 07:29:39 CEST
356     - original version, an AnyEvent::HTTP clone.