One-time setup
Connect Knowns to Cursor (or any MCP-compatible editor) so your AI assistant can read tasks, docs, and memory without copy-pasting.
What You'll Set Up
- MCP server config for your editor
- AI assistant with live access to your tasks, docs, and memory
- A test conversation proving it works
Initialize Knowns
If you haven't already:
cd your-project
knowns init
your-project/ ├── .knowns/ ← created by init │ ├── docs/ │ ├── tasks/ │ └── config.json ├── KNOWNS.md ← project guidelines └── .mcp.json ← MCP config (next step)
Auto-Setup MCP
The fastest path:
knowns mcp setup
This creates the right config file for your environment. For Cursor, it writes .cursor/mcp.json:
{
"mcpServers": {
"knowns": {
"command": "knowns",
"args": ["mcp"]
}
}
}
Other editors
The same config works for Claude Code (.mcp.json), Kiro (.kiro/settings/mcp.json), and Continue (.continue/config.json). See the MCP Integration docs for all platforms.
Restart Your Editor
After adding the config, restart your editor so it picks up the MCP server.
Test It
Open a chat with your AI assistant and try:
You: What tasks do I have in this project?
AI: [Calls tasks({ action: "list" })]
You have 3 tasks:
- task-abc: "Add user auth" (in-progress)
- task-def: "Fix search bug" (todo)
- task-ghi: "Update docs" (done)You: Show me the auth spec
AI: [Calls docs({ action: "get", path: "specs/auth", smart: true })]
Here's your auth spec:
- AC-1: Users can register...
- AC-2: Users can login...You: What patterns do we use in this project?
AI: [Calls memory({ action: "list", layer: "project" })]
Project patterns:
- "Express + TypeScript with Prisma ORM"
- "JWT auth with bcrypt hashing"
- "Controller → Service → Repository pattern"Use It Daily
Now your AI assistant has full context:
You: Work on task abc AI: [Reads task, linked spec, related docs, project memory] I see task "Add user auth" with 5 ACs linked to the auth spec. Starting implementation...
What MCP Gives You
| Without MCP | With MCP |
|---|---|
| Copy-paste task descriptions into chat | AI reads tasks directly |
| Re-explain project conventions every session | AI loads memory automatically |
| Manually track what's done | AI checks ACs and updates status |
| Context lost between sessions | Memory persists forever |
Troubleshooting
MCP server not found?
Check that Knowns is installed (knowns --version), re-run knowns mcp setup, and restart your editor.
Tools not appearing?
Make sure the project is initialized with knowns init. Test the server manually with knowns mcp --stdio.
What's next?
Now that MCP is connected, try the AI Task Workflow to see it in action, or explore the Memory System to understand what your AI remembers.
Setup một lần
Kết nối Knowns với Cursor (hoặc editor MCP-compatible) để AI assistant đọc tasks, docs, và memory mà không cần copy-paste.
Bạn sẽ setup gì
- MCP server config cho editor
- AI assistant có live access tới tasks, docs, và memory
- Cuộc hội thoại test chứng minh nó hoạt động
Khởi tạo Knowns
Nếu chưa có:
cd your-project
knowns init
your-project/ ├── .knowns/ ← tạo bởi init │ ├── docs/ │ ├── tasks/ │ └── config.json ├── KNOWNS.md ← project guidelines └── .mcp.json ← MCP config (bước tiếp)
Auto-Setup MCP
Cách nhanh nhất:
knowns mcp setup
Tạo config file phù hợp cho environment. Với Cursor, nó viết .cursor/mcp.json:
{
"mcpServers": {
"knowns": {
"command": "knowns",
"args": ["mcp"]
}
}
}
Editor khác
Config tương tự cho Claude Code (.mcp.json), Kiro (.kiro/settings/mcp.json), và Continue (.continue/config.json). Xem MCP Integration docs cho tất cả platforms.
Restart Editor
Sau khi thêm config, restart editor để nó nhận MCP server.
Test
Mở chat với AI assistant và thử:
Bạn: Project này có tasks gì?
AI: [Gọi tasks({ action: "list" })]
Bạn có 3 tasks:
- task-abc: "Add user auth" (in-progress)
- task-def: "Fix search bug" (todo)
- task-ghi: "Update docs" (done)Bạn: Cho xem auth spec
AI: [Gọi docs({ action: "get", path: "specs/auth", smart: true })]
Đây là auth spec:
- AC-1: Users can register...
- AC-2: Users can login...Bạn: Project này dùng patterns gì?
AI: [Gọi memory({ action: "list", layer: "project" })]
Project patterns:
- "Express + TypeScript with Prisma ORM"
- "JWT auth with bcrypt hashing"
- "Controller → Service → Repository pattern"Dùng hằng ngày
Giờ AI assistant có full context:
Bạn: Làm task abc AI: [Đọc task, linked spec, related docs, project memory] Tôi thấy task "Add user auth" với 5 ACs link tới auth spec. Bắt đầu implementation...
MCP mang lại gì
| Không có MCP | Có MCP |
|---|---|
| Copy-paste task descriptions vào chat | AI đọc tasks trực tiếp |
| Giải thích lại project conventions mỗi session | AI load memory tự động |
| Track thủ công những gì đã xong | AI check ACs và update status |
| Context mất giữa sessions | Memory persist mãi mãi |
Xử lý sự cố
MCP server không tìm thấy?
Kiểm tra Knowns đã cài (knowns --version), chạy lại knowns mcp setup, và restart editor.
Tools không hiện?
Đảm bảo project đã init bằng knowns init. Test server thủ công bằng knowns mcp --stdio.
Tiếp theo?
MCP đã kết nối, thử AI Task Workflow để xem hoạt động, hoặc khám phá Memory System để hiểu AI nhớ gì.