managing-mcp-servers
하는 일
이 스킬은 AI가 ThinkRail 앱 안에서 MCP 서버를 설정하는 방법을 보여줍니다. MCP 서버는 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에게 요청하는 예시
“어시스턴트를 우리 회사 문서 MCP 서버에 연결해 주세요. 로그인이 필요한지도 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 서버의 설정 파일을 편집하고, 승인과 로그인은 ThinkRail 설정 페이지에서 하도록 안내합니다. 비밀 값은 파일에 절대 쓰지 않습니다.
기술 내용 (원본 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에이전트가 새 프로젝트, 풀 리퀘스트, 제품 기능 변경에 맞는 ThinkRail 워크플로를 고르도록 돕습니다.
importing-a-codebase
7.1k에이전트가 기존 코드베이스를 읽고 첫 프로젝트 명세 초안을 작성하도록 가르칩니다. 코드가 불분명한 부분만 질문합니다.
비슷한 스킬
mcporter
394k에이전트가 HTTP나 stdio로 MCP 서버와 그 도구를 목록화하고, 호출하고, 점검하며, 로그인 설정을 관리하도록 돕습니다.
fastmcp
260kAPI, 데이터베이스, 파일에 AI 어시스턴트가 도구로 접근할 수 있도록 Python MCP 서버를 만들고 테스트하고 배포하도록 돕습니다.
mcp-oauth-remote-gateway
260kHermes가 서버에서 실행될 때 일반 브라우저 로그인이 닿지 않는 경우를 위해, 원격 MCP 서버의 OAuth 로그인을 단계별로 안내합니다.