managing-mcp-servers
できること
このスキルは、AIツールを外部のサービスに接続するMCPサーバーを、ThinkRainアプリの中で設定する方法をAIに示します。ドキュメントやブラウザのツールを、アシスタントにつなぎたい人向けです。
使う場面
- ✓ドキュメントやブラウザのツールなど、外部のサービスをアシスタントに追加したいとき。
- ✓MCPサーバーのツールが見つからない、サインインが必要、または失敗しているとき。
- ✓MCPサーバーをオンオフしたり、削除したりしたいとき。
スキルのリンク
https://github.com/JetBrains/thinkrail/blob/main/packages/server/skills/managing-mcp-servers/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のアシスタントを会社のドキュメントサーバーに接続し、サインインが必要かどうか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、サーバーの設定ファイルを編集し、承認やサインインのためにThinkRainの設定ページへあなたを案内し、秘密情報を設定ファイルに書き込むことは決してしません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
MCPサーバーの設定はどこに保存しますか?
すべてのプロジェクトのためのユーザーレベルのファイル、またはあなたが設定で承認するプロジェクトのファイルにです。
パスワードはファイルに保存されますか?
いいえ。秘密情報は環境変数かサインインの手順から読み取られ、ファイルには書き込まれません。
サーバーを実行する前に承認が必要ですか?
プロジェクトのファイルの場合は、はい。設定で承認するまでサーバーは動かず、あとで変更すると再び承認が必要です。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 7.1k
- ランキング
- #13497
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
asking-user-questions
7.1kエージェントが、明確な質問を、良い回答の選択肢とともに何回かに分けて行い、未解決の点が決まるまで続けるやり方を教えます。
brainstorming
7.1kエージェントが、機能、振る舞いの変更、またはバグ修正について、作る前にあなたと話し合い、合意した設計を記録できるよう支援します。
choosing-a-workflow
7.1kエージェントが、新しいプロジェクト、プルリクエスト、製品の振る舞いの変更のために、適切なThinkRainのワークフローを選べるよう支援します。
importing-a-codebase
7.1kエージェントが、既存のコードベースを読み、最初のプロジェクトのスペック案を作り、コードが不明確な点だけを尋ねられるよう支援します。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。