lucidlink-mcp-cloudflared 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lucidlink-mcp-cloudflared might be problematic. Click here for more details.
- lucidlink_mcp_cloudflared-0.1.0/LICENSE +9 -0
- lucidlink_mcp_cloudflared-0.1.0/PKG-INFO +120 -0
- lucidlink_mcp_cloudflared-0.1.0/README.md +102 -0
- lucidlink_mcp_cloudflared-0.1.0/pyproject.toml +40 -0
- lucidlink_mcp_cloudflared-0.1.0/setup.cfg +4 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared/__init__.py +8 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared/cli.py +524 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared/cloudflared.py +124 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared/gateway.py +328 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared/oauth.py +403 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared.egg-info/PKG-INFO +120 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared.egg-info/SOURCES.txt +16 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared.egg-info/dependency_links.txt +1 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared.egg-info/entry_points.txt +2 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared.egg-info/requires.txt +1 -0
- lucidlink_mcp_cloudflared-0.1.0/src/lucidlink_mcp_cloudflared.egg-info/top_level.txt +1 -0
- lucidlink_mcp_cloudflared-0.1.0/tests/test_cloudflared_cli.py +202 -0
- lucidlink_mcp_cloudflared-0.1.0/tests/test_team_oauth.py +332 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
LucidLink MCP Server License Notice
|
|
2
|
+
-----------------------------------
|
|
3
|
+
Copyright © 2026 LucidLink Corp. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This MCP server (the “MCP Server”) is proprietary to LucidLink Corp. and is provided solely to enable you to install, run, and self-host the MCP Server, and to develop applications and integrations that interact with LucidLink services.
|
|
6
|
+
|
|
7
|
+
Use of this MCP Server is governed by the LucidLink Terms and Conditions available at: https://www.lucidlink.com/terms (the “LucidLink Terms”), or, if you or your organization have entered into a separate written agreement with LucidLink governing your use of LucidLink services (for example, a subscription agreement or master services agreement), such separate written agreement.
|
|
8
|
+
|
|
9
|
+
This MCP Server (including any associated example or sample code) is not licensed under an open‑source license. All rights are reserved by LucidLink except as expressly granted in the Applicable Terms.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lucidlink-mcp-cloudflared
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: One-command public URL for the LucidLink MCP server via a Cloudflare quick tunnel
|
|
5
|
+
Author: LucidLink
|
|
6
|
+
License-Expression: LicenseRef-Proprietary
|
|
7
|
+
Project-URL: Homepage, https://www.lucidlink.com
|
|
8
|
+
Keywords: mcp,lucidlink,cloudflared,tunnel,claude
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: lucidlink-mcp<0.3,>=0.2.2
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# lucidlink-mcp-cloudflared
|
|
20
|
+
|
|
21
|
+
One command, one paste-ready URL: serve the [LucidLink MCP](https://pypi.org/project/lucidlink-mcp/)
|
|
22
|
+
to **claude.ai custom connectors, Claude mobile, and Cowork** through a
|
|
23
|
+
[Cloudflare quick tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/).
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uvx lucidlink-mcp-cloudflared
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
prints:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
public URL (paste into claude.ai Settings -> Connectors):
|
|
33
|
+
https://<random-words>.trycloudflare.com/<secret>/mcp
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
then self-tests that URL over the exact edge-and-back path Claude will use.
|
|
37
|
+
Ctrl+C kills server, tunnel, and URL together — nothing persists anywhere.
|
|
38
|
+
|
|
39
|
+
## Why a separate package
|
|
40
|
+
|
|
41
|
+
The official `lucidlink-mcp` package deliberately never spawns a tunnel
|
|
42
|
+
vendor's binary or routes your traffic anywhere — its `--http` mode binds a
|
|
43
|
+
local port and leaves the pipe to you. This companion is the
|
|
44
|
+
explicitly-chosen convenience that adds the pipe. Installing it is the
|
|
45
|
+
opt-in.
|
|
46
|
+
|
|
47
|
+
## Prerequisites
|
|
48
|
+
|
|
49
|
+
- A LucidLink service-account token (a workspace admin mints one in the
|
|
50
|
+
LucidLink admin app under Service Accounts). **No pre-setup needed**: on
|
|
51
|
+
first run this command notices there's no token and walks you through
|
|
52
|
+
pasting and verifying it — the same wizard as `lucidlink-mcp-setup`,
|
|
53
|
+
saved to the same `~/.lucidlink/mcp-config.json` every LucidLink MCP
|
|
54
|
+
client reads.
|
|
55
|
+
- `cloudflared` on PATH — **never downloaded for you**:
|
|
56
|
+
- macOS: `brew install cloudflared`
|
|
57
|
+
- Windows: `winget install --id Cloudflare.cloudflared`
|
|
58
|
+
- Linux: [Cloudflare's downloads page](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/)
|
|
59
|
+
|
|
60
|
+
## Flags
|
|
61
|
+
|
|
62
|
+
- `--port N` — local port (default 8000; always binds loopback)
|
|
63
|
+
- `--write` — register mutating tools (**read-only by default**)
|
|
64
|
+
- `--path-secret SECRET` — bring your own secret path segment (one is always
|
|
65
|
+
generated otherwise; a public quick-tunnel URL never runs without one)
|
|
66
|
+
|
|
67
|
+
## Team mode: one URL, per-member auth
|
|
68
|
+
|
|
69
|
+
For a team, run the gateway instead:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
uvx lucidlink-mcp-cloudflared team serve
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
It prints **one connector URL** (`https://<host>/mcp`). Add it once as a
|
|
76
|
+
claude.ai custom connector (on Team/Enterprise plans a workspace Owner does
|
|
77
|
+
this; members then connect individually). When a member clicks **Connect**,
|
|
78
|
+
their browser lands on the gateway's enrollment page and they paste **their
|
|
79
|
+
own** service-account token — verified with LucidLink, stored only on the
|
|
80
|
+
gateway box (0600). Claude receives an opaque, revocable OAuth token per
|
|
81
|
+
member; SA tokens never pass through an admin, a URL, or a conversation.
|
|
82
|
+
|
|
83
|
+
Each member gets their **own backend process** under their own SA — own
|
|
84
|
+
permissions, own audit identity, own locks and rate limits — spawned lazily
|
|
85
|
+
on first request and reaped when idle (`--idle-timeout`, default 15 min;
|
|
86
|
+
`--max-backends` caps concurrent members, default 8; budget roughly one
|
|
87
|
+
client stack plus ~1 GB cache per *active* member).
|
|
88
|
+
|
|
89
|
+
Admin console:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
uvx lucidlink-mcp-cloudflared team list # who's enrolled
|
|
93
|
+
uvx lucidlink-mcp-cloudflared team remove maria # revoke: kills all her tokens
|
|
94
|
+
uvx lucidlink-mcp-cloudflared team allow-write maria # register mutating tools for her
|
|
95
|
+
uvx lucidlink-mcp-cloudflared team revoke-write maria # back to read-only (the default)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Write grants apply when the member's backend next spawns — restart the
|
|
99
|
+
gateway (or wait for the idle reap) after changing one. For a sandbox
|
|
100
|
+
session where everyone should be able to write (demo filespace, kicking
|
|
101
|
+
the tires), skip the per-member ceremony: `team serve --write` registers
|
|
102
|
+
mutating tools for every member for that session only.
|
|
103
|
+
|
|
104
|
+
Caveat that matters: OAuth binds to the hostname, and a quick tunnel mints a
|
|
105
|
+
**new** hostname every restart — the whole team reconnects. Fine for a demo;
|
|
106
|
+
a real deployment runs `team serve --public-url https://mcp.yourco.example`
|
|
107
|
+
behind a named tunnel or reverse proxy.
|
|
108
|
+
|
|
109
|
+
## What to know before pasting the URL anywhere
|
|
110
|
+
|
|
111
|
+
- **The URL is a bearer credential.** Anyone who has it has the endpoint.
|
|
112
|
+
Treat it like a password; it dies on Ctrl+C and a restart mints a new one.
|
|
113
|
+
- **Claude reading files is the exposure.** Content the agent reads enters
|
|
114
|
+
your Claude conversation and Anthropic's infrastructure under *your*
|
|
115
|
+
Claude plan's data terms. The tunnel adds Cloudflare's edge as a TLS
|
|
116
|
+
terminator in the path.
|
|
117
|
+
- **Quick tunnels are best-effort.** No SLA; a reconnect mints a new
|
|
118
|
+
hostname (re-paste in Claude). For anything persistent, run the official
|
|
119
|
+
package behind your own pipe instead — see this package's
|
|
120
|
+
`docs/REMOTE-HOSTING.md`.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# lucidlink-mcp-cloudflared
|
|
2
|
+
|
|
3
|
+
One command, one paste-ready URL: serve the [LucidLink MCP](https://pypi.org/project/lucidlink-mcp/)
|
|
4
|
+
to **claude.ai custom connectors, Claude mobile, and Cowork** through a
|
|
5
|
+
[Cloudflare quick tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
uvx lucidlink-mcp-cloudflared
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
prints:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
public URL (paste into claude.ai Settings -> Connectors):
|
|
15
|
+
https://<random-words>.trycloudflare.com/<secret>/mcp
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
then self-tests that URL over the exact edge-and-back path Claude will use.
|
|
19
|
+
Ctrl+C kills server, tunnel, and URL together — nothing persists anywhere.
|
|
20
|
+
|
|
21
|
+
## Why a separate package
|
|
22
|
+
|
|
23
|
+
The official `lucidlink-mcp` package deliberately never spawns a tunnel
|
|
24
|
+
vendor's binary or routes your traffic anywhere — its `--http` mode binds a
|
|
25
|
+
local port and leaves the pipe to you. This companion is the
|
|
26
|
+
explicitly-chosen convenience that adds the pipe. Installing it is the
|
|
27
|
+
opt-in.
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
- A LucidLink service-account token (a workspace admin mints one in the
|
|
32
|
+
LucidLink admin app under Service Accounts). **No pre-setup needed**: on
|
|
33
|
+
first run this command notices there's no token and walks you through
|
|
34
|
+
pasting and verifying it — the same wizard as `lucidlink-mcp-setup`,
|
|
35
|
+
saved to the same `~/.lucidlink/mcp-config.json` every LucidLink MCP
|
|
36
|
+
client reads.
|
|
37
|
+
- `cloudflared` on PATH — **never downloaded for you**:
|
|
38
|
+
- macOS: `brew install cloudflared`
|
|
39
|
+
- Windows: `winget install --id Cloudflare.cloudflared`
|
|
40
|
+
- Linux: [Cloudflare's downloads page](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/)
|
|
41
|
+
|
|
42
|
+
## Flags
|
|
43
|
+
|
|
44
|
+
- `--port N` — local port (default 8000; always binds loopback)
|
|
45
|
+
- `--write` — register mutating tools (**read-only by default**)
|
|
46
|
+
- `--path-secret SECRET` — bring your own secret path segment (one is always
|
|
47
|
+
generated otherwise; a public quick-tunnel URL never runs without one)
|
|
48
|
+
|
|
49
|
+
## Team mode: one URL, per-member auth
|
|
50
|
+
|
|
51
|
+
For a team, run the gateway instead:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
uvx lucidlink-mcp-cloudflared team serve
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
It prints **one connector URL** (`https://<host>/mcp`). Add it once as a
|
|
58
|
+
claude.ai custom connector (on Team/Enterprise plans a workspace Owner does
|
|
59
|
+
this; members then connect individually). When a member clicks **Connect**,
|
|
60
|
+
their browser lands on the gateway's enrollment page and they paste **their
|
|
61
|
+
own** service-account token — verified with LucidLink, stored only on the
|
|
62
|
+
gateway box (0600). Claude receives an opaque, revocable OAuth token per
|
|
63
|
+
member; SA tokens never pass through an admin, a URL, or a conversation.
|
|
64
|
+
|
|
65
|
+
Each member gets their **own backend process** under their own SA — own
|
|
66
|
+
permissions, own audit identity, own locks and rate limits — spawned lazily
|
|
67
|
+
on first request and reaped when idle (`--idle-timeout`, default 15 min;
|
|
68
|
+
`--max-backends` caps concurrent members, default 8; budget roughly one
|
|
69
|
+
client stack plus ~1 GB cache per *active* member).
|
|
70
|
+
|
|
71
|
+
Admin console:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
uvx lucidlink-mcp-cloudflared team list # who's enrolled
|
|
75
|
+
uvx lucidlink-mcp-cloudflared team remove maria # revoke: kills all her tokens
|
|
76
|
+
uvx lucidlink-mcp-cloudflared team allow-write maria # register mutating tools for her
|
|
77
|
+
uvx lucidlink-mcp-cloudflared team revoke-write maria # back to read-only (the default)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Write grants apply when the member's backend next spawns — restart the
|
|
81
|
+
gateway (or wait for the idle reap) after changing one. For a sandbox
|
|
82
|
+
session where everyone should be able to write (demo filespace, kicking
|
|
83
|
+
the tires), skip the per-member ceremony: `team serve --write` registers
|
|
84
|
+
mutating tools for every member for that session only.
|
|
85
|
+
|
|
86
|
+
Caveat that matters: OAuth binds to the hostname, and a quick tunnel mints a
|
|
87
|
+
**new** hostname every restart — the whole team reconnects. Fine for a demo;
|
|
88
|
+
a real deployment runs `team serve --public-url https://mcp.yourco.example`
|
|
89
|
+
behind a named tunnel or reverse proxy.
|
|
90
|
+
|
|
91
|
+
## What to know before pasting the URL anywhere
|
|
92
|
+
|
|
93
|
+
- **The URL is a bearer credential.** Anyone who has it has the endpoint.
|
|
94
|
+
Treat it like a password; it dies on Ctrl+C and a restart mints a new one.
|
|
95
|
+
- **Claude reading files is the exposure.** Content the agent reads enters
|
|
96
|
+
your Claude conversation and Anthropic's infrastructure under *your*
|
|
97
|
+
Claude plan's data terms. The tunnel adds Cloudflare's edge as a TLS
|
|
98
|
+
terminator in the path.
|
|
99
|
+
- **Quick tunnels are best-effort.** No SLA; a reconnect mints a new
|
|
100
|
+
hostname (re-paste in Claude). For anything persistent, run the official
|
|
101
|
+
package behind your own pipe instead — see this package's
|
|
102
|
+
`docs/REMOTE-HOSTING.md`.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "lucidlink-mcp-cloudflared"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "One-command public URL for the LucidLink MCP server via a Cloudflare quick tunnel"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "LicenseRef-Proprietary"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{name = "LucidLink"},
|
|
15
|
+
]
|
|
16
|
+
keywords = ["mcp", "lucidlink", "cloudflared", "tunnel", "claude"]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Operating System :: OS Independent",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
]
|
|
23
|
+
# Deliberately a SEPARATE distribution: the official lucidlink-mcp package
|
|
24
|
+
# never spawns a tunnel vendor's binary; this companion is the convenience
|
|
25
|
+
# wrapper that does. cloudflared itself must already be on PATH — it is
|
|
26
|
+
# never downloaded for you (same supply-chain stance as the core package's
|
|
27
|
+
# Node shim).
|
|
28
|
+
dependencies = [
|
|
29
|
+
"lucidlink-mcp>=0.2.2,<0.3",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://www.lucidlink.com"
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
lucidlink-mcp-cloudflared = "lucidlink_mcp_cloudflared.cli:main"
|
|
37
|
+
|
|
38
|
+
[tool.setuptools.packages.find]
|
|
39
|
+
where = ["src"]
|
|
40
|
+
include = ["lucidlink_mcp_cloudflared*"]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""Companion package: LucidLink MCP over a Cloudflare quick tunnel.
|
|
2
|
+
|
|
3
|
+
Wraps ``lucidlink-mcp --http`` with a Cloudflare quick tunnel so one command
|
|
4
|
+
produces a paste-ready public URL for claude.ai custom connectors, Claude
|
|
5
|
+
mobile, and Cowork. Kept deliberately OUT of the official ``lucidlink-mcp``
|
|
6
|
+
package: the official server never spawns a tunnel vendor's binary; this
|
|
7
|
+
wrapper is the explicitly-chosen convenience that does.
|
|
8
|
+
"""
|