參考
文件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": {}
}
}
}
連接後,你編輯器的代理會在對話中搜尋文件、引用確切的頁面,並隨文件變更保持最新。