@nihalcastelino/project-brain-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NPM_PUBLISH_CHECKLIST.md +421 -0
- package/PUBLISH_INSTRUCTIONS.md +107 -0
- package/README.md +356 -0
- package/SETUP_GUIDE.md +251 -0
- package/TESTING_GUIDE.md +397 -0
- package/dist/formatter.d.ts +48 -0
- package/dist/formatter.d.ts.map +1 -0
- package/dist/formatter.js +525 -0
- package/dist/formatter.js.map +1 -0
- package/dist/server.d.ts +32 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +94 -0
- package/dist/server.js.map +1 -0
- package/dist/storage/index.d.ts +74 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +9 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/sqlite-local.d.ts +80 -0
- package/dist/storage/sqlite-local.d.ts.map +1 -0
- package/dist/storage/sqlite-local.js +565 -0
- package/dist/storage/sqlite-local.js.map +1 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +495 -0
- package/dist/tools/index.js.map +1 -0
- package/nul +2 -0
- package/package.json +53 -0
- package/project-brain-mcp-1.0.0.tgz +0 -0
- package/publish-auto.js +142 -0
- package/publish.bat +72 -0
- package/scripts/setup.cjs +238 -0
package/README.md
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
# Project Brain MCP (Free Tier)
|
|
2
|
+
|
|
3
|
+
**Coordinate multiple AI agents across your codebase**
|
|
4
|
+
|
|
5
|
+
> While Cursor handles one file and Claude Code helps with another, Project Brain tracks what each agent worked on, prevents conflicts, and makes it easy to hand off context between tools.
|
|
6
|
+
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://nodejs.org)
|
|
9
|
+
[](https://modelcontextprotocol.io)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## What is Project Brain?
|
|
14
|
+
|
|
15
|
+
When you use multiple AI coding agents (Claude Desktop, Cursor, GitHub Copilot), it's hard to track:
|
|
16
|
+
- ❌ What each agent is working on
|
|
17
|
+
- ❌ Which conversations led to which code changes
|
|
18
|
+
- ❌ Important decisions made during development
|
|
19
|
+
- ❌ How to hand off context between agents
|
|
20
|
+
|
|
21
|
+
**Project Brain solves this by:**
|
|
22
|
+
- ✅ **Task coordination** - Assign work to specific agents
|
|
23
|
+
- ✅ **Conversation search** - Find past discussions instantly 🆕
|
|
24
|
+
- ✅ **Decision tracking** - Record architectural choices
|
|
25
|
+
- ✅ **Context handoff** - Export/import complete project state 🆕
|
|
26
|
+
- ✅ **100% local** - Works offline, no cloud dependencies
|
|
27
|
+
- ✅ **No vendor lock-in** - Full import/export to JSON
|
|
28
|
+
|
|
29
|
+
**Free Tier:**
|
|
30
|
+
- ✅ Up to 100 tasks per project
|
|
31
|
+
- ✅ Full-text search across tasks, conversations, decisions
|
|
32
|
+
- ✅ Complete import/export for portability
|
|
33
|
+
- ✅ Works with any MCP-compatible AI tool
|
|
34
|
+
|
|
35
|
+
**Upgrade for Teams:**
|
|
36
|
+
- 🚀 Unlimited tasks and projects
|
|
37
|
+
- 🚀 Multi-agent coordination with task locking
|
|
38
|
+
- 🚀 Real-time collaboration dashboard
|
|
39
|
+
- 🚀 AI code review and analysis
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 🚀 Quick Start
|
|
44
|
+
|
|
45
|
+
### One-Command Installation
|
|
46
|
+
|
|
47
|
+
**That's it!** Setup is completely automated:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install -g @project-brain/mcp
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This will:
|
|
54
|
+
1. ✅ Install dependencies
|
|
55
|
+
2. ✅ Build the MCP server
|
|
56
|
+
3. ✅ Auto-detect Claude Desktop and Cursor
|
|
57
|
+
4. ✅ Configure them automatically
|
|
58
|
+
5. ✅ Create local database
|
|
59
|
+
|
|
60
|
+
**Restart your AI tool and you're ready to go!**
|
|
61
|
+
|
|
62
|
+
### Alternative: Install from source
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git clone https://github.com/project-brain/project-brain-mcp.git
|
|
66
|
+
cd project-brain-mcp
|
|
67
|
+
npm install # Automatically builds and configures
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Manual Configuration (if auto-setup fails)
|
|
71
|
+
|
|
72
|
+
<details>
|
|
73
|
+
<summary>Click to expand manual setup instructions</summary>
|
|
74
|
+
|
|
75
|
+
Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"mcpServers": {
|
|
80
|
+
"project-brain": {
|
|
81
|
+
"command": "node",
|
|
82
|
+
"args": ["/path/to/project-brain-mcp/dist/server.js"],
|
|
83
|
+
"env": {
|
|
84
|
+
"PROJECT_BRAIN_DB_PATH": "~/.project-brain/tasks.db"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
For Cursor, the config is at: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
|
|
92
|
+
|
|
93
|
+
</details>
|
|
94
|
+
|
|
95
|
+
### Usage
|
|
96
|
+
|
|
97
|
+
Once configured, use these MCP tools in your AI conversations:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
# Create a project
|
|
101
|
+
pb_create_project(name="My App", description="Building a web app")
|
|
102
|
+
|
|
103
|
+
# Create a task
|
|
104
|
+
pb_create_task(projectId="...", title="Implement auth", priority="high")
|
|
105
|
+
|
|
106
|
+
# List tasks
|
|
107
|
+
pb_list_tasks(projectId="...")
|
|
108
|
+
|
|
109
|
+
# Complete a task
|
|
110
|
+
pb_complete_task(taskId="...")
|
|
111
|
+
|
|
112
|
+
# Export project to Markdown
|
|
113
|
+
pb_export_project(projectId="...", format="markdown")
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## 📖 Features in Detail
|
|
119
|
+
|
|
120
|
+
### 🔍 Full-Text Search (NEW!)
|
|
121
|
+
- **Search tasks** - Find tasks by title, description, or notes
|
|
122
|
+
- **Search conversations** - Find past discussions instantly
|
|
123
|
+
- **Search decisions** - Locate architectural choices quickly
|
|
124
|
+
- **Project-scoped** - Search across all projects or filter by project
|
|
125
|
+
- **Fast SQLite search** - Up to 50 results per query
|
|
126
|
+
|
|
127
|
+
Example:
|
|
128
|
+
```
|
|
129
|
+
pb_search_conversations({ query: "JWT authentication error" })
|
|
130
|
+
// Returns all conversations mentioning JWT auth issues
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 💾 Import/Export (NEW!)
|
|
134
|
+
- **Complete project backup** - Export everything as JSON
|
|
135
|
+
- **Restore from backup** - Import projects with full history
|
|
136
|
+
- **No vendor lock-in** - Your data is portable
|
|
137
|
+
- **Respects limits** - Import stops at 100 tasks in free tier
|
|
138
|
+
|
|
139
|
+
Example:
|
|
140
|
+
```
|
|
141
|
+
// Export project
|
|
142
|
+
pb_export_project_json({ projectId: "proj-123" })
|
|
143
|
+
|
|
144
|
+
// Import to new environment
|
|
145
|
+
pb_import_project({ data: backupData })
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### 📋 Task Management
|
|
149
|
+
- Create, read, update, delete tasks
|
|
150
|
+
- Set priority (low, medium, high) and due dates
|
|
151
|
+
- Track status (todo, in-progress, done, blocked)
|
|
152
|
+
- **Assign to specific AI agents** (claude, cursor, copilot)
|
|
153
|
+
- 100 tasks per project (free tier)
|
|
154
|
+
|
|
155
|
+
### 🗂️ Project Organization
|
|
156
|
+
- Group related tasks into projects
|
|
157
|
+
- Filter tasks by status, priority, assignee, due date
|
|
158
|
+
- Export entire projects to Markdown/JSON
|
|
159
|
+
|
|
160
|
+
### 💬 Conversation Logging
|
|
161
|
+
- Track AI discussions about tasks
|
|
162
|
+
- Log user, assistant, and system messages
|
|
163
|
+
- Attach structured metadata (code snippets, errors, etc.)
|
|
164
|
+
- **Searchable history** - Find any past conversation
|
|
165
|
+
|
|
166
|
+
### ✅ Decision Tracking
|
|
167
|
+
- Record important technical decisions
|
|
168
|
+
- Provide multiple choice options or free-form answers
|
|
169
|
+
- Track who decided and why
|
|
170
|
+
- Link decisions to tasks and conversations
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 💎 Upgrade to Team Edition
|
|
175
|
+
|
|
176
|
+
### Why Upgrade?
|
|
177
|
+
|
|
178
|
+
**You'll want Team Edition if you:**
|
|
179
|
+
|
|
180
|
+
- 👥 **Work with others** using different AI tools (Cursor + Claude + Copilot)
|
|
181
|
+
- Team Edition adds **task locking** so agents don't conflict
|
|
182
|
+
- **Real-time presence** - see who's working on what
|
|
183
|
+
- **Live collaboration** - watch terminal output from team members
|
|
184
|
+
|
|
185
|
+
- 🤖 **Need AI-powered insights**
|
|
186
|
+
- **AI code review** - Claude Sonnet 4 checks every commit
|
|
187
|
+
- **Conversation analysis** - Automatic summarization and insights
|
|
188
|
+
- **Prompt quality coaching** - Improve how you work with AI
|
|
189
|
+
|
|
190
|
+
- 🌿 **Want advanced Git features**
|
|
191
|
+
- **Git worktrees** - Isolated branches per task automatically
|
|
192
|
+
- **Quality gates** - Tests must pass before merging
|
|
193
|
+
- **Conflict prevention** - Never overwrite each other's work
|
|
194
|
+
|
|
195
|
+
- 📊 **Need project visibility**
|
|
196
|
+
- **Real-time dashboard** - Kanban board with drag & drop
|
|
197
|
+
- **Activity feed** - See all team actions live
|
|
198
|
+
- **Analytics** - Track team productivity and AI usage
|
|
199
|
+
|
|
200
|
+
- 🚀 **Hit the 100 task limit**
|
|
201
|
+
- Team Edition has **unlimited tasks and projects**
|
|
202
|
+
- Import your backups seamlessly
|
|
203
|
+
|
|
204
|
+
**Not just "more tasks" - it's about coordinating multiple agents and humans working together.**
|
|
205
|
+
|
|
206
|
+
### Pricing
|
|
207
|
+
|
|
208
|
+
- **Free Tier**: $0/month - 100 tasks/project, single user, local-only
|
|
209
|
+
- **Team Edition**: $20/user/month (annual) - Unlimited everything + collaboration
|
|
210
|
+
- **Trial**: 14 days free, no credit card required
|
|
211
|
+
|
|
212
|
+
[Start Free Trial →](https://project-brain.io/upgrade)
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## 🛠️ Development
|
|
217
|
+
|
|
218
|
+
### Clone & Build
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
git clone https://github.com/project-brain/project-brain-mcp.git
|
|
222
|
+
cd project-brain-mcp
|
|
223
|
+
npm install
|
|
224
|
+
npm run build
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Testing Locally
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
npm run dev
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## 📚 MCP Tools Reference
|
|
236
|
+
|
|
237
|
+
### Projects
|
|
238
|
+
- `pb_create_project` - Create a new project
|
|
239
|
+
- `pb_list_projects` - List all projects
|
|
240
|
+
- `pb_get_project` - Get project details
|
|
241
|
+
- `pb_update_project` - Update project name/description
|
|
242
|
+
- `pb_delete_project` - Delete project
|
|
243
|
+
|
|
244
|
+
### Tasks
|
|
245
|
+
- `pb_create_task` - Create a new task (FREE LIMIT: 100/project)
|
|
246
|
+
- `pb_list_tasks` - List all tasks (with filters)
|
|
247
|
+
- `pb_get_task` - Get task details
|
|
248
|
+
- `pb_update_task` - Update task details
|
|
249
|
+
- `pb_complete_task` - Mark task as done
|
|
250
|
+
- `pb_delete_task` - Delete task
|
|
251
|
+
|
|
252
|
+
### Conversations
|
|
253
|
+
- `pb_create_conversation` - Start a conversation
|
|
254
|
+
- `pb_log_message` - Log a message (user/assistant/system)
|
|
255
|
+
- `pb_get_conversation` - Get conversation details
|
|
256
|
+
- `pb_get_messages` - Get all messages
|
|
257
|
+
- `pb_list_conversations` - List conversations
|
|
258
|
+
- `pb_delete_conversation` - Delete conversation
|
|
259
|
+
|
|
260
|
+
### Decisions
|
|
261
|
+
- `pb_create_decision` - Create a decision point
|
|
262
|
+
- `pb_answer_decision` - Answer a decision
|
|
263
|
+
- `pb_list_decisions` - List decisions
|
|
264
|
+
|
|
265
|
+
### 🔍 Search (NEW!)
|
|
266
|
+
- `pb_search_tasks` - Search tasks by keyword (title, description, notes)
|
|
267
|
+
- `pb_search_conversations` - Search conversations by keyword (title, messages)
|
|
268
|
+
- `pb_search_decisions` - Search decisions by keyword (question, answer, rationale)
|
|
269
|
+
|
|
270
|
+
### 💾 Import/Export
|
|
271
|
+
- `pb_export_project` - Export project to Markdown/Chat/Plain text
|
|
272
|
+
- `pb_export_task` - Export task with conversations
|
|
273
|
+
- `pb_export_conversation` - Export conversation
|
|
274
|
+
- `pb_export_project_json` - Export complete project backup as JSON (NEW!)
|
|
275
|
+
- `pb_import_project` - Import project from JSON backup (NEW!)
|
|
276
|
+
|
|
277
|
+
### Utility
|
|
278
|
+
- `pb_ping` - Test MCP connection
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## 🗄️ Data Storage
|
|
283
|
+
|
|
284
|
+
**Free Tier:** All data stored locally in SQLite database at:
|
|
285
|
+
- macOS: `~/.project-brain/project-brain.db`
|
|
286
|
+
- Linux: `~/.project-brain/project-brain.db`
|
|
287
|
+
- Windows: `%USERPROFILE%\.project-brain\project-brain.db`
|
|
288
|
+
|
|
289
|
+
**No cloud sync.** Your data never leaves your machine.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## 🤝 Contributing
|
|
294
|
+
|
|
295
|
+
We welcome contributions! Note:
|
|
296
|
+
- This free tier is **100% open source** (MIT license)
|
|
297
|
+
- Team Edition features are in a separate commercial offering
|
|
298
|
+
|
|
299
|
+
To contribute:
|
|
300
|
+
1. Fork the repo
|
|
301
|
+
2. Create a feature branch
|
|
302
|
+
3. Make your changes
|
|
303
|
+
4. Submit a pull request
|
|
304
|
+
|
|
305
|
+
Please ensure:
|
|
306
|
+
- Code follows existing style
|
|
307
|
+
- Tests pass (if applicable)
|
|
308
|
+
- README updated (if needed)
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## 📄 License
|
|
313
|
+
|
|
314
|
+
**MIT License** - See [LICENSE](LICENSE) for details
|
|
315
|
+
|
|
316
|
+
This means you can:
|
|
317
|
+
- ✅ Use commercially
|
|
318
|
+
- ✅ Modify
|
|
319
|
+
- ✅ Distribute
|
|
320
|
+
- ✅ Use privately
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## 🆘 Support
|
|
325
|
+
|
|
326
|
+
**Free Tier (Community Support):**
|
|
327
|
+
- GitHub Issues: [github.com/project-brain/project-brain-mcp/issues](https://github.com/project-brain/project-brain-mcp/issues)
|
|
328
|
+
- Discussions: [github.com/project-brain/project-brain-mcp/discussions](https://github.com/project-brain/project-brain-mcp/discussions)
|
|
329
|
+
|
|
330
|
+
**Paid Tier (Priority Support):**
|
|
331
|
+
- Email: support@project-brain.io
|
|
332
|
+
- Response time: < 24 hours
|
|
333
|
+
- Dedicated Slack channel
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## 🔗 Links
|
|
338
|
+
|
|
339
|
+
- **Website:** [project-brain.io](https://project-brain.io)
|
|
340
|
+
- **Documentation:** [docs.project-brain.io](https://docs.project-brain.io)
|
|
341
|
+
- **Team Edition:** [project-brain.io/upgrade](https://project-brain.io/upgrade)
|
|
342
|
+
- **GitHub:** [github.com/project-brain/project-brain-mcp](https://github.com/project-brain/project-brain-mcp)
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
## ⭐ Star Us!
|
|
347
|
+
|
|
348
|
+
If you find Project Brain helpful, please star the repo!
|
|
349
|
+
|
|
350
|
+
It helps others discover the project and motivates us to keep improving it.
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
**Made with ❤️ by the Project Brain team**
|
|
355
|
+
|
|
356
|
+
*Helping AI agents collaborate, one task at a time.*
|
package/SETUP_GUIDE.md
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Project Brain Free Tier - Setup Guide
|
|
2
|
+
|
|
3
|
+
## 🎯 Zero-Config Installation
|
|
4
|
+
|
|
5
|
+
Project Brain Free Tier is designed to be **completely frictionless**. No manual configuration needed.
|
|
6
|
+
|
|
7
|
+
## Installation Methods
|
|
8
|
+
|
|
9
|
+
### Method 1: NPM Global Install (Recommended)
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g @project-brain/mcp
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**That's it!** This single command will:
|
|
16
|
+
|
|
17
|
+
1. ✅ Install the package globally
|
|
18
|
+
2. ✅ Build the TypeScript source
|
|
19
|
+
3. ✅ Auto-detect Claude Desktop and Cursor
|
|
20
|
+
4. ✅ Configure them automatically
|
|
21
|
+
5. ✅ Create database directory at `~/.project-brain/`
|
|
22
|
+
6. ✅ Show you what was configured
|
|
23
|
+
|
|
24
|
+
### Method 2: Install from Source
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
git clone https://github.com/project-brain/project-brain-mcp.git
|
|
28
|
+
cd project-brain-mcp
|
|
29
|
+
npm install # postinstall hook handles everything
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Method 3: NPM Local Install
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @project-brain/mcp
|
|
36
|
+
npx project-brain-mcp setup # Manual setup if needed
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## What Happens During Installation?
|
|
40
|
+
|
|
41
|
+
### 1. Build Phase
|
|
42
|
+
```bash
|
|
43
|
+
npm run build
|
|
44
|
+
```
|
|
45
|
+
- Compiles TypeScript to JavaScript
|
|
46
|
+
- Creates `dist/` folder with compiled code
|
|
47
|
+
- Takes ~10-20 seconds
|
|
48
|
+
|
|
49
|
+
### 2. Auto-Configuration Phase
|
|
50
|
+
```bash
|
|
51
|
+
npm run setup
|
|
52
|
+
```
|
|
53
|
+
- Scans for AI tools (Claude Desktop, Cursor)
|
|
54
|
+
- Detects config file locations based on OS
|
|
55
|
+
- Updates MCP server configuration
|
|
56
|
+
- Creates database directory
|
|
57
|
+
- Shows what was configured
|
|
58
|
+
|
|
59
|
+
## Supported AI Tools
|
|
60
|
+
|
|
61
|
+
### Claude Desktop
|
|
62
|
+
- **Windows**: `%APPDATA%\Roaming\Claude\claude_desktop_config.json`
|
|
63
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
64
|
+
- **Linux**: `~/.config/claude/claude_desktop_config.json`
|
|
65
|
+
|
|
66
|
+
### Cursor
|
|
67
|
+
- **Windows**: `%APPDATA%\Roaming\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
|
|
68
|
+
- **macOS**: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
|
|
69
|
+
- **Linux**: `~/.config/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
|
|
70
|
+
|
|
71
|
+
## Configuration Added
|
|
72
|
+
|
|
73
|
+
The setup script adds this to your AI tool's config:
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"mcpServers": {
|
|
78
|
+
"project-brain": {
|
|
79
|
+
"command": "node",
|
|
80
|
+
"args": ["/path/to/@project-brain/mcp/dist/server.js"],
|
|
81
|
+
"env": {
|
|
82
|
+
"PROJECT_BRAIN_DB_PATH": "/home/user/.project-brain/tasks.db"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Manual Setup (if auto-setup fails)
|
|
90
|
+
|
|
91
|
+
If the automatic setup doesn't detect your AI tool, run:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
npm run setup
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
This will show you the configuration to add manually.
|
|
98
|
+
|
|
99
|
+
## Verify Installation
|
|
100
|
+
|
|
101
|
+
### 1. Check your AI tool's config file
|
|
102
|
+
|
|
103
|
+
**Claude Desktop (macOS):**
|
|
104
|
+
```bash
|
|
105
|
+
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Cursor (macOS):**
|
|
109
|
+
```bash
|
|
110
|
+
cat ~/Library/Application\ Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 2. Restart your AI tool
|
|
114
|
+
|
|
115
|
+
Close and reopen Claude Desktop or Cursor.
|
|
116
|
+
|
|
117
|
+
### 3. Test the MCP server
|
|
118
|
+
|
|
119
|
+
In your AI tool, try:
|
|
120
|
+
```
|
|
121
|
+
"Create a task called 'Test Project Brain'"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
If it works, you'll see a response confirming the task was created!
|
|
125
|
+
|
|
126
|
+
## Database Location
|
|
127
|
+
|
|
128
|
+
All your data is stored locally at:
|
|
129
|
+
|
|
130
|
+
- **Windows**: `C:\Users\<you>\.project-brain\tasks.db`
|
|
131
|
+
- **macOS/Linux**: `~/.project-brain/tasks.db`
|
|
132
|
+
|
|
133
|
+
This is a SQLite database file. You can:
|
|
134
|
+
- Back it up by copying the file
|
|
135
|
+
- Delete it to start fresh
|
|
136
|
+
- Move it to another machine
|
|
137
|
+
|
|
138
|
+
## Troubleshooting
|
|
139
|
+
|
|
140
|
+
### "postinstall script failed"
|
|
141
|
+
|
|
142
|
+
This usually means:
|
|
143
|
+
1. Node.js version is too old (need 16+)
|
|
144
|
+
2. TypeScript compilation failed
|
|
145
|
+
3. File permissions issue
|
|
146
|
+
|
|
147
|
+
**Fix:**
|
|
148
|
+
```bash
|
|
149
|
+
node --version # Should be 16+
|
|
150
|
+
npm run build # Try building manually
|
|
151
|
+
npm run setup # Try setup manually
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### "Could not auto-configure"
|
|
155
|
+
|
|
156
|
+
The setup script couldn't find your AI tool's config directory.
|
|
157
|
+
|
|
158
|
+
**Fix:**
|
|
159
|
+
1. Check if your AI tool is installed
|
|
160
|
+
2. Run `npm run setup` to see the manual config
|
|
161
|
+
3. Add the config manually to your AI tool
|
|
162
|
+
|
|
163
|
+
### "MCP server not showing up"
|
|
164
|
+
|
|
165
|
+
**Fix:**
|
|
166
|
+
1. Verify config file has the `project-brain` entry
|
|
167
|
+
2. Restart your AI tool completely
|
|
168
|
+
3. Check the AI tool's MCP server logs
|
|
169
|
+
|
|
170
|
+
### "Error: Cannot find module"
|
|
171
|
+
|
|
172
|
+
**Fix:**
|
|
173
|
+
```bash
|
|
174
|
+
cd project-brain-mcp
|
|
175
|
+
npm run build
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Uninstall
|
|
179
|
+
|
|
180
|
+
### NPM Global Install
|
|
181
|
+
```bash
|
|
182
|
+
npm uninstall -g @project-brain/mcp
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### From Source
|
|
186
|
+
```bash
|
|
187
|
+
cd project-brain-mcp
|
|
188
|
+
npm uninstall
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Remove Database (Optional)
|
|
192
|
+
```bash
|
|
193
|
+
rm -rf ~/.project-brain/
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Remove from AI Tool Config
|
|
197
|
+
|
|
198
|
+
Open your AI tool's config file and remove the `"project-brain"` entry from `mcpServers`.
|
|
199
|
+
|
|
200
|
+
## Upgrading
|
|
201
|
+
|
|
202
|
+
### NPM Global Install
|
|
203
|
+
```bash
|
|
204
|
+
npm update -g @project-brain/mcp
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### From Source
|
|
208
|
+
```bash
|
|
209
|
+
cd project-brain-mcp
|
|
210
|
+
git pull
|
|
211
|
+
npm install # Rebuilds and reconfigures
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## FAQ
|
|
215
|
+
|
|
216
|
+
### Q: Do I need API keys?
|
|
217
|
+
**A:** No! The free tier works 100% offline with no API keys required.
|
|
218
|
+
|
|
219
|
+
### Q: Where is my data stored?
|
|
220
|
+
**A:** Locally in `~/.project-brain/tasks.db`. No cloud, no tracking.
|
|
221
|
+
|
|
222
|
+
### Q: Can I use multiple AI tools?
|
|
223
|
+
**A:** Yes! The setup script configures all detected tools automatically.
|
|
224
|
+
|
|
225
|
+
### Q: What if I already have an MCP server configured?
|
|
226
|
+
**A:** The setup script preserves existing configurations and adds Project Brain alongside them.
|
|
227
|
+
|
|
228
|
+
### Q: Does it work on Windows?
|
|
229
|
+
**A:** Yes! Windows, macOS, and Linux are all supported.
|
|
230
|
+
|
|
231
|
+
### Q: Can I customize the database location?
|
|
232
|
+
**A:** Yes! Edit the `PROJECT_BRAIN_DB_PATH` in your AI tool's config file.
|
|
233
|
+
|
|
234
|
+
### Q: How do I upgrade to paid tier?
|
|
235
|
+
**A:** The paid tier is a separate backend service. Visit https://projectbrain.ai/pricing
|
|
236
|
+
|
|
237
|
+
## Support
|
|
238
|
+
|
|
239
|
+
- **Issues**: https://github.com/project-brain/project-brain-mcp/issues
|
|
240
|
+
- **Discussions**: https://github.com/project-brain/project-brain-mcp/discussions
|
|
241
|
+
- **Documentation**: https://github.com/project-brain/project-brain-mcp
|
|
242
|
+
|
|
243
|
+
## Next Steps
|
|
244
|
+
|
|
245
|
+
1. ✅ Install complete
|
|
246
|
+
2. ✅ Restart your AI tool
|
|
247
|
+
3. ✅ Try: "Create a task to test Project Brain"
|
|
248
|
+
4. ✅ Try: "List all my tasks"
|
|
249
|
+
5. ✅ Try: "Search for tasks containing 'test'"
|
|
250
|
+
|
|
251
|
+
**You're all set! Happy coding! 🚀**
|