managing-mcp-servers
यह क्या करती है
यह स्किल AI को दिखाती है कि ThinkRail ऐप के अंदर MCP सर्वर कैसे सेट करें। MCP सर्वर AI टूल्स को बाहरी सेवाओं से जोड़ते हैं। यह उन लोगों के लिए है जो डॉक्यूमेंटेशन या ब्राउज़र जैसे टूल अपने असिस्टेंट से जोड़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप अपने असिस्टेंट से किसी बाहरी सेवा, जैसे डॉक्यूमेंटेशन या ब्राउज़र टूल, को जोड़ना चाहते हैं।
- ✓जब MCP सर्वर का कोई टूल गायब हो, साइन-इन माँगे या विफल हो।
- ✓जब आप किसी MCP सर्वर को चालू या बंद करना, या हटाना चाहते हैं।
Skill का लिंक
https://github.com/JetBrains/thinkrail/blob/main/packages/server/skills/managing-mcp-servers/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे असिस्टेंट को हमारे कंपनी डॉक्स सर्वर से जोड़िए, और बताइए कि क्या उसके लिए मुझे साइन-इन करना होगा।”
हर हफ़्ते 5 नई skills, 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 सर्वर सेटिंग्स कहाँ रहती हैं?
सभी प्रोजेक्ट्स के लिए उपयोगकर्ता-स्तर की फ़ाइल में, या किसी प्रोजेक्ट फ़ाइल में जिसे आप Settings में मंज़ूर करें।
क्या मेरा पासवर्ड फ़ाइल में सहेजा जाएगा?
नहीं। सीक्रेट्स एनवायरनमेंट या साइन-इन चरण से पढ़े जाते हैं, फ़ाइल में कभी नहीं लिखे जाते।
क्या चलने से पहले सर्वर को मंज़ूरी चाहिए?
प्रोजेक्ट फ़ाइल के लिए हाँ। सर्वर तब तक नहीं चलता जब तक आप उसे Settings में मंज़ूर न करें, और बाद का हर बदलाव फिर से मंज़ूरी माँगता है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
asking-user-questions
7.1kयह आपके एजेंट को सही विकल्पों के साथ आपसे साफ़ सवाल दौरों में पूछना सिखाती है, जब तक खुले बिंदु तय न हो जाएँ।
brainstorming
7.1kयह आपके एजेंट को किसी फ़ीचर, व्यवहार बदलाव या बग फ़िक्स को बनाने से पहले आपके साथ बात करके तय डिज़ाइन दर्ज करने में मदद करती है।
choosing-a-workflow
7.1kयह आपके एजेंट को नए प्रोजेक्ट, pull request या प्रोडक्ट में किसी भी बदलाव के लिए सही ThinkRail वर्कफ़्लो चुनने में मदद करती है।
importing-a-codebase
7.1kयह आपके एजेंट को मौजूदा कोडबेस पढ़ने और उसकी पहली प्रोजेक्ट स्पेक्स का मसौदा बनाने सिखाती है, और सिर्फ़ वहीं सवाल पूछती है जहाँ कोड साफ़ नहीं है।
मिलती-जुलती skills
mcporter
394kयह आपके एजेंट को HTTP या stdio पर MCP सर्वर और उनके टूल सूचीबद्ध करने, चलाने और जांचने देती है, और उनकी साइन-इन सेटिंग्स प्रबंधित करती है।
fastmcp
260kआपको Python में MCP सर्वर बनाने, जाँचने और तैनात करने में मदद करती है, जो AI सहायकों को आपके API, डेटाबेस या फ़ाइलों तक टूल के रूप में पहुँच देता है।
mcp-oauth-remote-gateway
260kजब Hermes किसी सर्वर पर चलता है, तो रिमोट MCP सर्वर के लिए OAuth साइन-इन हाथ से करने में मदद करती है, जहाँ सामान्य ब्राउज़र साइन-इन नहीं पहुँच पाता।