본문으로 건너뛰기
Skillpedia
커넥터 (MCP)7.1k · #13497

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/JetBrains/thinkrail/blob/main/packages/server/skills/managing-mcp-servers/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.json in 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 with tool_search first), direct (a few always-useful tools), or hidden. codemode is treated as deferred.
  • Prefer the user-level file for personal servers; only put a server in .pi/mcp.json when 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\"" }
    }
  }
}
  • /readonly is GitHub's documented read-only mode (same as an X-MCP-Readonly: true header). Use https://api.githubcopilot.com/mcp/ only when the user asks for tools that change data.
  • The header command runs each time a chat connects. While gh is logged out it fails instead of sending an empty token; the user runs gh auth login in 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 a deferred server, call tool_search to 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬