Briefroom

io.github.briefroom由 GitHub 账号 briefroom 发布v0.5.1更新于 Oct 24, 2026

briefroom stdio MCP server — expose the briefroom CLI to Claude Code, Codex, and other agents.

概览

AI 生成的概览

本地 stdio MCP 服务器,封装 briefroom CLI,让助手部署 HTML 目录、获取评审评论并列出房间。

可以做什么
把本地目录打包上传为 HTML 房间并返回分享链接,可设置有效期、密码、可见性、私有房间、评论开关和展示模式,也可指定房间 slug 重新部署以更新同一链接。按分享链接获取评审评论,输出为便于助手使用的 Markdown 或 JSON,可按状态、起始时间和语言筛选。列出当前令牌名下的房间及其最新部署和分享链接,包括已归档房间。
适用场景
适合让助手把 HTML 原型、设计稿或文档发布为可分享的评审链接,再把评审者的评论取回对话中,而无需助手自行启动 shell。
运行要求
通过 stdio 在本地运行,通常用 npx 从 npm 包 @briefroom/mcp 启动,需要 Node.js。个人访问令牌通过 BRIEFROOM_TOKEN 环境变量提供,或用 briefroom CLI 登录一次存入操作系统钥匙串。BRIEFROOM_API_URL 可指向其他后端。需要访问 briefroom 的网络;get_feedback 无需凭据。
安装前请注意
服务器持有可访问你房间的个人访问令牌(BRIEFROOM_TOKEN);README 提醒不要把明文令牌写进项目配置文件,泄露后应轮换。deploy_html 会把本地目录上传到第三方服务,并可能改动已有分享链接的设置,包括清除密码或把房间设为私有。密码保护的链接需要付费套餐。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@briefroom/mcp

日本語版 README: README.ja.md

briefroom stdio MCP server — expose the briefroom CLI to Claude Code, Codex, Cursor, and other agents so they can deploy HTML and pull reviewer comments without spawning shells themselves.

  • Deploy in one call — zip a local directory, upload it, get a share URL back.
  • Pull reviewer feedback — grab comments from the browser as AI-agent-ready Markdown.
  • List your rooms — enumerate your existing deploys with their share URLs.
  • Keep it to yourself — deploy straight into a private room only you can open while signed in.

Add it to Claude Code (one command)

bash
claude mcp add briefroom -- npx -y @briefroom/mcp

Set BRIEFROOM_TOKEN in your environment (create a PAT at briefroom.net/dashboard/settings/tokens) or run npx @briefroom/cli login once to store it in the OS keychain.

What it gives your agent

ToolWhat it does
deploy_htmlZip a local directory and upload it to briefroom. Returns a share URL.
get_feedbackFetch reviewer comments for a share URL as AI-agent-ready Markdown (default) or JSON.
list_deploymentsList rooms owned by the current PAT with their latest deploy and share URL.

Internally each tool runs @briefroom/cli as a child process (process.execPath → node <cli>/dist/index.js), so behavior stays identical to the CLI and both packages evolve together.

Install

bash
npm i -g @briefroom/mcp# or use it via npx (recommended for .mcp.json)

Configure

Config file location and env interpolation semantics differ per client. Pick the block that matches yours.

Claude Code

Put .mcp.json at your project root. Claude Code expands ${VAR} against the launching shell's environment:

json
{  "mcpServers": {    "briefroom": {      "command": "npx",      "args": ["-y", "@briefroom/mcp"],      "env": {        "BRIEFROOM_TOKEN": "${BRIEFROOM_TOKEN}"      }    }  }}

Or register it via the Claude Code CLI:

bash
claude mcp add briefroom -- npx -y @briefroom/mcp

Codex CLI

Codex reads MCP server definitions from ~/.codex/config.toml (see the Codex CLI docs):

toml
[mcp_servers.briefroom]command = "npx"args = ["-y", "@briefroom/mcp"]env = { BRIEFROOM_TOKEN = "hak_your_pat_here" }

Or omit the env block and let the MCP process inherit BRIEFROOM_TOKEN from the shell that launched Codex.

Cursor

Cursor does not expand ${VAR} inside env blocks in its MCP config, so you have to decide up front how to supply the PAT. Options, in preference order:

Option A — user-wide config with a literal PAT (keeps PAT out of any repo):

~/.cursor/mcp.json:

json
{  "mcpServers": {    "briefroom": {      "command": "npx",      "args": ["-y", "@briefroom/mcp"],      "env": { "BRIEFROOM_TOKEN": "hak_your_pat_here" }    }  }}

The file lives in your home directory, so there's no path for it to end up in a project's git history.

Option B — inherit from the parent shell (no PAT in any config file):

Either ~/.cursor/mcp.json or the project's .cursor/mcp.json, with no env block:

json
{  "mcpServers": {    "briefroom": {      "command": "npx",      "args": ["-y", "@briefroom/mcp"]    }  }}

With env omitted, the MCP process inherits your shell's environment. If you've run npx @briefroom/cli login, the CLI reads the PAT from the OS keychain. Alternatively, launch Cursor from a shell that has BRIEFROOM_TOKEN=hak_... exported.

Not recommended — project .cursor/mcp.json with a literal PAT:

If you must put a literal PAT in the project's .cursor/mcp.json, add that file to .gitignore and never commit it. Leaked PATs in public repos are a well-known incident class — prefer options A or B above. Rotate the PAT at briefroom.net/dashboard/settings/tokens if you commit one by accident.

Other stdio-MCP clients (Cline / Roo Code / Continue / …)

The stanza above works verbatim, but consult your client's docs for ${VAR} interpolation semantics and PAT-in-file safety before adopting it — the same "user-wide file or env inheritance" preference order applies.

Authentication

Two options — pick whichever fits your setup:

  1. BRIEFROOM_TOKEN env var (recommended for .mcp.json): create a PAT at briefroom.net/dashboard/settings/tokens and pass it through the env block above.
  2. OS keychain (recommended for local dev): run npx @briefroom/cli login once. The MCP server picks up the same credential automatically.

BRIEFROOM_TOKEN takes precedence over the keychain when both are set.

A login stored in the keychain is tied to the API origin it was issued for and is never sent to another origin. If you set BRIEFROOM_API_URL (dev / staging), sign in for that origin with npx @briefroom/cli login --api-url <url> or pass BRIEFROOM_TOKEN. BRIEFROOM_TOKEN is sent only over https (plain http only for localhost).

get_feedback also works without any credentials — comments on a share URL are public API. Auth only unlocks owner-only fields.

Configuration reference

Env varPurposeDefault
BRIEFROOM_TOKENPersonal Access Token. Skips the keychain lookup.(unset)
BRIEFROOM_API_URLPoint the CLI at a different backend (dev / staging).https://briefroom.net

Tool reference

deploy_html

jsonc
{  "path": "./mockups",        // required — directory to deploy  "room": "demo-a",           // optional — room slug: ascii identifier of the room to redeploy into  "name": "企画書 v2",         // optional — room display name, 1-100 chars, any language  "expires": "7d",            // optional — "24h" | "7d" | "30d" | "90d" | "never" (Free: 24h / 7d only, private rooms exempt; also updates the existing link on redeploy)  "new": false,               // optional — start a brand new room  "password": "s3cret",       // optional — password-protect the link (Pro+ plans; passed to the CLI via env, never argv)  "visibility": "unlisted",   // optional — "unlisted" | "password_protected" | "email_invite_only"; "unlisted" clears an existing password  "private": false,           // optional — true is shorthand for visibility "email_invite_only": only you, signed in, can open the room  "allow_comments": true,     // optional — false hides the comment sidebar (viewers see the page + header only); every plan  "display_mode": "review"    // optional — "review" (header + comment sidebar) | "live" (chrome-less full-screen page); every plan}

Returns the raw CLI JSON (share_url, room_id, version_number, visibility, allow_comments, display_mode, …).

On a redeploy, expires / password / visibility / allow_comments / display_mode are applied to the existing share link (same URL) only when you pass them explicitly. Omit a field to leave that setting unchanged.

Three identifiers that are easy to confuse:

FieldWhat it is
nameDisplay name shown on the dashboard and in the viewer. Any language. Set it on the first deploy; on a redeploy it updates the room name only when passed explicitly (omit it to keep the current name).
roomRoom slug — an ascii kebab-case identifier used only to find the existing room to redeploy into. Never part of the share URL.
share URLAlways auto-issued with a random token (/s/<token>). Not derived from name or room.

get_feedback

jsonc
{  "share": "https://briefroom.net/s/aB3xQ2mK9pNvR4", // URL or bare token  "status": "all",             // optional — "open" | "resolved" | "all"  "since": "2026-07-01T00:00Z",// optional ISO 8601 for delta pulls  "format": "prompt",          // optional — "prompt" (Markdown) | "json"  "locale": "ja"               // optional — "ja" | "en"}

Returns Markdown by default, formatted so an agent can paste it straight back into context.

list_deployments

jsonc
{  "limit": 20,     // optional — 1-100, default 20  "archived": false}

Returns the raw /api/v1/rooms JSON.

Debugging

Log lines are written to stderr only — stdout is reserved for JSON-RPC. To see what the server does:

bash
BRIEFROOM_TOKEN=$YOUR_PAT npx @modelcontextprotocol/inspector \  npx -y @briefroom/mcp

Point the inspector at a running backend with BRIEFROOM_API_URL=http://localhost:3000 when developing against a local dev server.

Roadmap

  • resolve_comment — pending backend PAT support on the comment PATCH endpoint.
  • Streamable HTTP transport for hosted usage.

Contributing

Issues and pull requests are welcome at github.com/briefroom/mcp. The public repo mirrors the internal source of truth in the briefroom monorepo; changes land upstream first, then are exported here.

Local dev inside this repo:

bash
npm installnpm run buildnpm test

License

MIT © Talent Cloud, Inc.

来源:README.md,提交 5cbab6e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.5.1最新Oct 17, 2026
  2. v0.5.0Sep 17, 2026
  3. v0.3.0Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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