Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NACOS_HOST | No | Nacos server address (Nacos 服务地址) | localhost |
| NACOS_API_PORT | No | API port used for login (API 端口,用于登录) | 8848 |
| NACOS_PASSWORD | No | Password for authentication (密码) | |
| NACOS_USERNAME | No | Username for authentication (用户名) | |
| NACOS_NAMESPACE | No | Default namespace ID (默认命名空间 ID) | public |
| NACOS_READ_ONLY | No | Read-only mode, disables publishing functions (只读模式,禁用发布功能) | false |
| NACOS_CONSOLE_PORT | No | Console port used for configuration operations (Console 端口,用于配置操作) | 8080 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| nacos_get_config | 获取 Nacos 配置内容。 从 Nacos 配置中心获取指定的配置内容。
参数:
params: 包含以下内容的验证输入参数:
- data_id: 配置 ID
- group_name: 配置分组,默认 DEFAULT_GROUP
- namespace_id: 命名空间 ID,可选
- response_format: 输出格式,markdown 或 json
返回:
配置内容(Markdown 或 JSON 格式) |
| nacos_publish_config | 发布 Nacos 配置。 创建新配置或更新已有配置。
参数:
params: 包含以下内容的验证输入参数:
- data_id: 配置 ID
- group_name: 配置分组,默认 DEFAULT_GROUP
- namespace_id: 命名空间 ID,可选
- content: 配置内容
- config_type: 配置类型,默认 yaml
- desc: 配置描述,可选
返回:
发布结果
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |