# 在 Claude Code 中安装 threefold

连接到 `https://api.threefold.eco/mcp`。身份验证及实际支持情况取决于客户端；当前的设置方法和替代方案请参阅[安装指南](https://threefold.eco/docs/install.md)。

## Claude Code 设置

```sh
claude mcp add --transport http --scope user threefold https://api.threefold.eco/mcp
```

如需使用 API 密钥而非浏览器登录：

```sh
claude mcp add --transport http --scope user threefold https://api.threefold.eco/mcp \
  --header "Authorization: Bearer tf_live_your_key"
```

对应的代码库插件内置技能；详情请参阅[智能体安装](https://threefold.eco/docs/install.md)。

如果 `npx threefold` 提示软件包不存在，请改用这些针对各客户端的设置。托管服务器无法读取本地代码库文件；如需本地检查，请使用本地 stdio 或 CLI。
