跳到主內容

Theme / 0.3.2

ThinkRail

圍繞 pi 代理的代理式 IDE

基礎觀念

MCP 伺服器:能力很強,扣板機的是你

🟡 中階|ThinkRail 讀 pi 的 mcp.json,可從 Settings 新增(含 presets)。非唯讀的 MCP 呼叫會先在對話裡問你;repo 定義的伺服器預設關閉,核准才開;OAuth 直接從 Settings 登入。

設定在 pi,介面在 ThinkRail

README 的〈What you get · MCP servers〉:

Connect the MCP servers in your pi mcp.json (or add them, and a few presets, from Settings).

MCP (Model Context Protocol) 伺服器的設定檔就是 pi 的 mcp.json——沒有 ThinkRail 專屬格式。Settings → MCP 頁可以新增伺服器,也提供 presets(常用伺服器的現成定義)。

審批制:非唯讀先問

README 原文:

ThinkRail asks in the chat before calls the server does not mark read-only (or always allows the tools you trust in a project).

三段式授權:

呼叫類型 行為
唯讀(read-only) 直接執行
非唯讀 先在對話裡問你,批准才跑
你信任的工具 可在專案層級 always allow

Repo 帶來的伺服器:預設關

Keeps servers a repository defines off until you approve them.

clone 一個帶 MCP 設定的 repo,伺服器不會自動連——先核准。這是供應鏈安全的基本款:repo 作者不能替你決定要連哪些外部服務。

OAuth 與透明度

Signs you in to OAuth servers from Settings, and shows each chat’s servers next to its background commands and subagents.

  • OAuth 登入流程就在 Settings 裡走完
  • 每個對話用了哪些伺服器,顯示在 background commands 與 subagents 旁——呼應官網 transparency 卡:標題 “See what your agents are doing”,內文 “No black boxes.”(見工作台課)

與 TechSpecs 其他主題的關係

  • pstack 的 skills 很多走 MCP 形式接入——在 ThinkRail 裡就是一條 mcp.json 紀錄+審批。
  • 想了解 MCP 設定檔細節,回到 ThinkRail README 的 MCP 段(以官方文件為準)。

下一課

模型從哪來、錢怎麼算:供應商與模型。