更新README文件,增加对PromptX配置参数的详细说明,优化了启动命令的可读性和用户理解,确保用户能够更清晰地配置和使用PromptX服务。

This commit is contained in:
sean
2025-06-17 13:17:34 +08:00
parent 5fb6947e18
commit 5f081813a1
2 changed files with 32 additions and 16 deletions

View File

@ -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.