internal/mcp: add batching support
Update the jsonrpc2 MCP framer to support both incoming and outgoing batches. In order to achieve this, we must correlate the framed Reader and Writer, which is not explicitly supported by the jsonrpc2 API, but does work. A note is left to revisit the Framer interface. Change-Id: If060cb5822da067833db20d58f5f112a0528da91 Reviewed-on: https://go-review.googlesource.com/c/tools/+/667295 Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
34cc770852
commit
1204b93a85
1 changed files with 324 additions and 12 deletions
|
|
@ -19,5 +19,4 @@
|
|||
// - Support multiple versions of the spec.
|
||||
// - Implement proper JSON schema support, with both client-side and
|
||||
// server-side validation..
|
||||
// - Support batched JSON messages.
|
||||
package mcp
|
||||
|
|
|
|||
Loading…
Reference in a new issue