From 92fa72c76fd7cce755c4d2601db7b868fb72fd0b Mon Sep 17 00:00:00 2001 From: Owlbay Date: Mon, 5 Oct 2026 16:04:25 +0800 Subject: [PATCH] fix(mcp): run the time preset with uvx mcp-server-time (#7863) The time preset ran npx -y @modelcontextprotocol/server-time, but that package does not exist on npm (404), so the server exited on start and clients reported the connection as closed. The official time server is published to PyPI as mcp-server-time; run it with uvx like the fetch preset, and update the preset name, the name placeholder and the user manual tables. --- docs/user-manual/en/3-extensions/3.1-mcp.md | 2 +- docs/user-manual/ja/3-extensions/3.1-mcp.md | 2 +- docs/user-manual/zh/3-extensions/3.1-mcp.md | 2 +- src/config/mcpPresets.ts | 6 ++++-- src/i18n/locales/en.json | 4 ++-- src/i18n/locales/ja.json | 4 ++-- src/i18n/locales/zh-TW.json | 4 ++-- src/i18n/locales/zh.json | 4 ++-- 8 files changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/user-manual/en/3-extensions/3.1-mcp.md b/docs/user-manual/en/3-extensions/3.1-mcp.md index 9d91f6996..41c0ded5d 100644 --- a/docs/user-manual/en/3-extensions/3.1-mcp.md +++ b/docs/user-manual/en/3-extensions/3.1-mcp.md @@ -33,7 +33,7 @@ Click the **MCP** icon button in the top navigation bar (its hover tooltip reads | Preset | Package Name | Description | |--------|-------------|-------------| | fetch | mcp-server-fetch | HTTP request tool that enables AI to fetch web content | -| time | @modelcontextprotocol/server-time | Time tool that provides current time information | +| time | mcp-server-time | Time tool that provides current time information | | memory | @modelcontextprotocol/server-memory | Memory tool that enables AI to store and retrieve information | | sequential-thinking | @modelcontextprotocol/server-sequential-thinking | Chain-of-thought tool that enhances AI reasoning | | context7 | @upstash/context7-mcp | Documentation search tool for querying technical docs | diff --git a/docs/user-manual/ja/3-extensions/3.1-mcp.md b/docs/user-manual/ja/3-extensions/3.1-mcp.md index 07348aa6d..d40937fdc 100644 --- a/docs/user-manual/ja/3-extensions/3.1-mcp.md +++ b/docs/user-manual/ja/3-extensions/3.1-mcp.md @@ -33,7 +33,7 @@ MCP (Model Context Protocol) は、AI ツールが外部データソースやツ | プリセット | パッケージ名 | 機能説明 | |------|------|----------| | fetch | mcp-server-fetch | HTTP リクエストツール、AI が Web コンテンツを取得可能に | -| time | @modelcontextprotocol/server-time | 時間ツール、現在の時刻情報を提供 | +| time | mcp-server-time | 時間ツール、現在の時刻情報を提供 | | memory | @modelcontextprotocol/server-memory | メモリツール、AI が情報を保存・検索可能に | | sequential-thinking | @modelcontextprotocol/server-sequential-thinking | 思考連鎖ツール、AI の推論能力を強化 | | context7 | @upstash/context7-mcp | ドキュメント検索ツール、技術ドキュメントをクエリ | diff --git a/docs/user-manual/zh/3-extensions/3.1-mcp.md b/docs/user-manual/zh/3-extensions/3.1-mcp.md index d7c6919de..4f0eeb15e 100644 --- a/docs/user-manual/zh/3-extensions/3.1-mcp.md +++ b/docs/user-manual/zh/3-extensions/3.1-mcp.md @@ -33,7 +33,7 @@ MCP (Model Context Protocol) 是一种协议,允许 AI 工具访问外部数 | 预设 | 包名 | 功能说明 | |------|------|----------| | fetch | mcp-server-fetch | HTTP 请求工具,让 AI 能够获取网页内容 | -| time | @modelcontextprotocol/server-time | 时间工具,提供当前时间信息 | +| time | mcp-server-time | 时间工具,提供当前时间信息 | | memory | @modelcontextprotocol/server-memory | 记忆工具,让 AI 能够存储和检索信息 | | sequential-thinking | @modelcontextprotocol/server-sequential-thinking | 思维链工具,增强 AI 推理能力 | | context7 | @upstash/context7-mcp | 文档搜索工具,查询技术文档 | diff --git a/src/config/mcpPresets.ts b/src/config/mcpPresets.ts index f5cfd16d2..19564f117 100644 --- a/src/config/mcpPresets.ts +++ b/src/config/mcpPresets.ts @@ -43,11 +43,13 @@ export const mcpPresets: McpPreset[] = [ }, { id: "time", - name: "@modelcontextprotocol/server-time", + name: "mcp-server-time", tags: ["stdio", "time", "utility"], + // 官方 time 服务器只发布在 PyPI(mcp-server-time),npm 上没有 @modelcontextprotocol/server-time server: { type: "stdio", - ...createNpxCommand("@modelcontextprotocol/server-time", ["-y"]), + command: "uvx", + args: ["mcp-server-time"], } as McpServerSpec, homepage: "https://github.com/modelcontextprotocol/servers", docs: "https://github.com/modelcontextprotocol/servers/tree/main/src/time", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 542685d38..75a09a8e9 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -2492,7 +2492,7 @@ "title": "MCP Title (Unique)", "titlePlaceholder": "my-mcp-server", "name": "Display Name", - "namePlaceholder": "e.g. @modelcontextprotocol/server-time", + "namePlaceholder": "e.g. mcp-server-time", "enabledApps": "Enable to Apps", "noAppsWarning": "At least one app must be selected", "description": "Description", @@ -2582,7 +2582,7 @@ "description": "Universal HTTP request tool, supports GET/POST and other HTTP methods, suitable for quick API requests and web data scraping" }, "time": { - "name": "@modelcontextprotocol/server-time", + "name": "mcp-server-time", "description": "Time query tool providing current time, timezone conversion, and date calculation features" }, "memory": { diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 688f825ca..f0c30ace8 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -2492,7 +2492,7 @@ "title": "MCP ID(ユニーク)", "titlePlaceholder": "my-mcp-server", "name": "表示名", - "namePlaceholder": "例: @modelcontextprotocol/server-time", + "namePlaceholder": "例: mcp-server-time", "enabledApps": "適用するアプリ", "noAppsWarning": "少なくとも 1 つ選択してください", "description": "説明", @@ -2582,7 +2582,7 @@ "description": "汎用 HTTP リクエストツール。GET/POST などに対応し、API テストや Web データ取得に最適です" }, "time": { - "name": "@modelcontextprotocol/server-time", + "name": "mcp-server-time", "description": "現在時刻、タイムゾーン変換、日付計算を提供する時間クエリツール" }, "memory": { diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index 1e76f6e66..e1bd6ed8e 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -2493,7 +2493,7 @@ "title": "MCP 標題(唯一)", "titlePlaceholder": "my-mcp-server", "name": "顯示名稱", - "namePlaceholder": "例如 @modelcontextprotocol/server-time", + "namePlaceholder": "例如 mcp-server-time", "enabledApps": "啟用至應用程式", "noAppsWarning": "至少選擇一個應用程式", "description": "描述", @@ -2583,7 +2583,7 @@ "description": "通用 HTTP 請求工具,支援 GET/POST 等 HTTP 方法,適合快速請求 API / 抓取網頁資料" }, "time": { - "name": "@modelcontextprotocol/server-time", + "name": "mcp-server-time", "description": "時間查詢工具,提供目前時間、時區轉換、日期計算等功能" }, "memory": { diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 815b17779..6ed3dfa38 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -2492,7 +2492,7 @@ "title": "MCP 标题(唯一)", "titlePlaceholder": "my-mcp-server", "name": "显示名称", - "namePlaceholder": "例如 @modelcontextprotocol/server-time", + "namePlaceholder": "例如 mcp-server-time", "enabledApps": "启用到应用", "noAppsWarning": "至少选择一个应用", "description": "描述", @@ -2582,7 +2582,7 @@ "description": "通用 HTTP 请求工具,支持 GET/POST 等 HTTP 方法,适合快速请求接口/抓取网页数据" }, "time": { - "name": "@modelcontextprotocol/server-time", + "name": "mcp-server-time", "description": "时间查询工具,提供当前时间、时区转换、日期计算等功能" }, "memory": {