@yyaylt/zhipu-web-search-mcp-server 1.0.6 → 1.0.8

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/README.md +11 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # zhipu-web-search-mcp-server
2
2
 
3
- 基于智谱开放平台 [Web Search API](https://docs.bigmodel.cn/cn/guide/tools/web-search) 实现的 MCP 服务器,为 opencode 等 MCP 客户端提供网络搜索能力。
3
+ 基于智谱开放平台 [Web Search API](https://docs.bigmodel.cn/cn/guide/tools/web-search) 实现的 MCP 服务器,为 Codex、opencode 等 MCP 客户端提供网络搜索能力。
4
4
 
5
5
  ## 功能特性
6
6
 
@@ -34,6 +34,16 @@ npm install
34
34
  npm run build
35
35
  ```
36
36
 
37
+ ## 在 Codex 中使用
38
+
39
+ Codex 通过 stdio 连接本地 MCP 服务器。使用 `codex mcp add` 添加并传入 API Key:
40
+
41
+ ```bash
42
+ codex mcp add zhipu-web-search --env ZHIPU_API_KEY=your_api_key_here -- npx -y @yyaylt/zhipu-web-search-mcp-server
43
+ ```
44
+
45
+ Windows 下若客户端无法直接执行 `npx`,可将启动命令改为 `cmd /c npx -y @yyaylt/zhipu-web-search-mcp-server`。添加后重启 Codex,即可在会话中调用 `zhipu_web_search` 工具。
46
+
37
47
  ## 配置
38
48
 
39
49
  通过环境变量 `ZHIPU_API_KEY` 提供 API Key:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yyaylt/zhipu-web-search-mcp-server",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "MCP server for ZHIPU AI Web Search API integration",
5
5
  "keywords": [
6
6
  "zhipu",