Skip to content

Commit 9fa9ddb

Browse files
committed
docs: update README for Node.js version requirement and environment variable defaults
1 parent 46b85ff commit 9fa9ddb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The LeetCode MCP Server is a [Model Context Protocol (MCP)](https://modelcontext
2323

2424
## Prerequisites
2525

26-
1. Node.js runtime environment
26+
1. Node.js (v20.x or above)
2727
2. (Optional) LeetCode session cookie for authenticated API access
2828

2929
## Installation
@@ -118,10 +118,10 @@ For LeetCode China site, modify the `--site` parameter to `cn`.
118118

119119
> [!TIP]
120120
>
121-
> The server supports the following environment variables:
121+
> The server supports the following optional environment variables:
122122
>
123-
> - `LEETCODE_SITE`: LeetCode API endpoint ('global' or 'cn')
124-
> - `LEETCODE_SESSION`: LeetCode session cookie for authenticated API access
123+
> - `LEETCODE_SITE`: LeetCode API endpoint ('global' or 'cn', default: 'global')
124+
> - `LEETCODE_SESSION`: LeetCode session cookie for authenticated API access (default: empty)
125125
>
126126
> **Priority Note**:
127127
> Command-line arguments take precedence over environment variables when both are specified. For example:

README_zh-CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LeetCode MCP Server 是一个基于 [模型上下文协议 (MCP)](https://modelc
2323

2424
## 前提条件
2525

26-
1. Node.js 运行环境
26+
1. Node.js (v20.x 或更高版本)
2727
2. (可选)LeetCode 会话 cookie,用于授权访问 API
2828

2929
## 安装
@@ -118,10 +118,10 @@ node build/index.js --site cn
118118

119119
> [!TIP]
120120
>
121-
> 服务支持以下环境变量
121+
> 服务支持以下可选的环境变量
122122
>
123-
> - `LEETCODE_SITE`:LeetCode API 端点('global' 或 'cn')
124-
> - `LEETCODE_SESSION`:用于授权 API 访问的 LeetCode 会话 cookie
123+
> - `LEETCODE_SITE`:LeetCode API 端点('global' 或 'cn',默认为 'global'
124+
> - `LEETCODE_SESSION`:用于授权 API 访问的 LeetCode 会话 cookie(默认为空)
125125
>
126126
> **优先级说明**
127127
>

0 commit comments

Comments
 (0)