mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
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.
This commit is contained in:
@@ -2,7 +2,7 @@ const std = @import("std");
|
||||
|
||||
pub const Request = struct {
|
||||
jsonrpc: []const u8 = "2.0",
|
||||
id: std.json.Value,
|
||||
id: ?std.json.Value = null,
|
||||
method: []const u8,
|
||||
params: ?std.json.Value = null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user