@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 +6 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/tool/mcp-client.ts +9 -0
package/CHANGELOG.md
CHANGED
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",
|