@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/dist/index.mjs CHANGED
@@ -2112,6 +2112,14 @@ var DefaultMCPClient = class {
2112
2112
  }
2113
2113
  async onRequestMessage(request) {
2114
2114
  try {
2115
+ if (request.method === "ping") {
2116
+ await this.transport.send({
2117
+ jsonrpc: "2.0",
2118
+ id: request.id,
2119
+ result: {}
2120
+ });
2121
+ return;
2122
+ }
2115
2123
  if (request.method !== "elicitation/create") {
2116
2124
  await this.transport.send({
2117
2125
  jsonrpc: "2.0",