Imagine With Craft

MCP로 Craft를 OpenCode에 연결하는 방법
문서에 MCP 서버를 활성화하면 OpenCode이 여러분의 콘텐츠와 직접 상호작용할 수 있습니다. 이 가이드는 MCP를 이용해 Craft와 OpenCode을 연결하는 방법을 단계별로 안내합니다.
Adding an MCP Connector in OpenCode
Create a new connector in OpenCode and use the MCP URL to connect the two services.
Step 1
imagine.connectGuides.mcpClients.opencode_mcp.steps.step1.description.text1
- 프로젝트 설정:
opencode.json파일을 프로젝트 루트에 생성하세요(권장). - 전역 설정:
~/.config/opencode/opencode.json모든 프로젝트에 적용
opencode.jsonStep 2
다음 내용을 설정 파일에 붙여넣으세요. 새 파일을 만들 경우, 다음 내용을 그대로 사용하시면 됩니다.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"craft": {
"type": "remote",
"url": "https://mcp.craft.do/my/mcp"
}
}
}Step 3
터미널에서 `
opencode mcp auth craft`를 실행하여 인증하세요. Craft 계정으로 로그인할 수 있는 브라우저 창이 열립니다.opencode mcp auth craftStep 4
Craft 인증 페이지가 표시되는 브라우저 창이 열립니다. 연결하려는 공간을 선택하고 "승인"을 클릭하여 액세스 권한을 부여하세요.
Craft MCP 서버 설정이 완료되었습니다! OpenCode를 실행하고 Craft 문서 콘텐츠와 상호 작용해 보세요.
You can now ask OpenCode about your documents, and even have them updated. Try something like this to get started:
Click an example to copy the prompt to your clipboard
Some Ideas to Get You Started
Browse Examples

Personal Blog
Build a personal blog powered by Craft docs. Auto-syncs content via API — publish from your notes app.
더 알아보기

Reading Log
Track books and capture quotes with Claude or ChatGPT via MCP.
더 알아보기

Plant Dashboard
A live plant care dashboard built with Lovable. Pulls watering schedules and care tips from your Craft doc.
더 알아보기