From 5f081813a15ce07d548287fea8fccdc07145c18c Mon Sep 17 00:00:00 2001 From: sean Date: Tue, 17 Jun 2025 13:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0README=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=AF=B9PromptX=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=9A=84=E8=AF=A6=E7=BB=86=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BA=86=E5=90=AF=E5=8A=A8=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E7=9A=84=E5=8F=AF=E8=AF=BB=E6=80=A7=E5=92=8C=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=90=86=E8=A7=A3=EF=BC=8C=E7=A1=AE=E4=BF=9D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=83=BD=E5=A4=9F=E6=9B=B4=E6=B8=85=E6=99=B0=E5=9C=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=92=8C=E4=BD=BF=E7=94=A8PromptX=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 24 ++++++++++++++++-------- README_EN.md | 24 ++++++++++++++++-------- 2 files changed, 32 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 9cafeea..ffca7ab 100644 --- a/README.md +++ b/README.md @@ -70,22 +70,30 @@ PromptX 目前处于 **初始开发阶段**,我们正在积极完善功能和 { "mcpServers": { "promptx": { - // 指定使用 npx 运行 promptx 服务 "command": "npx", - // 启动参数配置 "args": [ - "-y", // 自动确认 - "-f", // 强制刷新缓存 - "--registry", // 指定镜像源 - "https://registry.npmjs.org", // 使用官方镜像 - "dpml-prompt@beta", // 使用稳定测试版 - "mcp-server" // 启动服务 + "-y", + "-f", + "--registry", + "https://registry.npmjs.org", + "dpml-prompt@beta", + "mcp-server" ] } } } ``` +**配置参数说明:** +- `command`: 指定使用 npx 运行 promptx 服务 +- `args`: 启动参数配置列表 + - `-y`: 自动确认 + - `-f`: 强制刷新缓存 + - `--registry`: 指定镜像源 + - `https://registry.npmjs.org`: 使用官方镜像 + - `dpml-prompt@beta`: 使用稳定测试版 + - `mcp-server`: 启动服务 + **🎯 就这么简单!** 保存文件并重启您的AI应用,PromptX 就已成功激活。 > **💡 提示:** 配置中特意指定了官方镜像源 `registry.npmjs.org`,这可以避免因使用非官方镜像导致的安装问题。如果您发现安装很慢,建议使用代理工具加速,而不是切换到其他镜像源。 diff --git a/README_EN.md b/README_EN.md index e2e237f..b66f2b9 100644 --- a/README_EN.md +++ b/README_EN.md @@ -70,22 +70,30 @@ Open your configuration file and copy the `promptx` configuration code below. Th { "mcpServers": { "promptx": { - // Use npx to run promptx service "command": "npx", - // Startup parameters configuration "args": [ - "-y", // Auto-confirm - "-f", // Force refresh cache - "--registry", // Specify registry - "https://registry.npmjs.org", // Use official registry - "dpml-prompt@beta", // Use stable beta version - "mcp-server" // Start service + "-y", + "-f", + "--registry", + "https://registry.npmjs.org", + "dpml-prompt@beta", + "mcp-server" ] } } } ``` +**Configuration Parameters:** +- `command`: Specifies using npx to run promptx service +- `args`: Startup parameters configuration list + - `-y`: Auto-confirm + - `-f`: Force refresh cache + - `--registry`: Specify registry source + - `https://registry.npmjs.org`: Use official registry + - `dpml-prompt@beta`: Use stable beta version + - `mcp-server`: Start service + **🎯 It's that simple!** Save the file and restart your AI application, and PromptX is successfully activated. > **💡 Tip:** The configuration specifically uses the official registry `registry.npmjs.org` to avoid installation issues caused by unofficial mirrors. If you find the installation slow, it's recommended to use a proxy tool for acceleration rather than switching to alternative mirrors.