| 失效链接处理 |
|
AI架构Claude认证考试错题分析:工具设计与MCP集成领域高频考点及优化策略 PDF 下载
转载自:
相关截图:
![]() 主要内容: 原题完整内容 题目描述: Where should a team-wide MCP server configuration be placed so that it is version-controlled and shared across all developers on the project? 选项: • A. In ~/.claude.json in each developer's home directory. • B. In the project's .mcp.json file, committed to the repository. • C. In environment variables set on each developer's machine. • D. In the system prompt, as an inline JSON block that defines the server connection. 正确答案: B 我的答案 vs 正确答案 • 我的答案: A - ~/.claude.json (用户级配置) • 正确答案: B - .mcp.json (项目级配置) 深度分析 为什么 A 是错的? ~/.claude.json 是用户级(user-scoped)配置,存储在每个开发者的 home目录下。它有以下问题: • 无法版本控制(每个机器独立) • 需要每个开发者手动配置 • 团队间配置不一致的风险 • 仅适合个人或实验性服务器 为什么 B 是正确的? .mcp.json 是项目级(project-scoped)配置,放在仓库根目录: • 天然版本控制(提交到 Git) • 所有开发者自动共享 • 确保团队工具一致性 • 这是团队级集成的标准做法 其他选项为什么错? • C: 环境变量不是 MCP 的标准配置机制 • D: System prompt 不是 MCP 配置方式,MCP 使用专用配置文件 |


苏公网安备 32061202001004号
