Flint Remote
by sherkevin
README.md
# Flint Remote
[简体中文](README.zh-CN.md) · [Security](SECURITY.md) · [Roadmap](docs/ROADMAP.md)
Self-hosted, consent-based **remote workspace MCP**.
One gateway. One foreground device command. Standard MCP tools.
> **Preview · v0.2.0** — read-only device and workspace inspection, not a full Desktop Commander Remote replacement. The gateway deliberately listens on loopback only. No remote shell, file writing, silent enrollment, or customer firewall bypass.
## Quick start
Requires **Node.js 22.12+** and npm. From the repository:
```bash
npm ci --ignore-scripts
node src/cli.mjs help
```
### 1. Start the gateway
Run these commands once on the gateway host, and leave the gateway running.
```bash
node src/cli.mjs init
node src/cli.mjs gateway
```
Configuration is generated locally in your private user directory. No default or hard-coded credentials.
### 2. Authorize a device
Open the local device dashboard at http://127.0.0.1:8787/ and authorize it using the admin token from your private configuration. The dashboard does not persist the token in browser storage. You can create a pairing code, refresh the device list and revoke a device. Alternatively, in a second terminal on the gateway host, generate a single-use code:
```bash
node src/cli.mjs enroll
```
Install the pinned upstream engine on the test device, then choose an existing isolated, non-sensitive directory you own (create ./demo first for this example):
```bash
npm install --no-save --package-lock=false --ignore-scripts @wonderwhy-er/desktop-commander@0.3.4
```
```bash
node src/cli.mjs connect --relay http://127.0.0.1:8787 --workspace ./demo
```
Type YES and enter the short-lived code when prompted. Ctrl+C requests immediate session revocation. If disconnected from the network before revocation is acknowledged, ask the gateway owner to revoke the device. This version is for same-host loopback testing, **not** cross-network production operation.
### 3. Connect an MCP client
Use the MCP Streamable HTTP endpoint at `http://127.0.0.1:8787/mcp` and the controller bearer token in your private gateway configuration. Your client must support custom HTTP authorization.
| Tool | Purpose |
| --- | --- |
| `list_devices` | List enrolled devices and their recent connection state |
| `device_status` | Check an enrolled device |
| `list_workspace` | List the locally selected directory using Desktop Commander |
Device management: `flint-remote devices` and `flint-remote revoke --device ID` (use node src/cli.mjs in a checkout).
## Architecture
```mermaid
flowchart TD
A["MCP client"] <-->|"MCP / controller authorization"| B["Flint gateway"]
C["Foreground device adapter"] <-->|"Device-initiated requests / separate identity"| B
C -->|"Fixed read-only tool"| D["DesktopCommanderMCP"]
D --> E["Locally selected workspace"]
```
The project reuses the [Desktop Commander local MCP engine](https://github.com/wonderwhy-er/DesktopCommanderMCP) and the [official MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk). No official Desktop Commander Remote account, cloud service or session is reused.
## Security and scope
- A user selects the workspace and explicitly authorizes a foreground session.
- Separate admin, controller and device credentials. Single-use enrollment codes expire after five minutes.
- The gateway and device permit only fixed read-only tools; the remote peer cannot supply arbitrary paths or commands.
- Revocation invalidates the device credential and pending requests. Configuration and logs must remain private.
- No production claim: TLS termination, durable identity, independent security review, cross-network integration and full cross-platform validation remain open.
See [security policy](SECURITY.md), [requirements](docs/PRD.md), [architecture decision](docs/ADR-001.md) and [verification](docs/verification.md).
## Installation check
Run `node src/cli.mjs doctor --workspace ./demo` to check the Node runtime, local tool engine and workspace before pairing.
## Development
```bash
npm test
```
To test a real installed upstream executor, set the `FLINT_TEST_DC_ENTRY` environment variable to its local JavaScript entry point. The fixture is created and removed within the repository's ignored runtime directory. Otherwise the integration test uses a fake executor. Run `npm run test:upstream` after installing the pinned upstream package to explicitly exercise the real tool engine.
MIT · Independent project; not affiliated with Desktop Commander.
### Device package preview
The Device package preview workflow builds a standalone npm archive with the pinned
local execution engine. After that workflow passes, download the archive from its
GitHub Actions artifacts and extract it. With Node.js 22.12+ installed, inspect the
package locally using:
```bash
npm exec --yes --ignore-scripts --package=./flint-remote-device-preview-0.2.0.tgz -- flint-remote doctor
```
The archive is a read-only local preview, not a production installer. Review it
before use. A published npm registry package and signed release are not yet available.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues