Adrià Arrufat
3d6d669a50
testing: add LogFilter utility for scoped log suppression
2026-03-12 13:56:53 +09:00
Adrià Arrufat
34999f12ca
mcp: migrate tests to expectJson
2026-03-03 14:40:20 +09:00
Adrià Arrufat
c8d5665653
mcp: use testing allocator in tests
2026-03-03 14:32:29 +09:00
Adrià Arrufat
6b80cd6109
mcp: namespace tests
2026-03-03 14:19:36 +09:00
Adrià Arrufat
6e7c8d7ae2
mcp: consolidate tests and streamline parameter parsing
2026-03-02 22:18:02 +09:00
Adrià Arrufat
78edf6d324
mcp: simplify I/O architecture and remove test harness
2026-03-02 21:25:07 +09:00
Adrià Arrufat
73565c4493
mcp: optimize dispatching and simplify test harness
...
- Use StaticStringMap and enums for method, tool, and resource lookups.
- Implement comptime JSON minification for tool schemas.
- Refactor router and harness to use more efficient buffered polling.
- Consolidate integration tests and add synchronous unit tests.
2026-03-02 20:53:14 +09:00
Adrià Arrufat
a7872aa054
mcp: improve robustness of server and test harness
...
- Refactor router and test harness for non-blocking I/O using buffered polling.
- Implement reliable test failure reporting from sub-threads to the main test runner.
- Encapsulate pipe management using idiomatic std.fs.File methods.
- Fix invalid JSON generation in resource streaming due to duplicate fields.
- Improve shutdown sequence for clean test exits.
2026-03-02 17:03:04 +09:00
Adrià Arrufat
64107f5957
mcp: refactor for testability and add comprehensive test suite
...
- Refactor mcp.Server and router to accept injected I/O streams.
- Implement McpHarness for high-fidelity MCP integration testing.
- Add unit tests for protocol, tools, and resources modules.
- Add integration tests covering initialization, tool/resource execution, and error handling.
- Improve error reporting for malformed JSON requests.
2026-03-02 15:52:05 +09:00
Adrià Arrufat
175488563e
mcp: remove browser message loop from processRequests
2026-03-02 12:25:33 +09:00
Adrià Arrufat
a91afab038
mcp: improve event loop and response handling
...
- Use an allocating writer in `sendResponse` to handle large payloads.
- Update the main loop to tick the HTTP client and cap poll timeouts.
- Update protocol version and minify tool input schemas.
2026-03-02 11:12:00 +09:00
Adrià Arrufat
41b81c8b05
mcp: use io poll for stdin and integrate message loop
...
Replaces blocking stdin reads with `std.io.poll` to allow macrotasks to
run. Removes the stdout mutex as I/O is now serialized.
2026-03-02 10:04:23 +09:00
Adrià Arrufat
42b5e32473
mcp: modernize I/O processing and reuse message buffer
2026-03-01 22:35:28 +09:00
Adrià Arrufat
952dfbef36
mcp: use acquire/release ordering for server running flag
2026-03-01 21:39:38 +09:00
Adrià Arrufat
8cbc58d257
mcp: unify error reporting and use named error codes
2026-03-01 21:29:59 +09:00
Adrià Arrufat
96942960a9
mcp: reuse arena allocator for message processing
2026-02-28 22:38:16 +09:00
Adrià Arrufat
8b0118e2c8
mcp: update logging scope to use mcp instead of app
2026-02-28 22:30:02 +09:00
Adrià Arrufat
5f9a7a5381
mcp: ignore unknown json fields and improve error reporting
2026-02-28 22:18:37 +09:00
Adrià Arrufat
6897d72c3e
mcp: simplify request processing to single-threaded
2026-02-28 21:26:51 +09:00
Adrià Arrufat
aae9a505e0
mcp: promot Server.zig to file struct
2026-02-28 21:02:49 +09:00
Adrià Arrufat
8c8a05b8c1
mcp: consolidate tests and cleanup imports
2026-02-26 00:02:49 +09:00
Adrià Arrufat
34d2fc1503
mcp: support notifications and improve error handling
...
Make Request id optional for JSON-RPC notifications and handle the
initialized event. Improve thread safety, logging, and error paths.
2026-02-25 23:14:06 +09:00
Adrià Arrufat
a27339b954
mcp: add Model Context Protocol server support
...
Adds a new `mcp` run mode to start an MCP server over stdio.
Implements tools for navigation and JS evaluation, along with
resources for HTML and Markdown page content.
2026-02-22 22:32:14 +09:00