code agent
Devin
Connect your Devin organization to delegate autofix implementation to Devin cloud agents. Polylane investigates and proposes fixes; Devin opens the pull request on your GitHub. Bring your own Devin API key.
連接
從終端機連接Devin。傳入--help可查看Devin接受的旗標。
Terminal
polylane integration connect --type devin來自Devin API的服務使用者權杖。
連接Devin,把Autofix的實作委派給Devin雲端代理。Polylane調查並提出修復;Devin在你的GitHub上開啟pull request。請自備Devin API存取權。
設定
- 在Devin中前往Devin API → Service users並佈建一個服務使用者。
- 複製它的權杖(以
cog_開頭)。 - 把權杖貼到Polylane。組織會自動偵測。
連接會讓Devin成為工作區建立的每個Autofix的執行器。要把Autofix導回Polylane執行器,請在Settings中Devin整合頁面上關閉Use Devin for all autofixes。
你的權杖在儲存前會先加密,代理永遠看不到它。你的Devin方案必須包含API存取。
給Devin使用Polylane的MCP工具
Devin工作階段可以在實作修復時透過MCP直接查詢Polylane(事件、調查、基礎設施圖、可觀測性):
- 在Polylane中開啟Settings → Coding agents並建立一把API金鑰。一鍵就會建立帶有MCP工具所檢查的每個讀取範圍的金鑰。
- 在Devin中前往Settings → Connections → MCP servers並點擊Add a custom MCP(需要Manage MCP Servers權限)。
- 選擇Streamable HTTP傳輸,並把伺服器URL設為
https://mcp.polylane.com/mcp。 - 把bearer權杖設為步驟1的API金鑰。Devin會以
Authorization: Bearer <key>送出它。
中斷連接
在Polylane中斷Devin的連接,然後在Devin中撤銷該服務使用者權杖。
中斷連接
中斷連接會停止所有同步與檢查,並刪除Polylane持有的憑證。 Polylane在Devin中建立的一切也會一併移除;不會留下任何東西。
Terminal
polylane integration disconnect <id>