ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/AnyEvent-MCP/Changes
Revision: 1.66
Committed: Fri Nov 6 17:20:04 2026 UTC (8 days, 23 hours ago) by root
Branch: MAIN
Changes since 1.65: +2 -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.66 - log ordinary HTTP 404 responses at trace rather than warn,
5     including GET /; keep other HTTP rejection warnings.
6 root 1.65 - reuse the latest saved per-dimension scope as the next permission
7     rule editor's default where offered, otherwise keep the original
8     conservative choice; native, YAD and terminal forms agree.
9     - handle the common token-only HTTP endpoint in warning logs:
10     redact known tokens without misclassifying unrelated paths.
11     - include bounded, JSON-escaped request paths in rejected HTTP request
12     warnings; omit queries and redact configured and attempted URL tokens.
13 root 1.64 - show captured helper status, stderr and stdout when the permission
14     UI test fails, and report remote file-patch results and file content
15     when the mock remote filesystem test fails (CPAN Testers diagnostics).
16    
17 root 1.63 0.82 Fri 06 Nov 2026 15:53:46 CET
18     - add a first-permission-dialog walkthrough to Intro.pod, explaining
19     one-time versus persistent grants, rule scopes and exec stdin risks;
20     correct its description of logical workdir IDs.
21 root 1.62 - add common repeatable -s/--set KEY=VALUE process-local overrides
22     for trusted instance configuration, after program/instance defaults.
23     - key remote mcp-fs host permissions by --host alone, independent of
24     --rsh; add independent local/remote host scopes (this host by
25     default, or all hosts), retaining old unscoped saved rules.
26     Workdir scopes remain plain paths, independent of host.
27     - omit single-choice permission scope selectors from native, YAD and
28     terminal rule dialogs, automatically retaining the sole match in
29     saved rules without broadening their applicability.
30 root 1.60 - log rejected HTTP requests (status 400 and above) with method,
31     status and peer information, without leaking URL tokens; demote
32 root 1.61 ordinary connection/TLS errors to trace.
33 root 1.62 - do not warn on routine GET / requests; keep the normal 404
34     response without exposing a server-identification page.
35     - preserve mcp-vim subprocess stderr when its JSONL initialization
36     fails, instead of hiding the failure behind EOF and SIGPIPE.
37 root 1.57 - bootstrap remote mcp-fs over a short Perl command, streaming the
38     launcher source over stdin. Avoid rsh command length limits and
39     preserve worker input across exec by using exact sysread.
40 root 1.58 - format mcp-fs sandbox grants, tools, trusted configuration keys
41     and permission action classes as individually searchable POD items.
42 root 1.62 - give the mock remote filesystem test its running Perl interpreter
43     explicitly, rather than assuming it is in a fixed Unix PATH.
44     - avoid locale-dependent TCP error strings in reverse-connection tests,
45     and skip mcp-imap provider CLI tests when optional fork modules
46     are unavailable while retaining standalone provider parser tests.
47 root 1.57
48 root 1.56 0.81 Thu 05 Nov 2026 04:51:59 CET
49 root 1.55 - keep OAuth2 tests working without optional Mail::IMAPTalk,
50     IO::Socket::SSL or Authen::SASL; skip only worker-specific checks.
51     - support optional `mount-try.SUFFIX = ro:/path` or `rw:/path` in
52     mcp-fs configuration. Pass these directly as bubblewrap
53     --ro-bind-try/--bind-try for each invocation, without startup path
54     checks, locally and remotely; required mount.* entries are unchanged.
55     - support one remote host per mcp-fs instance with -h/--host and
56     -e/--rsh; resolve remote workdirs and available tools in a single
57     startup probe, then execute existing workers through a binary-framed
58     remote Perl launcher without installing any MCP modules remotely.
59 root 1.56 - use logical absolute pathnames (without resolving symlinks) as compact
60     workdir IDs across hosts; qualify remote permission scopes independently.
61     Named profiles remain shared between instances. Report cached remote
62     VCS markers and remote umask.
63 root 1.55 - reserve -h for application-specific options; --help remains common.
64     - test remote workers, external GNU utilities, permission isolation,
65     shell argument quoting and startup probing using a mock remote shell
66     and bubblewrap, including unsandboxed/auto behavior. Verify matching
67 root 1.56 workdir IDs for identical logical paths across local and remote
68 root 1.55 instances.
69     - make mock remote-agent tests independent of a local SSH_AUTH_SOCK
70     inherited from the test runner (including CPAN Testers).
71     - document --eager when starting mcp-webbrowser through multibroker;
72     defer possible downstream preferences for --eager and --hidden.
73    
74 root 1.53 0.8 Thu 05 Nov 2026 01:52:48 CET
75 root 1.49 - INCOMPATIBLE CHANGE: due to the added user management, existing
76     url tokens have been invalidated.
77 root 1.54 - limit distribution permission normalization to its staging
78     directory, and supply proper CPAN author and abstract metadata.
79 root 1.52 - give shared command-line switches their own reference in
80     Server::Simple; use individually indexed POD items for executable
81     options and application-specific shared-option behavior.
82 root 1.51 - refresh the introductory guide and mcp-imap/mcp-http manuals
83     with first-use workflows, OAuth2 setup, mailbox/search examples
84     and reverse-TLS troubleshooting; correct stale retry documentation.
85 root 1.50 - extend mcp-imap SEARCH filters with recursive AND/OR/NOT, header,
86     text/body, date, size and flag criteria; use explicitly quoted
87     IMAP arguments and bounded filter complexity.
88     - capture deliberately triggered connection errors in test assertions,
89     avoiding noisy successful test runs.
90 root 1.49 - expose IMAP LSUB to inspect subscribed mailboxes, alongside
91     subscribe/unsubscribe; return the same format as LIST.
92     - remove superseded IMAP OAuth provider and pagination prototypes
93     and their obsolete reference tests.
94 root 1.51 - defer outgoing mail submission research (mcp-smtp or mcp-imap)
95     in TODO.md.
96 root 1.48 - retry reverse connections only for TCP connection refusal and
97     unexpected disconnects; report and stop on other TCP errors or
98     TLS handshake/verification failures.
99     - force scalar context when checking Mail::IMAPTalk results;
100     list context truncated LIST responses and could corrupt SEARCH
101     results. Test with context-sensitive IMAP mocks.
102     - report HTTPS reverse-connection handshake failures rather than
103     silently retrying; send credentials only after verified TLS succeeds.
104     - omit pointless mailbox permission dimension for mcp-imap mailboxes.
105     - clarify expected OAuth redirect error page and account selection.
106     - implement mcp-imap OAuth2 authorization-code login with PKCE,
107     human-pasted headless browser redirect, HTTPS token exchange,
108     refresh-token persistence/rotation and IMAP SASL XOAUTH2.
109     Keep interactive credentials outside MCP tools and argv.
110     - omit unnecessary shell quotes in mcp-imap providers commands.
111     - expand mcp-imap providers with Thunderbird ISPDB domain search,
112     provider-hosted HTTPS autoconfig lookup and ISPDB fallback,
113     password-based IMAP alternatives and provider setup instructions;
114     continue printing optional OAuth configuration without saving it.
115 root 1.47 - add per-downstream --hidden to mcp-multibroker, omitting a
116     server's tools from normal discovery while retaining explicit
117     list-tools, discover-brokers and call-tool access.
118 root 1.46 - number the user management test consecutively as t/27_users.t.
119 root 1.45 - tidy Perl import grouping, internal comments and source layout
120     in the command-line tools and library modules.
121     - stop imposing an IMAP account file mode check; access is governed
122     by ordinary filesystem permissions.
123 root 1.44 - use the permission engine's literal matching convention for exact
124     user identities and test positive permission-scope validation.
125     - reject invalid browser WebSocket credentials via the documented
126     handshake exception interface, producing one specific warning.
127     - apply the same handshake rejection handling to Vim WebSocket
128     connections, including peer and invalid-token/path warnings.
129     - document user-management scopes and URL examples in command help.
130 root 1.43 - add scoped, revocable MCP users with HKDF-derived credentials,
131     an implicit global default user, and atomic user management;
132     list effective user URLs with --print-url[=USER], also accepting
133     --print-urls, without binding the advertised listener port.
134     - associate HTTP credentials with per-request users, bind user
135     identity to persistent permissions and permission continuations,
136     and delegate original users through trusted multibrokers.
137     - select the effective connect_user (default: default) for reverse
138     MCP, private Vim and browser connections, independently of normal
139     authenticated HTTP tool calls.
140 root 1.42 - treat empty directory paths as "." in mcp-fs list, find, grep and
141     VCS cwd, without accepting empty filenames.
142 root 1.41 - support opportunistic HTTP/HTTPS and reverse MCP connections on the
143     same listener, TLS certificate/key CLI options, and dual URL discovery;
144     support verified HTTPS for outgoing reverse connections.
145 root 1.39 - treat idle HTTP disconnects as normal EOF while retaining errors
146     for clients disconnecting during request headers or bodies.
147     - identify failing MCP connections by client name, remote address
148     and connection id, including modern per-request client metadata.
149 root 1.38 - trace local multibroker prompt starts, outcomes and cancellations
150     with elapsed time to diagnose disappearing permission dialogs.
151     - use an 8 MiB default MCP message size across JSONL and HTTP
152     clients and servers, allowing large base64 tool requests through
153     mcp-multibroker; log server transport errors at warn level
154     instead of silently closing connections.
155 root 1.37 - load AnyEvent::Log at compile time so its format_time call is parsed
156     as a function, fixing activity logging on Perl 5.10.
157    
158 root 1.36 0.71 Fri 30 Oct 2026 18:01:51 CET
159 root 1.35 - make multibroker-spawned children ask for permissions through MCP,
160     independently of the multibroker's own permission prompt mode.
161 root 1.36 - log VCS backend and a bounded, JSON-quoted preview of filenames for
162     vcs-diff, vcs-status and vcs-log.
163     - load only core modules in t/00_load.t; optional IMAP dependencies
164     are tested separately when available.
165     - let the fake bubblewrap test use the host temporary directory on
166     systems without /tmp (notably Termux).
167     - suppress Perl startup locale warnings in sandbox workers when
168     the requested C.UTF-8 locale is unavailable.
169     - canonicalize temporary test paths to match mcp-fs on systems with
170     symlinked temp directories; diagnose failing filesystem assertions.
171     - test SSE notification ordering at client delivery rather than
172     server enqueue time, avoiding a network scheduling race.
173     - diagnose failing multibroker HTTP integration tests with preflight
174     responses, RPC results and bounded server startup diagnostics.
175 root 1.35
176 root 1.34 0.7 Fri 30 Oct 2026 14:56:18 CET
177     - WARNING: mcp-imap is unfinished and has not been tested against a real IMAP server.
178     - INCOMPATIBLE CHANGE: rules have changed, old rules will be erased.
179     - declare the same license terms as Perl itself in distribution metadata.
180     - new mcp servers in this release: mcp-http
181     - accept optional dimension default matcher for persistent-rule prompts;
182 root 1.33 - clarify that mcp-fs exec has private /tmp by default; shared-tmp
183     exposes host /tmp and is not needed for ordinary temporary files or IPC.
184 root 1.32 - add mcp-fs vcs-log for Git, SVN, CVS and Mercurial, reusing bounded
185     output and dedicated permission actions; SVN log receives network
186     and SSH-agent grants alongside CVS operations.
187 root 1.31 mcp-webbrowser prefers any JavaScript in the current tab, while the
188     independent origin dimension remains scoped to the current origin.
189 root 1.30 - log mcp-http requests with their method and a sanitized URL preview;
190     identify mcp-http/$VERSION in User-Agent unless overridden by the caller.
191 root 1.31 Allow generic key=value context in the shared mcp_log_request formatter.
192 root 1.29 - silently treat invalid saved permission-rule files as empty, prompting
193     instead of aborting broker startup; subsequent saves replace the old file.
194 root 1.30 - add mcp-http for arbitrary HTTP methods with URL-scoped approvals,
195     caller-managed cookie jars, bounded bodies and text grep/regex/substitution.
196     Disable redirects, retries and proxies; verify HTTPS certificates.
197     - derive browser permission origins from reported URLs, not a new
198     userscript field; keep older browser clients able to execute with
199     origin-scoped permissions.
200     - accept compatible browser-protocol minor versions; return empty
201     operation discovery for 1.0 clients instead of disconnecting them.
202 root 1.29 Direct rule saves no longer perform semantic validation.
203 root 1.28 - replace special-case subject, origin and workdir permission scopes with
204     named dimensions: metadata-driven prompts, generic match.NAME rule keys,
205     and engine-enforced matcher choices. Reject old request and rule fields;
206     no conversion or backward-compatible rule loading.
207 root 1.27 - preserve selected origin scopes when external permission helpers
208     forward persistent decisions through native MCP elicitation.
209 root 1.26 - add origin-scoped MCP permission rules, selectable independently of
210 root 1.30 code/tab scopes; mcp-webbrowser derives browser origins for
211 root 1.26 JavaScript and tab operations, with exact, any-port and any-origin
212     choices. Existing rules without origins continue to match all origins.
213 root 1.25 - use POSIX::uname instead of nonportable hostname -f for the XPCSE
214     browser nickname, consistent with HTTP URL wildcard host selection.
215     - make form helper test run via explicit ./ path, avoid early HTTP
216     timer races, and test filesystem discovery with optional tools absent.
217 root 1.23 - report browser protocol rejections through bounded WebSocket close
218     reasons; show abnormal disconnects in the userscript console and toast.
219     - document browser wire-protocol minor-version compatibility: accept
220     compatible older and newer clients without breaking base functionality.
221     - remove the obsolete private stdio permission-result bridge from
222     mcp-multibroker; use ordinary form elicitation.
223 root 1.22 - add per-tab operation discovery and calls to mcp-webbrowser, with
224     per-tab routing, ordinary MCP permissions and browser protocol 1.1;
225     the userscript initially advertises no extra operations.
226     - make the unsandboxed-warning test tolerate diagnostic output from
227     non-GNU utility probes (FreeBSD and BusyBox).
228     - add mcp-imap with one named password-authenticated account per instance,
229     bounded UID search, MIME reads, explicit mailbox/message mutations,
230     UIDPLUS-only targeted expunge, forked worker and MCP permissions.
231 root 1.21 - propagate XPCSE save response ETags back to Vim session metadata;
232     make stale upload HTTP status an editor error.
233     - require GNU sed in worker tool discovery; report missing-Perl diagnostics in tests.
234 root 1.18 - xpcse: forward Vim's :write! flag through mcp-vim to browser
235     uploads, without changing upload behavior yet.
236 root 1.19 - recommend rather than require WebSocket modules: only mcp-vim and
237     mcp-webbrowser use them; mcp-vim loads them only for browser clients,
238     and tests skip optional WebSocket coverage when unavailable.
239 root 1.18
240 root 1.17 0.65 Fri 23 Oct 2026 22:41:32 CEST
241 root 1.14 - fix mcp-webbrowser userscript title indicator duplicating prefixes on empty titles.
242 root 1.17 - use built scripts in make test PATH, avoiding source shebangs and
243     accidentally installed helpers in rule management tests.
244 root 1.15 - clarify browser execute code wrapper and reject function/symbol return
245     values instead of silently converting them to null.
246 root 1.17 - fix many bugs in the testsuite.
247 root 1.13
248 root 1.12 0.62 Thu 22 Oct 2026 13:32:52 CEST
249 root 1.16 - INCOMPATIBLE API CHANGE: mcp_getoptions now returns a hash reference instead of
250     a key/value list.
251 root 1.11 - Simple accepts server_name/server_version independently of the local
252     instance name, leaving server_info as an unmodified protocol override.
253     - query multibroker children in parallel for tool and broker discovery,
254     preserving tool order and returning partial results after 15 seconds
255     instead of blocking on an unresponsive child.
256 root 1.8 - accept a missing trailing slash on HTTP MCP endpoint URLs, working
257 root 1.10 around Claude's MCP connector wrongly dropping it from the configured URL,
258 root 1.18 thus corrupting it.
259 root 1.7 - allow omitted ports in reverse extension URLs, defaulting to port 80.
260 root 1.9 - fix MCP client/server version fields serialized as JSON numbers in 0.61.
261 root 1.7
262 root 1.6 0.61 Thu 22 Oct 2026 08:57:42 CEST
263 root 1.5 - resolve bind hostnames via AnyEvent::Socket instead of Socket::getaddrinfo.
264 root 1.4 - honor user-selected file permissions and preserve them across replacements.
265     - fix permission test fixture grants.
266     - fix activity log timestamp formatting on older perl versions.
267     - correct multibroker test tool count (including meta-instructions).
268     - fix perl 5.12 syntax errors in mcp-fs and mcp-vim.
269    
270 root 1.3 0.6 Wed 21 Oct 2026 20:43:20 CEST
271 root 1.2 - 34k LOC of pure llm madness. but seems to work. yay.
272 root 1.1
273     0.0 Sat 03 Oct 2026 07:29:39 CEST
274     - original version, an AnyEvent::HTTP clone.