Warp Ozbridge

io.github.sena-labs由 GitHub 账号 sena-labs 发布v2.0.0更新于 Oct 29, 2026

OzBridge: run Warp Oz agents from any MCP client — Claude Code, Cursor, Codex, VS Code.

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

该 MCP 服务器通过调用本机 oz 命令行,让任意 MCP 客户端启动并查看 Warp Oz 智能体运行。

可以做什么
  • 用提示词在本地运行 Oz 智能体并取回完整运行结果
  • 启动云端 Oz 运行,并按 id 列出、筛选或查询运行状态
  • 列出账户可用的 AI 模型 id 及当前默认模型
  • 把默认 Oz 模型写入工作区的桥接配置文件
  • 以 stdio 或 Streamable HTTP 方式提供同一组六个工具,并提供健康检查路由
适用场景
适合已经使用 Warp Oz、希望从 Claude Code、Cursor、Codex、Windsurf 等 MCP 客户端启动、监控和配置 Oz 智能体运行,而不想依赖 VS Code 扩展的用户。
运行要求
需要 Node.js 22.12 或更高版本;Oz CLI 已安装并在 PATH 中,或通过 OZ_PATH 指定;需先在终端执行一次 oz login 登录 Warp。通过 npx 在本机运行,可由宿主以 stdio 启动,或默认监听 127.0.0.1:3847。可选配置包括 OZ_MCP_PORT、OZ_MCP_BIND、OZ_MCP_TOKEN、OZ_DEFAULT_MODEL、OZ_DEFAULT_PROFILE、OZ_DEFAULT_ENV、OZ_TIMEOUT_MS 和 OZ_IDLE_TIMEOUT_MS。
安装前请注意
云端运行会消耗 Warp 额度,可能产生费用。服务器能够启动 Oz CLI,因此未设置令牌时拒绝绑定非回环地址;设置 OZ_MCP_TOKEN 或 --token 后,包括健康检查在内的所有请求都需携带 Authorization Bearer 头。服务不提供 TLS,如需 HTTPS 应置于带认证的反向代理之后。设置默认模型会写入工作区的 .warp/warp-bridge.yaml。提示词与运行输出会转发给 Oz CLI。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Warp Ozbridge,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@sena-labs/oz-mcp-server

Standalone Model Context Protocol server for Warp™ Oz™ agents — no VS Code required. Run it from a terminal and drive Oz from Claude Code, Cursor, Codex, or any MCP client.

OzBridge is an independent project and is not affiliated with, endorsed by, or sponsored by Warp. "Warp" and "Oz" are trademarks of Warp, Inc., used here nominatively — solely to describe interoperability. See Trademarks & disclaimer below.

This package is the VS Code‑free sibling of the OzBridge extension. It exposes the same MCP tool surface (six tools: oz_agent_run, oz_run_list, …) over stdio or Streamable HTTP, so any MCP client can launch and inspect Oz runs.


Requirements

  • Node.js ≥ 22.12
  • The Oz CLI installed and on your PATH (or pointed at via OZ_PATH). Download Warp from https://www.warp.dev/download — the oz command ships with it (on Linux typically ~/.warp/bin/oz). Verify with oz --version.
  • Signed in to Warp: run oz login once in a terminal.

The server only ever shells out to the documented oz CLI; it does not embed, modify, or reverse‑engineer any Warp software.


Quick start (stdio — recommended)

Let your MCP client spawn the server over stdio — no install step, no port, no token, and no terminal to keep open.

Claude Code:

bash
claude mcp add oz -- npx -y @sena-labs/oz-mcp-server --stdio

Codex CLI — add to ~/.codex/config.toml:

toml
[mcp_servers.oz]command = "npx"args = ["-y", "@sena-labs/oz-mcp-server", "--stdio"]

Cursor / Windsurf / Claude Desktop — add to ~/.cursor/mcp.json (Cursor), ~/.codeium/windsurf/mcp_config.json (Windsurf) or claude_desktop_config.json (Claude Desktop):

json
{  "mcpServers": {    "oz": {      "command": "npx",      "args": ["-y", "@sena-labs/oz-mcp-server", "--stdio"]    }  }}

HTTP mode

To run a long-lived server that clients reach by URL instead:

bash
npx -y @sena-labs/oz-mcp-server

It binds to 127.0.0.1:3847. Leave it running, then point your MCP client at the Streamable HTTP endpoint http://127.0.0.1:3847/mcp — see MCP client setup (HTTP). The legacy HTTP+SSE endpoint /sse is still served but deprecated.

Pin a port and a bearer token instead of the defaults:

bash
npx -y @sena-labs/oz-mcp-server --port 3847 --token my-secret

Install it globally if you'd rather not re‑download on each run:

bash
npm install -g @sena-labs/oz-mcp-serveroz-mcp-server --help

Configuration

Settings resolve in this order (highest precedence first):

  1. CLI flags
  2. Environment variables
  3. ./.warp/warp-bridge.yaml (current working directory), then ~/.warp/warp-bridge.yaml
  4. Compiled‑in defaults

CLI flags

FlagDefaultPurpose
--port <n>3847TCP port to listen on. 0 lets the OS pick an ephemeral port.
--bind <addr>127.0.0.1Interface to bind. Non‑loopback requires a token (see Security).
--token <s>(none)Bearer token required on every request. Empty = no auth.
--cwd <dir>process.cwd()Workspace root for .warp/warp-bridge.yaml discovery.
--help, -h—Print usage and exit.

Environment variables

VariableMaps toDefaultPurpose
OZ_PATHozPathozPath to the Oz CLI binary. Bare oz resolves from PATH.
OZ_MCP_PORTport3847Listening port. 0 = OS‑assigned ephemeral port.
OZ_MCP_BINDbind address127.0.0.1Interface to bind (loopback only by default).
OZ_MCP_TOKENbearer token(empty)Bearer token required on every request. Empty disables auth.
OZ_DEFAULT_MODELdefaultModelautoDefault AI model for runs.
OZ_DEFAULT_PROFILEdefaultProfileDefaultDefault Oz agent profile.
OZ_DEFAULT_ENVdefaultEnvironment(empty)Default cloud environment id.
OZ_TIMEOUT_MSlocal run timeout300000Hard timeout for local runs (ms).
OZ_IDLE_TIMEOUT_MSidle timeout90000Abort a run after this long with no CLI output (ms). 0 disables.
bash
OZ_PATH=/usr/local/bin/oz \OZ_MCP_PORT=3847 \OZ_MCP_TOKEN=my-secret \npx -y @sena-labs/oz-mcp-server

On Windows PowerShell, set variables with $env: first:

powershell
$env:OZ_MCP_TOKEN = "my-secret"; npx -y @sena-labs/oz-mcp-server

Transports

The server speaks MCP over two transports:

  • stdio (--stdio) — the host spawns the server as a child process and exchanges JSON-RPC over stdin/stdout. Recommended for Claude Code, Codex, Cursor, Windsurf, Claude Desktop, mcp-proxy, and registry sandboxes (e.g. Glama). No port, no token. See Quick start.
  • Streamable HTTP (default when --stdio is not passed) — the server listens on a port and clients connect by URL to /mcp. The older HTTP + SSE transport (/sse + /messages) is still served for legacy clients but is deprecated.
bash
# stdio (spawned by the host)npx -y @sena-labs/oz-mcp-server --stdio
# HTTP (default) — endpoint http://127.0.0.1:3847/mcpnpx -y @sena-labs/oz-mcp-server --port 3847

MCP client setup (HTTP)

For URL-based clients, start the server in HTTP mode (above), then add the endpoint to your client. These snippets mirror docs/MCP.md.

Claude Code

bash
claude mcp add --transport http oz http://127.0.0.1:3847/mcp

Cursor / Windsurf

Add to ~/.cursor/mcp.json (or ~/.codeium/windsurf/mcp_config.json):

json
{  "mcpServers": {    "oz": {      "url": "http://127.0.0.1:3847/mcp"    }  }}

Codex CLI

Add to ~/.codex/config.toml:

toml
[mcp_servers.oz]url = "http://127.0.0.1:3847/mcp"

If you set a token

With --token / OZ_MCP_TOKEN, every request needs an Authorization: Bearer <token> header:

  • Claude Code: append --header "Authorization: Bearer <token>" to claude mcp add.
  • Cursor / Windsurf: add "headers": { "Authorization": "Bearer <token>" } next to "url".
  • Codex: add http_headers = { "Authorization" = "Bearer <token>" } under [mcp_servers.oz].

Tools exposed

ToolPurpose
oz_agent_runRun oz agent run locally with a prompt. Returns the full run payload.
oz_agent_run_cloudLaunch a cloud run. Consumes Warp credits.
oz_run_getFetch a run's status and output by id. Read‑only.
oz_run_listList recent runs; filter by all / active / completed / raw status, plus a numeric limit.
oz_list_modelsList the AI model ids available to the account and report the current default. Read‑only.
oz_set_default_modelSet the default Oz model by writing defaultModel into the workspace .warp/warp-bridge.yaml.

The full JSON inputSchema for each tool is emitted verbatim by tools/list. See docs/MCP.md for the protocol details, raw‑curl cheatsheet, and endpoint reference.


Endpoints

RouteMethodPurpose
/mcpPOSTStreamable HTTP — a single JSON‑RPC 2.0 request, answered in the same HTTP response. Use this one.
/sseGETLegacy (deprecated). Opens the SSE stream. First frame is event: endpoint with the sessionId to POST to.
/messages?sessionId=<uuid>POSTLegacy (deprecated). A single JSON‑RPC 2.0 request. Acknowledged with 202; the response streams back over /sse.
/healthGETReturns { ok, name, version, tools, sessions }.

Quick health check:

bash
curl http://127.0.0.1:3847/health

Security

  • Loopback by default. The server binds to 127.0.0.1; no traffic leaves the machine unless you opt in.
  • Non‑loopback requires a token. Binding to anything other than 127.0.0.1 / ::1 without --token / OZ_MCP_TOKEN is refused — the MCP tool surface can spawn the Oz CLI, so an unauthenticated public bind is never allowed.
  • Bearer auth covers every route (including /health) when a token is set; comparison is constant‑time.
  • No persistence. Prompt content and run output are forwarded to the Oz CLI, never stored by the server.

There is no TLS termination — put the server behind an authenticated reverse proxy if you need HTTPS.


Trademarks & disclaimer

OzBridge is an independent project developed by Ivan Sena under the Sena Labs name. It is not affiliated with, endorsed by, sponsored by, or officially associated with Warp, Inc., Microsoft, GitHub, or the Visual Studio Code project.

Warp™ and Oz™ are trademarks of Warp, Inc. These names are used in this project nominatively — solely to describe that OzBridge interoperates with Warp Oz — and not to imply any sponsorship, endorsement, or affiliation.

OzBridge uses only Warp's documented, public interfaces — the oz command‑line tool and the Model Context Protocol transport. It does not modify, reverse‑engineer, embed, or create a derivative work of Warp's software, and it is a complementary integration, not a competing product or service.

This software is provided "as is", without warranty of any kind. Use it at your own risk. See DISCLAIMER.md for the full text.


License

MIT © Sena Labs

来源:packages/oz-mcp-server/README.md,提交 e1707c3

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

2
  1. v2.0.0最新Oct 29, 2026
  2. v1.4.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分