managing-mcp-servers
Fungsinya
Skill ini menunjukkan kepada AI cara menyiapkan server MCP, yaitu penghubung yang menghubungkan alat AI dengan layanan luar, di dalam aplikasi ThinkRail. Skill ini ditujukan untuk orang yang ingin menghubungkan alat seperti dokumentasi atau browser ke asisten mereka.
Kapan dipakai
- ✓Saat Anda ingin menambahkan layanan luar, seperti alat dokumentasi atau browser, ke asisten Anda.
- ✓Ketika sebuah alat dari server MCP hilang, perlu masuk, atau gagal berjalan.
- ✓Ketika Anda ingin mengaktifkan atau menonaktifkan server MCP, atau menghapusnya.
Link skill
https://github.com/JetBrains/thinkrail/blob/main/packages/server/skills/managing-mcp-servers/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
“Hubungkan asisten saya ke server dokumentasi perusahaan kami, dan beri tahu saya jika perlu saya masuk.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI mengedit file konfigurasi untuk server tersebut, mengarahkan Anda ke halaman pengaturan ThinkRail untuk persetujuan dan proses masuk, dan tidak pernah menulis rahasia ke dalam file.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Managing MCP servers in ThinkRail
ThinkRail uses pi's built-in MCP support but has no pi executable. Never run pi mcp add,
pi mcp login or other pi commands; edit the configuration files and point the user at
Settings › MCP servers for everything that needs them.
Where servers are configured
- User level — pi's agent directory, usually
~/.pi/agent/mcp.json: available in every project. - This repository —
.pi/mcp.jsonin the worktree, tracked in git. A server defined here does not run until the user approves it in Settings, and any later change to its entry needs approval again. It only loads when the user trusts the project.
Both files use pi's format:
{
"mcpServers": {
"docs": { "url": "https://example.com/mcp" },
"browser": { "command": "npx", "args": ["-y", "@playwright/mcp@0.0.83"] }
}
}
- Pin package versions in
args; never@latest. - Never write a secret into either file. Reference it as
${ENV_VAR}(from the host's environment) or!command(the command's output, for example!gh auth token), or let the user sign in. exposure:deferred(the default here — load the server's tools withtool_searchfirst),direct(a few always-useful tools), orhidden.codemodeis treated asdeferred.- Prefer the user-level file for personal servers; only put a server in
.pi/mcp.jsonwhen the user wants it shared with the repository.
GitHub
GitHub is a recipe, not a preset: its hosted server, authenticated with the user's GitHub CLI sign-in. Add it to the user-level file (Settings › MCP servers offers the same entry under Paste JSON):
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/readonly",
"headers": { "Authorization": "!t=$(gh auth token) && echo \"Bearer $t\"" }
}
}
}
/readonlyis GitHub's documented read-only mode (same as anX-MCP-Readonly: trueheader). Usehttps://api.githubcopilot.com/mcp/only when the user asks for tools that change data.- The header command runs each time a chat connects. While
ghis logged out it fails instead of sending an empty token; the user runsgh auth loginin a terminal. - Unverified: whether GitHub accepts the GitHub CLI token's scopes for every toolset. If the server
rejects it, ask the user for a token in an environment variable:
"Authorization": "Bearer ${GITHUB_TOKEN}".
After editing
The host reloads idle chats on its own and a busy chat picks the change up when it is idle. Tell the user when a step is theirs: approving a repository server, or Sign in for a server that uses OAuth (both in Settings › MCP servers). Do not ask them to restart ThinkRail.
Using MCP tools
- Tools are named
mcp__<server>__<tool>. For adeferredserver, calltool_searchto load them. - Subagents cannot call MCP tools: call them yourself and put what the subagent needs in its task.
- ThinkRail asks the user before a call that may change data. A denied or cancelled call is final for that call; do not retry it without asking the user first.
Pertanyaan umum
Di mana saya menyimpan pengaturan server MCP?
Di file tingkat pengguna untuk semua proyek, atau di file proyek yang Anda setujui di Pengaturan.
Apakah kata sandi saya disimpan di file?
Tidak. Rahasia dibaca dari lingkungan atau langkah masuk, tidak pernah ditulis ke dalam file.
Apakah saya perlu menyetujui server sebelum berjalan?
Untuk file proyek, ya. Server tidak berjalan sampai Anda menyetujuinya di Pengaturan, dan setiap perubahan berikutnya perlu disetujui lagi.
Detail
Deskripsi asli dari pembuat
Use when the user asks to add, change, remove, enable or disable an MCP server, or when an MCP tool is missing, needs sign-in, fails, or was blocked. ThinkRail runs pi in-process, so there is no `pi` command to call.
repo: JetBrains/thinkrail
Popularitas
- Bintang GitHub
- 7.1k
- Peringkat
- #13497
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
asking-user-questions
7.1kMengajari agent Anda cara mengajukan pertanyaan yang jelas secara bertahap, dengan pilihan jawaban yang baik, sampai poin-poin yang masih terbuka selesai.
brainstorming
7.1kMembantu agent Anda membahas fitur, perubahan perilaku, atau perbaikan bug bersama Anda sebelum dibangun, lalu mencatat desain yang disepakati.
choosing-a-workflow
7.1kMembantu agent Anda memilih alur kerja ThinkRail yang tepat untuk proyek baru, pull request, atau perubahan pada fitur produk.
importing-a-codebase
7.1kMengajari agent Anda membaca kode proyek yang sudah ada dan menyusun draf spesifikasi awalnya, hanya bertanya jika kodenya tidak jelas.
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.