@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. 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, '无效的参数');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpcn/mcp-notification",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "系统通知MCP服务器",
5
5
  "packageManager": "yarn@1.22.22",
6
6
  "main": "dist/index.js",