@mcpcn/mcp-notification 1.0.5 → 1.0.6

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
3
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
4
  import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError } from '@modelcontextprotocol/sdk/types.js';
5
- const API_BASE = process.env.REMINDER_API_BASE || 'https://www.rapido.chat/api';
5
+ const API_BASE = process.env.REMINDER_API_BASE || 'https://www.mcpcn.cc/api';
6
6
  async function postJson(path, body, chatSessionId) {
7
7
  const headers = { 'Content-Type': 'application/json' };
8
8
  if (chatSessionId)
@@ -89,7 +89,9 @@ class ReminderServer {
89
89
  const args = request.params.arguments;
90
90
  const chatSessionId = request?.meta?.chatSessionId ??
91
91
  request?.params?.meta?.chatSessionId ??
92
- request?.params?.arguments?.meta?.chatSessionId;
92
+ request?.params?.arguments?.meta?.chatSessionId ??
93
+ request?.params?.arguments?.chatSessionId ??
94
+ request?.params?.chatSessionId;
93
95
  if (!chatSessionId) {
94
96
  console.error('未在请求中检测到 chatSessionId(meta.chatSessionId)');
95
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpcn/mcp-notification",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "系统通知MCP服务器",
5
5
  "packageManager": "yarn@1.22.22",
6
6
  "main": "dist/index.js",