ouicu

com.ouicuv0.1.2更新于 Oct 8, 2026

Share a dev server or upload a built site at a public https link, and hand the link back.

概览

AI 生成的概览

让编程助手把正在运行的开发服务器或已构建的站点发布为公开链接,并返回该链接。

功能
该服务器提供工具,可在服务器运行期间把本地端口分享为公开链接、停止或列出分享、把已构建的文件夹部署为长期有效的链接、列出或删除账户下的站点,以及查看最近的访问请求、当月用量和账户信息。每个工具都会用助手可以转述的自然语言作答,并附带结构化内容。没有密钥时只启动一个登录工具,批准后再出现其余工具。
适用场景
当助手需要返回一个可分享的链接,指向开发服务器或已构建的站点时使用,例如把落地页发给他人,或让客户预览成果。适合把发布预览作为任务一部分的编程助手工作流。
运行要求
通过 stdio 在本地运行,通常用 npx 从 npm 包 @ouicu/mcp 启动。分享端口还需要 ouicu CLI 0.1.7 或更高版本(仅限受邀者访问的分享需要 0.1.8)。认证使用已保存的 ouicu 登录,或环境变量 OUICU_API_KEY;启动时不强制要求密钥,因为服务器可以通过浏览器登录。仅支持桌面端。
安装前请注意
链接默认公开:除非设置了密码或限制为仅受邀者可访问,任何拿到链接的人都能打开。部署和分享会把本地内容发布到第三方服务,ouicu_delete_site 会删除站点及其文件。服务器会读取 OUICU_API_KEY 和已保存的登录凭据,并可打开浏览器完成登录批准。在免费方案下,访问者会看到标明分享者的提示。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@ouicu/mcp

An MCP server for ouicu. A coding agent can share the dev server it is working on, or put a built site up, and hand back a link to send to someone: "build the landing page and send me a link" in one turn.

Set up

sh
npx -y @ouicu/mcp setup claude-code

or claude-desktop, cursor, vscode, codex, windsurf. If this computer is not logged in to ouicu, it logs you in first: it shows a code, opens ouicu.com in your browser to approve it, and saves the key where the ouicu CLI keeps it. Then it adds the server to the tool, for every project. The key never goes into the tool's settings; the server reads it from the credentials file, so ouicu login and the server share one login.

When the tool's own command (claude, codex) is missing, it prints the command to run by hand. For Claude Code that is:

sh
claude mcp add -s user --transport stdio ouicu -- npx -y @ouicu/mcp

Any other MCP client starts it as npx -y @ouicu/mcp (stdio):

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

Sharing a port also needs the ouicu CLI, 0.1.7 or later (0.1.8 to share with only invited people):

sh
curl -fsSL https://ouicu.com/install.sh | sh

On Windows, in PowerShell:

powershell
irm https://ouicu.com/install.ps1 | iex

Tools

ToolWhat it does
ouicu_share_portShares a port at a public link while the server runs (port, name?, password?, allow?)
ouicu_stop_shareStops a share by name, id or link, here or anywhere on the account
ouicu_list_sharesLive shares first, then the latest ended
ouicu_deployPuts a built folder up at a link that lasts (directory, name?, spa?, password?)
ouicu_list_sitesThe account's sites
ouicu_delete_siteDeletes a site and its files
ouicu_recent_requestsThe latest requests to a share or site: who opened it, and what failed
ouicu_usageThe month's data against the plan's allowance
ouicu_whoamiThe account and plan

Each answers in words an agent can pass on, with the same as structured content. Links are public: anyone who has one can open it unless it has a password or is only for invited people. On the Free plan, people opening a link in a browser first see a short notice from ouicu saying who shared it.

Shares the server starts run inside it, through the CLI, and stop when it stops or with ouicu_stop_share. For a link that outlives the session, use ouicu_deploy.

Only invited people

On Pro, ouicu_share_port takes allow: email addresses, or @ and a domain (@client.com) for everyone at one. Only those people can open the link. ouicu does not send it to them; you do, as with any link. On opening it, each types their email address on ouicu's page and, if it is on the list, gets a sign-in link by email. Your own address always gets in. allow does not go with password. The tool says when only invited people can open a share, and ouicu_list_shares and ouicu_list_sites say "only invited people can open it" for those.

Asking again for a port the server already shares hands back that share only when the same people can open it (anyone, the same password or the same list); otherwise the tool says to stop it first.

Without a key

The server starts with one tool, ouicu_login. It opens the approval page in the person's browser when it can (otherwise it answers with the code and the address for the agent to pass on) and waits for the approval. The other tools then appear without a restart. When the saved key stops working, ouicu_login comes back.

Settings

The server reads OUICU_API_KEY (a key from ouicu.com, instead of the saved login), OUICU_API (another ouicu than ouicu.com), OUICU_TUNNEL and OUICU_BIN (the CLI to run). From code:

ts
import { createServer } from "@ouicu/mcp";import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
await createServer().connect(new StdioServerTransport());

License

MIT

来源:packages/mcp/README.md,提交 b7f925c

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.1.2最新Oct 8, 2026