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,把自动修复的实现委托给Devin云端智能体。Polylane调查并提出修复;Devin在你的GitHub上打开拉取请求。使用你自己的Devin API访问权限。
设置
- 在Devin中,进入Devin API → Service users并配置一个服务用户。
- 复制它的令牌(以
cog_开头)。 - 把令牌粘贴到Polylane中。组织会被自动检测。
连接后,Devin成为工作区创建的每个自动修复的执行器。要把自动修复重新路由回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>