A CLI to create cloudflare tunnels for Trigslink MCP services
Project description
Here’s the complete README.md formatted for direct copying:
# Trigslink Tunnel CLI
**Trigslink Tunnel** is a lightweight command-line interface (CLI) tool that allows MCP (Model Context Protocol) service providers to expose their locally running services (e.g., `http://localhost:9000`) to the public internet via a secure Cloudflare tunnel.
This tool is part of the [Trigslink Platform](https://trigslink.io) ecosystem, enabling seamless Web3 + AI-powered agent deployment.
## 🚀 Features
- Instantly creates a **Cloudflare Tunnel** to expose your local MCP service.
- One-line setup and launch.
- CLI tool built for ease-of-use and seamless Trigslink integration.
- Ideal for developers running agents locally for registration and public access.
## 📦 Installation
### 🔹 Prerequisites
- Python 3.7+
- `cloudflared` installed and available in your system `PATH`.
To install `cloudflared`:
[Cloudflared installation guide](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation/)
### 🔹 Install via pip
```bash
git clone https://github.com/your-org/trigslink-tunnel.git
cd trigslink-tunnel
pip install .
⚙️ Usage
trigslink-tunnel
Optional: Specify port
trigslink-tunnel 8080
(This will expose http://localhost:8080 via a secure public URL.)
💡 Example Output
🚀 Starting tunnel on port 9000...
Cloudflare Tunnel URL:
https://cool-agent-123.trycloudflare.com
Copy this URL and paste it into the “Service URL” field in the Trigslink MCP Registration Form.
🧩 Trigslink Integration
Once your MCP service is exposed via Cloudflare, the tunnel URL can be submitted via the UI form to complete your MCP registration.
🛠 Development
To test changes locally:
pip install -e .
To uninstall:
pip uninstall trigslink-tunnel
🔒 Security
- This tool exposes your local server to the internet.
- Ensure the backend service you’re exposing is secured.
- Tunnel URLs are random and ephemeral, but use at your own discretion.
📄 License
MIT License. © 2025 Trigslink Team.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trigslink_tunnel-0.1.0.tar.gz.
File metadata
- Download URL: trigslink_tunnel-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9bba897fb2cabdbdcd691243409cd63c745ff27cb89e6503a448cda91251942
|
|
| MD5 |
dca7eeb002e2173306002bd9e6118e09
|
|
| BLAKE2b-256 |
b3753a274dee06179a853300ef929388398948a16f747ab0e2886ff9653f3d0d
|
File details
Details for the file trigslink_tunnel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trigslink_tunnel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b2f100fa1eaebe7a8cb9cb5752de7cab9d2bb504bff0f3414c8bcf3cafeb9fc
|
|
| MD5 |
2a394d29ca93f55c0fdf4b751d531269
|
|
| BLAKE2b-256 |
ebb9d9f20b802d117a4bb4b4defa4381185b3c27063d5592dd22215fc24320cd
|