Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AURAI_MODEL | No | 模型名称 (Model name) | |
| AURAI_API_KEY | No | API 密钥 (API Key) | |
| AURAI_BASE_URL | No | API 地址 (API Base URL, required when AURAI_PROVIDER is 'custom') | |
| AURAI_PROVIDER | No | 提供商 (AI Provider: zhipu, openai, anthropic, gemini, custom) | |
| AURAI_LOG_LEVEL | No | 日志级别 (Log level) | INFO |
| AURAI_MAX_TOKENS | No | 最大tokens (Max tokens) | 100000 |
| AURAI_MAX_HISTORY | No | 对话历史最大保存数 (Max history messages) | 50 |
| AURAI_TEMPERATURE | No | 温度参数 (Temperature) | 1.0 |
| AURAI_HISTORY_PATH | No | 历史文件路径 (History storage path) | ~/.mcp-aurai/history.json |
| AURAI_MAX_ITERATIONS | No | 最大迭代次数 (Max iterations) | 10 |
| AURAI_ENABLE_PERSISTENCE | No | 对话历史持久化 (Enable persistence) | true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| consult_aurai | 请求上级AI的指导(支持交互对齐机制与多轮对话) 这是核心工具,当本地AI遇到编程问题时调用此工具获取上级AI的指导建议。 🔗 相关工具
💡 重要提示:避免内容被截断 如果 优势:
[重要] 何时开始新对话?系统会自动检测,但你也可以手动控制:
何时设置
交互协议1. 多轮对齐机制
2. 首次调用必须提供:
3. 后续调用(当返回 status="need_info" 时)必须提供:
4. 诚实原则
响应格式信息不足时 (status="need_info")提供指导时 (status="success")问题解决后当 [自动] 新对话检测系统会自动检测新问题:
[重要] 明确标注新问题(可选参数)如果你想强制开始一个新对话,可以设置
示例: |
| sync_context | 同步代码上下文(支持上传 .md 和 .txt 文件,避免内容被截断) 在第一次调用或上下文发生重大变化时使用,让上级AI了解当前项目的整体情况。 🎯 典型使用场景 场景 1:上传文章供上级顾问评审场景 2:上传代码文件(避免内容被截断)⭐ 重要优势:
场景 3:项目首次初始化[注意] 文件上传限制files 参数只支持 .txt 和 .md 文件!
使用场景
Token优化当 project_info 中的单个字段超过 800 tokens 时,会自动:
参数说明
|
| report_progress | 报告执行进度,请求下一步指导 在执行了上级AI的建议后,调用此工具报告结果,获取下一步指导。 使用场景:执行上级 AI 建议后,报告执行结果并获取后续指导 参数:actions_taken(已执行的行动)、result(success/failed/partial)、new_error(新错误)、feedback(反馈) |
| get_status | 获取当前状态 返回当前对话状态、迭代次数、配置信息等。 返回内容:conversation_history_count(对话历史数量)、max_iterations(最大迭代次数)、max_history(最大历史条数)、provider(AI提供商)、model(模型名称) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |