Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b002e3

Browse files
committed
docs: add nginx_config_enable tool documentation
1 parente96490c commit7b002e3

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

‎docs/guide/mcp-config.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ The MCP Configuration File Management module provides a set of tools and resourc
4646
- Type:`tool`
4747
- Name:`nginx_config_history`
4848

49+
###Enable Configuration File
50+
51+
- Type:`tool`
52+
- Name:`nginx_config_enable`
53+
- Description: Enable a previously created Nginx configuration (creates symlink in sites-enabled)
54+
4955
##Usage Examples
5056

5157
Here are some examples of using MCP Configuration File Management features:
@@ -120,6 +126,30 @@ Example response:
120126
}
121127
```
122128

129+
###Enable Configuration File
130+
131+
```json
132+
{
133+
"tool":"nginx_config_enable",
134+
"parameters": {
135+
"name":"my-site.conf",
136+
"base_dir":"sites-available",
137+
"overwrite":false
138+
}
139+
}
140+
```
141+
142+
Example response:
143+
144+
```json
145+
{
146+
"status":"success",
147+
"message":"Site enabled and Nginx reloaded successfully",
148+
"source":"/etc/nginx/sites-available/my-site.conf",
149+
"destination":"/etc/nginx/sites-enabled/my-site.conf"
150+
}
151+
```
152+
123153
##Important Notes
124154

125155
- All path operations are relative to the Nginx configuration base path

‎docs/zh_CN/guide/mcp-config.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@ MCP 配置文件管理模块提供了一系列工具和资源,用于管理 Ngi
5353
- 类型:`tool`
5454
- 名称:`nginx_config_history`
5555
- 描述:获取配置文件的修改历史记录
56+
57+
###启用配置文件
58+
59+
- 类型:`tool`
60+
- 名称:`nginx_config_enable`
61+
- 描述:启用之前创建的 Nginx 配置文件(在 sites-enabled 中创建符号链接)

‎docs/zh_TW/guide/mcp-config.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ MCP 配置文件管理模組提供了一系列工具和資源,用於管理 Ngi
4646
- 類型:`tool`
4747
- 名稱:`nginx_config_history`
4848

49+
###啟用配置文件
50+
51+
- 類型:`tool`
52+
- 名稱:`nginx_config_enable`
53+
- 描述:啟用之前創建的 Nginx 配置文件(在 sites-enabled 中創建符號連結)
54+
4955
##使用示例
5056

5157
以下是一些使用 MCP 配置文件管理功能的示例:
@@ -120,6 +126,30 @@ MCP 配置文件管理模組提供了一系列工具和資源,用於管理 Ngi
120126
}
121127
```
122128

129+
###啟用配置文件
130+
131+
```json
132+
{
133+
"tool":"nginx_config_enable",
134+
"parameters": {
135+
"name":"my-site.conf",
136+
"base_dir":"sites-available",
137+
"overwrite":false
138+
}
139+
}
140+
```
141+
142+
返回結果示例:
143+
144+
```json
145+
{
146+
"status":"success",
147+
"message":"Site enabled and Nginx reloaded successfully",
148+
"source":"/etc/nginx/sites-available/my-site.conf",
149+
"destination":"/etc/nginx/sites-enabled/my-site.conf"
150+
}
151+
```
152+
123153
##注意事項
124154

125155
- 所有路徑操作都是相對於 Nginx 配置基礎路徑的

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp