junobuild mcp服务器
非官方 MCP服务器 朱诺。不隶属于朱诺团队或得到朱诺团队的认可。
通过任何兼容MCP的客户端管理卫星、托管、无服务器功能、更改等。包括一个内置的文档工具,用于访问朱诺的官方指南和参考资料。
特性
- 16工具 跨6个域--CLI覆盖了标识、配置、托管、功能、更改和文档
- 进度流 --长时间运行的操作(部署、发布、升级)通过MCP进度通知发出实时进度更新
- 自动重试 --依赖网络的操作可以在出现指数回退的瞬态故障时重试
- CLI二进制缓存 --决议
juno一次二进制路径,消除每次调用的npx开销 - 智能错误处理 --所有工具都会传播
isError基于CLI退出代码,带有干净的错误消息 - 配置文件写入 —
juno_config_init可以将配置文件直接写入磁盘 - 文档缓存 --文档响应缓存1小时以减少延迟
客户端设置
请在下面选择您的AI编码代理,以获取具体的设置说明。
克劳德代码
CLI(推荐):
claude mcp add junobuild npx -y junobuild-mcp-server配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.claude/mcp.json |
| 项目 | .mcp.json |
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}法典
CLI:
codex mcp add junobuild -- npx -y junobuild-mcp-server配置文件:
| 范围 | 位置 |
|---|---|
| 全球 | ~/.codex/config.toml |
| 项目 | .codex/config.toml |
[mcp_servers.junobuild]
command = "npx"
args = ["-y", "junobuild-mcp-server"]开源代码
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.opencode/opencode.json (Linux/macOS) |
| 工作区 | opencode.json (项目根) |
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}Droid工厂
CLI:
droid mcp add junobuild npx -y junobuild-mcp-server配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.factory/mcp.json |
| 项目 | .factory/mcp.json |
{
"mcpServers": {
"junobuild": {
"type": "stdio",
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}反重力
使用a 权力 具有自定义配置的系统。
配置文件:
| 范围 | 位置 |
|---|---|
| 工作区 | .antigravity/powers/ 或项目配置 |
将MCP服务器配置添加到您的电源中 mcp.json:
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}注: 看 反重力MCP文件 用于全功率设置。
光标
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.cursor/mcp.json |
| 项目 | .cursor/mcp.json |
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}放大器代码
CLI:
amp mcp add junobuild -- npx -y junobuild-mcp-server配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.config/amp/settings.json (macOS/Linux) |
| 工作区 | .amp/settings.json |
{
"amp.mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}注: 工作区MCP服务器需要通过以下方式获得批准 amp mcp approve .
VSCode
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.config/Code/User/mcp.json (Linux) |
| 工作区 | .vscode/mcp.json |
{
"servers": {
"junobuild": {
"type": "stdio",
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}帆板运动
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.codeium/windsurf/mcp_config.json |
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}基罗
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.kiro/settings/mcp.json |
| 工作区 | .kiro/settings/mcp.json |
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}基洛代码
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | ~/.config/Kilo Code/User/mcp.json |
| 项目 | .vscode/mcp.json |
{
"servers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}克莱恩
配置文件:
| 范围 | 位置 |
|---|---|
| 用户 | cline_mcp_settings.json (在配置目录中) |
{
"mcpServers": {
"junobuild": {
"command": "npx",
"args": ["-y", "junobuild-mcp-server"]
}
}
}______________________________________________________________________
对Juno CLI进行身份验证
服务器包装 @junobuild/cli,必须安装并验证:
npm i -g @junobuild/cli
juno login对于非交互式环境(CI、无头),设置 JUNO_TOKEN 环境变量或使用 --mode 和 --profile 每个工具上都有可用的标志。
环境变量
对于非交互式环境(CI、headless),使用环境变量进行身份验证:
export JUNO_TOKEN="your-juno-token"注: 这 juno_create_project 工具不使用交互式 create-juno CLI。相反,它:
- 构建Vite项目(React、Next.js、Svelte、Angular或Vue)
- 创建一个
juno.config.ts文件
这允许完全非交互式的项目创建。
文档访问
这 juno_docs 该工具直接从 ,响应缓存1小时:
juno_docs({ topic: "build_datastore" }) → Datastore guide
juno_docs({ topic: "build_authentication" }) → Authentication overview
juno_docs({ topic: "reference_cli" }) → CLI reference
juno_docs({ topic: "guides_local_development" }) → Local development guide主题键使用下划线命名匹配文件夹层次结构: build_, reference_cli_, guides_.完整列表:请参阅 TODO.md 共159个主题。
工具
| 域 | 工具 |
|---|---|
| 身份 | juno_version, juno_run, juno_status |
| 配置 | juno_config_init, juno_config_apply, juno_create_project |
| 托管 | juno_hosting_deploy, juno_hosting_clear, juno_hosting_prune |
| 函数 | juno_functions_build, juno_functions_eject, juno_functions_publish, juno_functions_upgrade |
| 变化 | juno_changes_list, juno_changes_apply, juno_changes_reject |
| 文档 | juno_docs |
关键参数
有几个工具支持可选参数,以提高可靠性和用户体验:
| 参数 | 类型 | 工具 | 说明 |
|---|---|---|---|
retry | boolean | 部署、发布、升级 | 在短暂的网络故障时自动重试(最多3次尝试,指数回退:1秒→ 2s → 4s) |
progress | boolean | 部署、发布、升级 | 在长时间运行的操作期间流式传输实时进度更新(构建状态+上传批处理进度) |
writeFile | boolean | juno_config_init | 将配置文件直接写入磁盘,而不是返回文本进行预览 |
先决条件
- Node.js >= 18
- @junobuild/cli --已安装并经过身份验证(不需要
juno_version或juno_docs) - 朱诺项目
juno.config.ts/js/json(用于配置/托管操作)
发展
npm run build # Compile TypeScript to dist/
npm run dev # Watch mode (development)
npm run start # Run compiled dist/index.js
npm run clean # Remove dist/出版
npm run changeset # Create a changeset (version bump + changelog entry)
npm run version # Apply changesets → bump version
npm run release # Publish to npm许可证
麻省理工学院
