@ai-sdk/mcp 1.0.44 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 1.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - ec5fceb: fix(mcp): respond to ping requests with an empty result per JSON-RPC spec (closes #6282)
8
+
3
9
  ## 1.0.44
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2138,6 +2138,14 @@ var DefaultMCPClient = class {
2138
2138
  }
2139
2139
  async onRequestMessage(request) {
2140
2140
  try {
2141
+ if (request.method === "ping") {
2142
+ await this.transport.send({
2143
+ jsonrpc: "2.0",
2144
+ id: request.id,
2145
+ result: {}
2146
+ });
2147
+ return;
2148
+ }
2141
2149
  if (request.method !== "elicitation/create") {
2142
2150
  await this.transport.send({
2143
2151
  jsonrpc: "2.0",