Skip to content

v1.4.1 — MCP tools + LSP web-compatible

Choose a tag to compare

@gmpassos gmpassos released this 06 Jul 02:38
· 215 commits to master since this release
abf59d9

Makes ApolloVM's MCP server and all its tools (apollovm.* + apollovm.lsp.*) run in a browser.

MCP — web compatibility

  • package:apollovm/apollovm_mcp.dart is now fully web-safe — no dart:io, no dart:isolate. The MCP server and every tool compile and run under dart2js / DDC. Construct ApolloMcpServer on any StreamChannel<String> (e.g. a web MessageChannel) and drive the tools in-process. (In 1.4.0 the apollovm.lsp.* tools were documented as web-safe, but apollovm_mcp.dart still transitively imported dart:io/dart:isolate, so a web build failed to compile.)
  • The dart:io-only pieces moved to a new package:apollovm/apollovm_mcp_io.dart (which re-exports apollovm_mcp.dart): serveStdio, HttpSseTransport, and the CommandMcp CLI group. Migration: if you imported those from apollovm_mcp.dart, switch that import to apollovm_mcp_io.dart (one line).
  • The per-tool timeout executor is platform-selected (mirroring wasm_runtime.dart): a killable-isolate executor on native, an in-process cooperative-timeout executor on the web.
  • New cross-platform test/mcp/web_compat_test.dart runs under dart test --platform chrome, guarding the web-safe surface.

Verified: dart2js compiles the full MCP + LSP surface; web-compat tests pass in Chrome; all MCP tests pass on the VM.

Full changelog: see CHANGELOG.md.

🤖 Generated with Claude Code