@mcpcn/mcp-notification 1.0.19 → 1.0.20
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.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -200,6 +200,10 @@ class ReminderServer {
|
|
|
200
200
|
})
|
|
201
201
|
.passthrough();
|
|
202
202
|
this.server.setRequestHandler(CallToolWithMetaSchema, async (request) => {
|
|
203
|
+
try {
|
|
204
|
+
console.error('CallToolRequest raw:', JSON.stringify(request));
|
|
205
|
+
}
|
|
206
|
+
catch { }
|
|
203
207
|
try {
|
|
204
208
|
if (!request.params.arguments || typeof request.params.arguments !== 'object') {
|
|
205
209
|
throw new McpError(ErrorCode.InvalidParams, '无效的参数');
|