参考
文档MCP服务器
把任何MCP客户端指向文档服务器,你的智能体就能在对话过程中搜索和阅读这些页面。
文档站点在https://docs.polylane.com/mcp运行它自己的Model Context Protocol服务器,所以任何MCP客户端都可以在你工作时搜索和阅读这些页面。它只读取文档;要让智能体访问你的工作区(拓扑、问题、线程),使用平台MCP服务器。
工具
| 工具 | 说明 |
|---|---|
list-pages | 列出每个页面及其标题、路径、描述和完整URL。它不接受参数,智能体先调用它来了解有什么。 |
get-page | 完整返回一个页面:标题、描述和markdown。它接受一个参数path,即来自list-pages的页面路径,例如/investigate/autofix。 |
资源
支持MCP资源的客户端可以不调用工具就读取文档。
| 资源 | URI | 说明 |
|---|---|---|
docs-index | https://docs.polylane.com/llms.txt | llms.txt索引:每个页面及其标题、描述和原始markdown URL,按章节组织。 |
docs-full | https://docs.polylane.com/llms-full.txt | 每个页面的完整内容,合并在一份markdown文档中。 |
两个URI也都是普通的HTTPS URL,所以任何不会说MCP的东西都可以直接获取它们。
在你的编辑器中安装
Terminal
claude mcp add --transport http polylane-docs https://docs.polylane.com/mcp
opencode.json
{
"mcp": {
"polylane-docs": {
"type": "remote",
"url": "https://docs.polylane.com/mcp"
}
}
}
.cursor/mcp.json
{
"mcpServers": {
"polylane-docs": {
"type": "http",
"url": "https://docs.polylane.com/mcp"
}
}
}
.vscode/mcp.json
{
"servers": {
"polylane-docs": {
"type": "http",
"url": "https://docs.polylane.com/mcp"
}
}
}
.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"polylane-docs": {
"type": "http",
"url": "https://docs.polylane.com/mcp"
}
}
}
.config/zed/settings.json
{
"context_servers": {
"polylane-docs": {
"source": "custom",
"command": "npx",
"args": ["mcp-remote", "https://docs.polylane.com/mcp"],
"env": {}
}
}
}
连接之后,你编辑器的智能体会在对话过程中搜索文档,引用确切的页面,并随文档变化保持最新。