| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 天前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 4 天前 | ||
| 2 个月前 | ||
| 19 天前 | ||
| 20 天前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 20 天前 |
msAgent Local Config
This directory stores project-local runtime configuration for msagent.
config.agents.yml: agent selection and defaultsconfig.llms.yml: LLM aliases and provider settingsconfig.mcp.json: MCP server configuration, includingmsprof-mcpconfig.approval.json: deepagents Human-in-the-Loop (interrupt_on) plus fine-graineddecision_rulesskills/: project-local skills loaded in addition to the bundled default skillssandboxes/: sandbox profiles used by tools and MCP servers
These files are copied into ./.msagent/ on first run.
Tavily API key setup
This README is the single source of truth for Tavily MCP configuration in the default local config template.
If you enable tavily-mcp in config.mcp.json, the recommended default is to load TAVILY_API_KEY from an existing environment variable instead of writing the key directly into the file.
Example:
{
"mcpServers": {
"tavily-mcp": {
"command": "npx",
"args": ["-y", "tavily-mcp@latest"],
"transport": "stdio",
"env": {
"TAVILY_API_KEY": "${TAVILY_API_KEY}"
},
"enabled": true,
"stateful": true,
"repair_timeout": 30,
"invoke_timeout": 120.0
}
}
}
This keeps the secret out of the repo and out of copied local config files. If you must use an inline value temporarily, prefer changing it only in your private local environment and avoid committing it.
Recommended steps:
- Get your Tavily API key from the Tavily dashboard.
- Export
TAVILY_API_KEYin your shell or user environment. - Open
.msagent/config.mcp.json. - Find the
tavily-mcpserver entry. - Keep
TAVILY_API_KEYunderenvas"${TAVILY_API_KEY}". - Restart the
msagentsession so the MCP server is started again with the new environment.
Notes:
- If
tavily-mcpis enabled but noTAVILY_API_KEYis available, Tavily behavior depends on the MCP server implementation and runtime environment. - In the default template,
TAVILY_API_KEYintentionally references the process environment so secrets do not need to live inconfig.mcp.json. - In this project, when Tavily is enabled and the key validates successfully, Tavily tools are preferred over the built-in
web_search. - When the key is missing, invalid, or cannot be validated, the built-in
web_searchis kept as a fallback tool.