Amp CLI 支持工作区级设置
Workspace Settings - Amp
Amp CLI 现在支持通过项目目录中的 .amp/settings.json 文件配置工作区级设置,包括权限、MCP 服务器等,运行 amp 时自动加载并与全局设置合并。
正文
当前显示原文,中文全文译文尚未就绪。
The Amp CLI now supports workspace-specific settings via .amp/settings.json files in your project directory.
This allows you to configure the Amp CLI differently for each project, with settings like permissions, MCP servers, and other preferences automatically picked up when you run amp in that workspace.
For example, here's how you can configure the Amp CLI to use a specific MCP server in a given project:
Due to the --workspace flag, the setting was added in the .amp/settings.json file in my-project:
When you then run amp in my-project, the settings in .amp/settings.json will be merged with your global Amp settings.
See the manual for details on how settings are resolved.