deepseek-websearch-mcp 1.0.1 → 1.0.2

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/package.json +1 -1
  2. package/server.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepseek-websearch-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "DeepSeek 官方 Search/Fetch API 的 MCP server(官方 SDK 构建,webSearch/webFetch 双工具,支持时效过滤与结构化输出)",
5
5
  "type": "module",
6
6
  "bin": {
package/server.mjs CHANGED
@@ -60,7 +60,7 @@ function freshnessToOps(freshness) {
60
60
 
61
61
  /** 调用 DeepSeek 工具接口,返回 { data, ms };非 2xx 抛 Error(带中文提示) */
62
62
  async function apiPost(path, payload) {
63
- const key = (process.env.DEEEPSEEK_API_KEY || "").trim();
63
+ const key = (process.env.DEEPSEEK_API_KEY || "").trim();
64
64
  if (!key) {
65
65
  throw new Error("未配置 DEEPSEEK_API_KEY 环境变量。请在 MCP 注册配置的 env 中填入 platform.deepseek.com 申请的 API Key。");
66
66
  }
@@ -246,7 +246,7 @@ function createServer() {
246
246
  }
247
247
 
248
248
  function readConfig() {
249
- if (!process.env.DEEEPSEEK_API_KEY) {
249
+ if (!process.env.DEEPSEEK_API_KEY) {
250
250
  // 与 SDK 错误口径一致:启动期直接失败并给出中文指引
251
251
  throw new Error("未配置 DEEPSEEK_API_KEY 环境变量。请在 MCP 注册配置的 env 中填入 platform.deepseek.com 申请的 API Key。");
252
252
  }