Polylane开发者
基于Polylane构建所需的一切:API、MCP服务器、CLI、SDK,以及如何进行身份验证。智能体注意:本页也提供markdown版本,见/developers.md。
Polylane快速开始
- 获取访问权限:Polylane尚未正式发布;在首页加入候补名单(或使用
POST https://polylane.com/api/auth/email)。 - 登录:收到邀请后,在console.polylane.com登录,并连接一个云账户或仓库。
- 签发API密钥:在控制台设置中创建一个密钥(
sk_...)。 - 第一个请求:
curl https://api.polylane.com/v1/auth/whoami -H "x-api-key: sk_..." - 连接智能体:把任何MCP客户端指向
https://mcp.polylane.com/mcp。OAuth客户端在https://mcp.polylane.com/register自行注册。
Polylane API
- 基础URL:
https://api.polylane.com/v1 - OpenAPI 3.0规范:https://api.polylane.com/v1/doc(镜像于/openapi.json)
- API catalog (RFC 9727):/.well-known/api-catalog
- 智能体身份验证指南:/auth.md
Polylane MCP服务器
- 产品(OAuth 2.0或API密钥):
https://mcp.polylane.com/mcp,工具包括search、execute、searchTools、runTool、runCode、startMapping、advanceMapping、getMappingStatus。服务器卡片。 - 文档(无需认证):
https://docs.polylane.com/mcp,列出并读取每一个文档页面。
Polylane CLI
为编程智能体驾驭而生:处处提供结构化输出和非交互式参数。
curl -fsSL https://polylane.com/setup.sh | bash # macOS / Linux
irm https://polylane.com/setup.ps1 | iex # Windows
polylane auth signup --email you@example.com 完整的CLI文档:docs.polylane.com/coding-agents/cli。
SDK
速率限制
请求按凭据进行速率限制。超出限制时API返回429:请退避并在存在Retry-After时遵守它,使用指数退避而不是紧密循环重试。
版本与弃用
API在URL路径中标注版本(/v1)。破坏性变更只随新版本发布。弃用会在构建日志中公告,并在移除前写入文档;被弃用的接口在过渡期内继续可用。
机器可读入口
- /llms.txt:面向智能体的站点索引
- /agent.json:结构化的产品视图(也可通过
/?mode=agent访问) - /.well-known/mcp:MCP发现
- /.well-known/agent-card.json:A2A智能体卡片
- /.well-known/agent-skills/index.json:技能索引
状态
Polylane平台的实时可用性:status.polylane.com。
支持
发邮件至boris@coreplane.ai,或在X上联系@polylanehq。