Menu

From a Headless Linux Server to a Browser Room: A Terminal CLI and MCP Server Bundled from My Web App's Code
📰

From a Headless Linux Server to a Browser Room: A Terminal CLI and MCP Server Bundled from My Web App's Code

DEV Community: node·CokeBear·3 days ago
#khkT1fD1
#devtonodejs#devto#dev#room#clipshare
Long article (1322 words) — no AI summary yet.
Reading 0:00
15s threshold

The goal was narrow: send and receive files from a headless Linux server, the kind you only reach over SSH.

Clipboard Share already has rooms on the web. A phone and a PC join the same room and swap files. So the question was simple: can a terminal join that same room? That became clipshare . A file uploaded from the server shows up in the browser room right away.

I built it with Claude Code. I made the design calls and checked the results. The work started with PR #164 (feat/cli), with stages 1 to 3 landing on 2026-11-30 and npm plus MCP on 2026-12-01.

Bundle the web code, don't copy it

This was the part I cared about most. If I write separate crypto for the CLI, it will drift from the web version, and then the two sides can't open each other's files.

So the CLI imports modules straight from frontend/src .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.