Enabling MCP for Documents
First, you have to enable MCP in order for Craft to setup an MCP server for your documents. Then, you use the MCP URL to connect to the server from 其他 MCP 用戶端.

步驟1
Open the “Imagine” tab

步驟2
Click “Create Your First MCP Connection”

步驟3
Configure your MCP connection with a name.

步驟4
Click “Add Document” to select which documents this MCP connection has access to.

步驟5
The MCP URL that will be used to interact with your document is now displayed at the top.
在其他 MCP 用戶端中新增 MCP 連接器

步驟1
確定要使用的 MCP 用戶端,然後轉到其設定或設定檔。
步驟2
複製以下 MCP 設定並將其貼上到 MCP 用戶端的 MCP 設定檔中。將
craft 替換為您的 MCP 伺服器的描述性名稱。 將 ' <'MCP_URL> 替換為 Craft 中的 MCP URL。部分 MCP 用戶端會提供一個表單來新增 MCP 伺服器。如果遇到這種情況,請填寫表單並輸入 Craft 提供的 MCP URL。
現在您可以向 MCP 客戶詢問您的 Craft 文檔,甚至可以讓他們更新文檔。您可以從下面的例子開始:
點擊範例即可將提示複製到剪貼簿





