remote-mcp
Fungsinya
Skill ini membuat brain di komputer Anda tersedia melalui MCP, sehingga perangkat lain dan aplikasi AI Anda bisa mengaksesnya. Skill memakai Tailscale sebagai koneksi pribadi secara default dan hanya membuka tautan publik jika Anda memilihnya.
Kapan dipakai
- βSaat Anda ingin memakai brain dari perangkat lain, aplikasi desktop, atau agent cloud.
- βKetika alat AI berbasis cloud perlu menjangkau brain Anda dan Anda menerima endpoint publik.
- βSaat Anda ingin memberi satu aplikasi akses terbatas ke brain Anda.
Link skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/remote-mcp/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuat brain saya dapat dijangkau dari laptop dan ponsel saya melalui jaringan pribadi, dan berikan alamat koneksinya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memasang dan masuk ke Tailscale, mempublikasikan server lokal di jaringan pribadi Anda, dan menjalankannya sebagai layanan latar belakang. Setelah itu Anda memberi akses kepada setiap klien secara terpisah.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Remote MCP β use your brain from anywhere
The brain already runs on the user's computer. This skill makes it reachable over MCP from their other devices and from the agents they use elsewhere, without moving the data and without putting a database on the public internet. Tailscale is the default transport; publishing is one command, access is one scoped grant per client.
Contract
This skill guarantees:
- Tailscale by default.
gbrain mcp exposepublishes the local server withtailscale serve(HTTPS on the tailnet, nothing public). ngrok and cloud hosts stay documented alternatives, never the first suggestion. - Funnel is explicit. Cloud agents whose runtime is not on the tailnet
(Grok Bot, Muse, ChatGPT, Claude.ai / Cowork, Perplexity) need
--funnel, which makes the same*.ts.netname publicly reachable. Say so before running it; the endpoint is then protected by gbrain's OAuth / bearer auth and scoped grants, not by the network. - Consent before system changes. Installing Tailscale, running
tailscale up, writing a serve/funnel config and creating a user service are host-state changes. Show the operator the printed plan and get a yes before passing--yes. - Engine-free.
gbrain mcp exposenever opens the database. On a PGLite brain the running server owns the single-writer lock, so every later provisioning step goes through the server's authenticated admin API (--admin-token-file), never a second process on the database. - No secrets in chat. The admin token lives in
the receipt's
admin_token_file(normally~/.gbrain/serve/admin-token); machine and confidential OAuth credentials land in a private--credentials-outfile. Public PKCE has no secret. Quote redacted receipts; deliver a requested owner login link privately and unopened. - Owner authority is separate. The expose-managed wrapper loads its
token file as
GBRAIN_ADMIN_BOOTSTRAP_TOKEN; that file authorizesgbrain mcp adminandmcp grantagainst that server. An ordinary MCP token, client secret, or OAuthadminscope does not. With--no-service, use the independently running server's actual configured owner credential; creating an expose token file does not configure that process. - Least privilege. One client per consumer,
memory-writerfor ordinary memory use ormemory-readerfor read-only access. Broader access requires the user's request. Neveroperator/full/adminto make a convenience check pass. - Server checks are not native activation.
gbrain mcp verifyaccepts a private machine handoff and checks the access that grant permits. Native OAuth is verified through the native client's authenticated connection. A generated file or server probe does not prove that client loaded its tools.
Decision table β who is connecting?
| Client | Shape | Command |
|---|---|---|
| Your own devices: Claude Desktop, Claude Code / Codex / opencode on another laptop, phone apps joined to the tailnet | tailnet-only HTTPS (default) | gbrain mcp expose --dry-run (preview; the run itself is Phase 2, after consent) |
| Cloud agents running in a vendor's cloud: Grok Bot, Muse, ChatGPT connector, Claude.ai / Cowork, Perplexity Computer | public HTTPS on the same *.ts.net name |
gbrain mcp expose --funnel --dry-run (preview; Phase 2 after consent) |
Cloud agent whose runtime you can join to your tailnet (userspace tailscaled, ephemeral auth key) |
tailnet-only | Advanced, unverified, not automated β see the remote MCP guide |
| Local agents on the same machine (Claude Code, Codex, opencode) | loopback β no Tailscale needed | Postgres: gbrain bootstrap harness --yes --port 3131. PGLite: mint the token BEFORE the service runs (gbrain auth create local-agents --scopes read,write β before gbrain mcp expose, or while the service is briefly stopped) and pass gbrain bootstrap harness --yes --port 3131 --token <value>; OR use the scoped path gbrain mcp grant <name> --harness <id> --profile memory-writer --source default --url http://127.0.0.1:3131/mcp --admin-token-file ~/.gbrain/serve/admin-token --credentials-out /private/<name>.json then gbrain connect http://127.0.0.1:3131/mcp --harness <id> --credentials-file /private/<name>.json --install (MCP wiring only, no per-turn hooks) |
| Thin client only (this machine has no brain) | β | Stop: |
Pertanyaan umum
Apakah brain saya menjadi publik setelah ini?
Tidak. Secara default hanya tersedia di jaringan pribadi Anda. Akses publik memerlukan pilihan terpisah yang eksplisit.
Apakah data saya dipindahkan ke cloud?
Tidak. Data Anda tetap berada di komputer Anda, dan hanya koneksinya yang dibagikan.
Apakah sistem saya akan diubah tanpa bertanya?
Tidak. Pemasangan perangkat lunak dan perubahan pengaturan jaringan memerlukan persetujuan eksplisit Anda terlebih dahulu.
Detail
Deskripsi asli dari pembuat
Publish the user's own gbrain over MCP so other devices, desktop apps and cloud agents can reach it. `gbrain mcp expose` installs and signs in Tailscale, publishes the running `gbrain serve --http` on the tailnet (HTTPS, tailnet-only by default; Funnel only when a client lives in a vendor cloud), keeps the server alive as a user service, and hands back the MCP URL. Then register one least-privilege client per consumer, choose native OAuth/PKCE or a private machine handoff for that client, and verify the connection inside the intended harness.
repo: garrytan/gbrain
Popularitas
- Bintang GitHub
- 31k
- Peringkat
- #9308
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
gbrain
31kMemungkinkan agent Anda mencari fakta tentang orang, proyek, dan keputusan di basis pengetahuan bersama perusahaan, serta menyimpan catatan penting.
brain-ingest-gate
31kMemeriksa konten baru terhadap basis pengetahuan yang sudah ada sebelum ditambahkan, untuk menghindari duplikat dan menyelesaikan entitas bernama lebih dulu.
brain-link-discipline
31kMemastikan agent Anda menyertakan tautan yang berfungsi ke setiap halaman basis pengetahuan yang dilaporkannya, dalam pesan yang sama, agar Anda bisa langsung membukanya.
brain-ops
31kMemberi agent Anda rutinitas inti untuk basis pengetahuan: memeriksa konteks yang ada terlebih dahulu, menyimpan catatan eksplisit beserta sumbernya, dan menautkan halaman terkait.
Skill serupa
mcporter
394kMembantu agent Anda mendaftar, memanggil, dan memeriksa server MCP beserta alatnya lewat HTTP atau stdio, serta mengatur pengaturan login mereka.
fastmcp
260kMembantu Anda membangun, menguji, dan menerapkan server MCP Python yang memberi asisten AI akses ke API, basis data, atau file Anda sebagai alat.
mcp-oauth-remote-gateway
260kMemandu Anda masuk dengan OAuth untuk server MCP jarak jauh saat Hermes berjalan di server, di mana proses masuk browser biasa tidak dapat menjangkaunya.