managing-mcp-servers
What it does
This skill shows the AI how to set up MCP servers, which connect AI tools to outside services, inside the ThinkRail app. It is for people who want to connect tools such as documentation or browsers to their assistant.
When to use it
- ✓When you want to add an outside service, such as a documentation or browser tool, to your assistant.
- ✓When a tool from an MCP server is missing, needs sign-in, or fails.
- ✓When you want to turn an MCP server on or off, or remove one.
Skill link
https://github.com/JetBrains/thinkrail/blob/main/packages/server/skills/managing-mcp-servers/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Connect my assistant to our company docs server, and tell me if it needs me to sign in.”
5 new skills a week. 1 minute to read.
How it works
The AI edits the configuration file for the server, points you to the ThinkRail settings page for approvals and sign-in, and never writes secrets into the file.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Where do I keep my MCP server settings?
In a user-level file for all projects, or in a project file that you approve in Settings.
Will my password be saved in the file?
No. Secrets are read from the environment or a sign-in step, never written into the file.
Do I need to approve a server before it runs?
For a project file, yes. The server does not run until you approve it in Settings, and any later change needs approval again.
Details
Original description by the author
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
Popularity
- GitHub stars
- 7.1k
- Ranking position
- #13497
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
asking-user-questions
7.1kTeaches your agent how to ask you clear questions in rounds, with good answer options, until the open points are settled.
brainstorming
7.1kHelps your agent talk through a feature, behavior change or bug fix with you before building it, and record the agreed design.
choosing-a-workflow
7.1kHelps your agent pick the right ThinkRail workflow for a new project, a pull request, or any change to what the product does.
importing-a-codebase
7.1kTeaches your agent to read an existing codebase and draft its first set of project specs, asking you only where the code is unclear.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.