share-server-links
БесплатноБез исполняемых скриптовНе проверенExpose a local HTTP server through Cloudroom Connect and give the user its remotely accessible URL.
от davidondrej★ 2 086 звёзд на GitHubОб этом скилле
Share local server links via cloudroom connect
When you start an HTTP server the user should open, give them a connect share URL — not a localhost URL. Shares work from threads running on any enrolled host, and the command resolves the thread's host automatically.
- Check status: run
room-cli connect status --json. If not paired / not connected, give the localhost URL. Connect sets itself up once the user is signed in to Cloudroom. - From the thread that started the HTTP server, run
room-cli connect expose <port>. It prints that host's share URL. Use--host <name-or-id>only when you intentionally need another enrolled host; outside a thread, sharing defaults to the machine running the Cloudroom server. - Give the returned URL to the user as a markdown link. It opens on the
user's signed-in phones and browsers; it is not a public internet link.
To set up a new phone, send the user to cloudroom.dev/m to sign in
(
room-cli connect phoneprints the link). - When the server stops, run
room-cli connect unexpose <port>from the same thread (or with the same--host) so the share is cleaned up. Useroom-cli connect shares [--host <name-or-id>]to inspect that host's shares.
Server-host shares use https://<server-label>--<port>.<base-domain> through
the server tunnel. Other enrolled hosts use
https://<machine-label>--<port>.<base-domain> through their daemon. If a
machine was not enrolled through Connect, expose fails with instructions to
remove and re-add it under Settings > Machines.
Apps that build absolute URLs
- The app sees
Host: 127.0.0.1:<port>andX-Forwarded-Proto: https. - A same-site
Originarrives ashttp://127.0.0.1:<port>. - No
X-Forwarded-Hostarrives. - So Rails redirects to
https://127.0.0.1:<port>and fails CSRF on form posts. - Fix it in the app, in development only.
- Set
SHARE_URLto the URL fromroom-cli connect shares. - The
httpscheck leaves local browsing unchanged.
Rails, in config/environments/development.rb:
if (share = ENV["SHARE_URL"])
config.hosts << URI(share).host
config.middleware.insert_before 0, Class.new {
define_method(:initialize) { |app| @app = app }
define_method(:call) do |env|
if env["HTTP_X_FORWARDED_PROTO"] == "https"
env["HTTP_X_FORWARDED_HOST"] = URI(share).host
env["HTTP_ORIGIN"] = share if env["HTTP_ORIGIN"] == "http://#{env["HTTP_HOST"]}"
end
@app.call(env)
end
}
end
Django:
- Add a first middleware that makes the same two
request.METAchanges. - Set
ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]", <share host>]. - Keep the first three: a non-empty list turns off Django's local default.
- Set
USE_X_FORWARDED_HOST = True. - Set
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https").
Agent instructions setting
Settings → Machines → Cloudroom Connect has a "Tell agents about remote access"
toggle, enabled by default. Use
room-cli plugin config connect set sendRemoteInstructions false to suppress the
remote-access message, or true to restore it. This controls only the message;
sharing still works. The message otherwise requires active or recent remote
usage. Changes apply when session instructions are next assembled.
Установить share-server-links в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл share-server-links?
Expose a local HTTP server through Cloudroom Connect and give the user its remotely accessible URL.
Как установить скилл share-server-links?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл share-server-links запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic