@prmichaelsen/remember-mcp 2.0.0 → 2.0.2
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/AGENT.md +216 -2
- package/CHANGELOG.md +28 -0
- package/agent/design/design.template.md +136 -0
- package/agent/design/requirements.template.md +387 -0
- package/agent/milestones/milestone-1-{title}.template.md +206 -0
- package/agent/patterns/bootstrap.template.md +1237 -0
- package/agent/patterns/pattern.template.md +364 -0
- package/agent/progress.template.yaml +158 -0
- package/agent/progress.yaml +43 -7
- package/agent/scripts/check-for-updates.sh +88 -0
- package/agent/scripts/uninstall.sh +75 -0
- package/agent/scripts/update.sh +75 -0
- package/agent/tasks/task-1-{title}.template.md +225 -0
- package/dist/server-factory.js +78 -12
- package/dist/server.js +78 -12
- package/dist/utils/error-handler.d.ts +40 -0
- package/package.json +1 -1
- package/src/tools/create-memory.ts +8 -2
- package/src/tools/update-memory.ts +50 -10
- package/src/utils/error-handler.ts +79 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
# Project Requirements
|
|
2
|
+
|
|
3
|
+
**Project Name**: [Your Project Name]
|
|
4
|
+
**Created**: YYYY-MM-DD
|
|
5
|
+
**Status**: Draft | Active | Implemented
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
[Provide a high-level description of what this project is and what it aims to accomplish. This should be a clear, concise summary that anyone can understand.]
|
|
12
|
+
|
|
13
|
+
**Example**: "A multi-tenant memory system that enables AI agents to store, retrieve, and manage contextual information across sessions with vector search capabilities and relationship tracking."
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Problem Statement
|
|
18
|
+
|
|
19
|
+
[Describe the problem this project solves. What pain points or needs does it address?]
|
|
20
|
+
|
|
21
|
+
**Example**: "AI agents currently have no persistent memory between sessions, leading to loss of context and requiring users to repeatedly provide the same information."
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Goals and Objectives
|
|
26
|
+
|
|
27
|
+
[List the primary goals this project aims to achieve. Be specific and measurable where possible.]
|
|
28
|
+
|
|
29
|
+
### Primary Goals
|
|
30
|
+
1. Goal 1: [Description]
|
|
31
|
+
2. Goal 2: [Description]
|
|
32
|
+
3. Goal 3: [Description]
|
|
33
|
+
|
|
34
|
+
### Secondary Goals
|
|
35
|
+
1. Goal 1: [Description]
|
|
36
|
+
2. Goal 2: [Description]
|
|
37
|
+
|
|
38
|
+
**Example**:
|
|
39
|
+
|
|
40
|
+
### Primary Goals
|
|
41
|
+
1. Enable persistent memory storage across agent sessions
|
|
42
|
+
2. Provide fast vector-based semantic search
|
|
43
|
+
3. Support multi-tenant isolation for data security
|
|
44
|
+
|
|
45
|
+
### Secondary Goals
|
|
46
|
+
1. Implement relationship tracking between memories
|
|
47
|
+
2. Add trust-based access control
|
|
48
|
+
3. Support template-based memory creation
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Functional Requirements
|
|
53
|
+
|
|
54
|
+
[List what the system must do. These are the features and capabilities.]
|
|
55
|
+
|
|
56
|
+
### Core Features
|
|
57
|
+
1. **Feature 1**: [Description of what it does]
|
|
58
|
+
2. **Feature 2**: [Description of what it does]
|
|
59
|
+
3. **Feature 3**: [Description of what it does]
|
|
60
|
+
|
|
61
|
+
### Additional Features
|
|
62
|
+
1. **Feature 1**: [Description]
|
|
63
|
+
2. **Feature 2**: [Description]
|
|
64
|
+
|
|
65
|
+
**Example**:
|
|
66
|
+
|
|
67
|
+
### Core Features
|
|
68
|
+
1. **Memory Storage**: Store structured memories with metadata (title, content, tags, timestamps)
|
|
69
|
+
2. **Vector Search**: Find semantically similar memories using vector embeddings
|
|
70
|
+
3. **Multi-Tenancy**: Isolate user data with per-user access control
|
|
71
|
+
|
|
72
|
+
### Additional Features
|
|
73
|
+
1. **Relationship Graph**: Track connections between related memories
|
|
74
|
+
2. **Template System**: Pre-defined memory structures for common use cases
|
|
75
|
+
3. **Trust Levels**: Control memory visibility based on trust scores
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Non-Functional Requirements
|
|
80
|
+
|
|
81
|
+
[Describe quality attributes and constraints.]
|
|
82
|
+
|
|
83
|
+
### Performance
|
|
84
|
+
- Requirement 1: [Specific metric]
|
|
85
|
+
- Requirement 2: [Specific metric]
|
|
86
|
+
|
|
87
|
+
### Security
|
|
88
|
+
- Requirement 1: [Security requirement]
|
|
89
|
+
- Requirement 2: [Security requirement]
|
|
90
|
+
|
|
91
|
+
### Scalability
|
|
92
|
+
- Requirement 1: [Scalability requirement]
|
|
93
|
+
- Requirement 2: [Scalability requirement]
|
|
94
|
+
|
|
95
|
+
### Reliability
|
|
96
|
+
- Requirement 1: [Reliability requirement]
|
|
97
|
+
- Requirement 2: [Reliability requirement]
|
|
98
|
+
|
|
99
|
+
**Example**:
|
|
100
|
+
|
|
101
|
+
### Performance
|
|
102
|
+
- Search queries return results in < 200ms for 95th percentile
|
|
103
|
+
- Support 1000+ concurrent users
|
|
104
|
+
|
|
105
|
+
### Security
|
|
106
|
+
- Complete data isolation between tenants
|
|
107
|
+
- All API endpoints require authentication
|
|
108
|
+
- Sensitive data encrypted at rest
|
|
109
|
+
|
|
110
|
+
### Scalability
|
|
111
|
+
- Horizontal scaling for increased load
|
|
112
|
+
- Support millions of memories per tenant
|
|
113
|
+
|
|
114
|
+
### Reliability
|
|
115
|
+
- 99.9% uptime SLA
|
|
116
|
+
- Automatic backups every 24 hours
|
|
117
|
+
- Graceful degradation under load
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Technical Requirements
|
|
122
|
+
|
|
123
|
+
[Specify technical constraints and requirements.]
|
|
124
|
+
|
|
125
|
+
### Technology Stack
|
|
126
|
+
- **Language**: [Programming language and version]
|
|
127
|
+
- **Framework**: [Framework and version]
|
|
128
|
+
- **Database**: [Database technology]
|
|
129
|
+
- **Infrastructure**: [Hosting/deployment platform]
|
|
130
|
+
|
|
131
|
+
### Dependencies
|
|
132
|
+
- Dependency 1: [Purpose]
|
|
133
|
+
- Dependency 2: [Purpose]
|
|
134
|
+
- Dependency 3: [Purpose]
|
|
135
|
+
|
|
136
|
+
### Integrations
|
|
137
|
+
- Integration 1: [What it integrates with and why]
|
|
138
|
+
- Integration 2: [What it integrates with and why]
|
|
139
|
+
|
|
140
|
+
**Example**:
|
|
141
|
+
|
|
142
|
+
### Technology Stack
|
|
143
|
+
- **Language**: TypeScript 5.x
|
|
144
|
+
- **Runtime**: Node.js 20+
|
|
145
|
+
- **Protocol**: Model Context Protocol (MCP)
|
|
146
|
+
- **Vector DB**: Weaviate
|
|
147
|
+
- **Document DB**: Firestore
|
|
148
|
+
- **Authentication**: Firebase Auth
|
|
149
|
+
|
|
150
|
+
### Dependencies
|
|
151
|
+
- @modelcontextprotocol/sdk: MCP protocol implementation
|
|
152
|
+
- weaviate-client: Vector database client
|
|
153
|
+
- firebase-admin: Firestore and auth
|
|
154
|
+
|
|
155
|
+
### Integrations
|
|
156
|
+
- OpenAI API: Generate vector embeddings
|
|
157
|
+
- Firebase Auth: User authentication and authorization
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## User Stories
|
|
162
|
+
|
|
163
|
+
[Describe functionality from the user's perspective.]
|
|
164
|
+
|
|
165
|
+
### As a [User Type]
|
|
166
|
+
1. I want to [action] so that [benefit]
|
|
167
|
+
2. I want to [action] so that [benefit]
|
|
168
|
+
3. I want to [action] so that [benefit]
|
|
169
|
+
|
|
170
|
+
**Example**:
|
|
171
|
+
|
|
172
|
+
### As an AI Agent
|
|
173
|
+
1. I want to store memories about user preferences so that I can personalize responses
|
|
174
|
+
2. I want to search for relevant memories so that I can provide contextual answers
|
|
175
|
+
3. I want to create relationships between memories so that I can understand connections
|
|
176
|
+
|
|
177
|
+
### As a User
|
|
178
|
+
1. I want my data isolated from other users so that my privacy is protected
|
|
179
|
+
2. I want to control which memories are shared so that I maintain control over my data
|
|
180
|
+
3. I want to export my memories so that I can back them up
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Constraints
|
|
185
|
+
|
|
186
|
+
[List any limitations or constraints on the project.]
|
|
187
|
+
|
|
188
|
+
### Technical Constraints
|
|
189
|
+
- Constraint 1: [Description and impact]
|
|
190
|
+
- Constraint 2: [Description and impact]
|
|
191
|
+
|
|
192
|
+
### Business Constraints
|
|
193
|
+
- Constraint 1: [Description and impact]
|
|
194
|
+
- Constraint 2: [Description and impact]
|
|
195
|
+
|
|
196
|
+
### Resource Constraints
|
|
197
|
+
- Constraint 1: [Description and impact]
|
|
198
|
+
- Constraint 2: [Description and impact]
|
|
199
|
+
|
|
200
|
+
**Example**:
|
|
201
|
+
|
|
202
|
+
### Technical Constraints
|
|
203
|
+
- Must use existing Firebase infrastructure
|
|
204
|
+
- Vector embeddings limited to OpenAI models
|
|
205
|
+
- MCP protocol requires stdio or SSE transport
|
|
206
|
+
|
|
207
|
+
### Business Constraints
|
|
208
|
+
- Must launch MVP within 3 months
|
|
209
|
+
- Free tier must support 1000 memories per user
|
|
210
|
+
- Must comply with GDPR and data privacy regulations
|
|
211
|
+
|
|
212
|
+
### Resource Constraints
|
|
213
|
+
- Single developer for initial implementation
|
|
214
|
+
- Limited budget for cloud infrastructure
|
|
215
|
+
- No dedicated QA team
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Success Criteria
|
|
220
|
+
|
|
221
|
+
[Define what success looks like. How will you know the project is complete and successful?]
|
|
222
|
+
|
|
223
|
+
### MVP Success Criteria
|
|
224
|
+
- [ ] Criterion 1: [Measurable condition]
|
|
225
|
+
- [ ] Criterion 2: [Measurable condition]
|
|
226
|
+
- [ ] Criterion 3: [Measurable condition]
|
|
227
|
+
|
|
228
|
+
### Full Release Success Criteria
|
|
229
|
+
- [ ] Criterion 1: [Measurable condition]
|
|
230
|
+
- [ ] Criterion 2: [Measurable condition]
|
|
231
|
+
- [ ] Criterion 3: [Measurable condition]
|
|
232
|
+
|
|
233
|
+
**Example**:
|
|
234
|
+
|
|
235
|
+
### MVP Success Criteria
|
|
236
|
+
- [ ] Users can create, read, update, and delete memories
|
|
237
|
+
- [ ] Vector search returns relevant results
|
|
238
|
+
- [ ] Multi-tenant isolation verified through security testing
|
|
239
|
+
- [ ] Basic documentation complete
|
|
240
|
+
|
|
241
|
+
### Full Release Success Criteria
|
|
242
|
+
- [ ] All core and additional features implemented
|
|
243
|
+
- [ ] Performance meets specified metrics
|
|
244
|
+
- [ ] Security audit passed
|
|
245
|
+
- [ ] 100 active users with positive feedback
|
|
246
|
+
- [ ] Comprehensive documentation and examples
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Out of Scope
|
|
251
|
+
|
|
252
|
+
[Explicitly list what is NOT included in this project to manage expectations.]
|
|
253
|
+
|
|
254
|
+
1. Feature/capability 1: [Why it's out of scope]
|
|
255
|
+
2. Feature/capability 2: [Why it's out of scope]
|
|
256
|
+
3. Feature/capability 3: [Why it's out of scope]
|
|
257
|
+
|
|
258
|
+
**Example**:
|
|
259
|
+
|
|
260
|
+
1. **Mobile app**: Focus is on MCP server, not end-user applications
|
|
261
|
+
2. **Real-time collaboration**: Single-user focus for MVP
|
|
262
|
+
3. **Advanced analytics**: Basic usage stats only, no complex analytics
|
|
263
|
+
4. **Custom embedding models**: OpenAI only for MVP
|
|
264
|
+
5. **On-premise deployment**: Cloud-only for initial release
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Assumptions
|
|
269
|
+
|
|
270
|
+
[List assumptions being made about the project.]
|
|
271
|
+
|
|
272
|
+
1. Assumption 1: [Description]
|
|
273
|
+
2. Assumption 2: [Description]
|
|
274
|
+
3. Assumption 3: [Description]
|
|
275
|
+
|
|
276
|
+
**Example**:
|
|
277
|
+
|
|
278
|
+
1. Users have stable internet connectivity
|
|
279
|
+
2. OpenAI API will remain available and affordable
|
|
280
|
+
3. Firebase infrastructure will scale to meet demand
|
|
281
|
+
4. MCP protocol will remain stable (no breaking changes)
|
|
282
|
+
5. Users understand basic AI agent concepts
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Risks
|
|
287
|
+
|
|
288
|
+
[Identify potential risks and mitigation strategies.]
|
|
289
|
+
|
|
290
|
+
| Risk | Impact | Probability | Mitigation Strategy |
|
|
291
|
+
|------|--------|-------------|---------------------|
|
|
292
|
+
| [Risk 1] | High/Medium/Low | High/Medium/Low | [How to mitigate] |
|
|
293
|
+
| [Risk 2] | High/Medium/Low | High/Medium/Low | [How to mitigate] |
|
|
294
|
+
| [Risk 3] | High/Medium/Low | High/Medium/Low | [How to mitigate] |
|
|
295
|
+
|
|
296
|
+
**Example**:
|
|
297
|
+
|
|
298
|
+
| Risk | Impact | Probability | Mitigation Strategy |
|
|
299
|
+
|------|--------|-------------|---------------------|
|
|
300
|
+
| OpenAI API cost escalation | High | Medium | Implement caching, batch processing, consider alternative providers |
|
|
301
|
+
| Security vulnerability | High | Low | Regular security audits, follow best practices, bug bounty program |
|
|
302
|
+
| Performance degradation at scale | Medium | Medium | Load testing, performance monitoring, optimization plan |
|
|
303
|
+
| MCP protocol changes | Medium | Low | Stay updated with MCP community, version pinning |
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## Timeline
|
|
308
|
+
|
|
309
|
+
[Provide a high-level timeline for the project.]
|
|
310
|
+
|
|
311
|
+
### Phase 1: [Phase Name] (Duration)
|
|
312
|
+
- Milestone 1
|
|
313
|
+
- Milestone 2
|
|
314
|
+
|
|
315
|
+
### Phase 2: [Phase Name] (Duration)
|
|
316
|
+
- Milestone 3
|
|
317
|
+
- Milestone 4
|
|
318
|
+
|
|
319
|
+
### Phase 3: [Phase Name] (Duration)
|
|
320
|
+
- Milestone 5
|
|
321
|
+
- Milestone 6
|
|
322
|
+
|
|
323
|
+
**Example**:
|
|
324
|
+
|
|
325
|
+
### Phase 1: Foundation (Weeks 1-2)
|
|
326
|
+
- Project setup and infrastructure
|
|
327
|
+
- Basic MCP server implementation
|
|
328
|
+
- Database connections
|
|
329
|
+
|
|
330
|
+
### Phase 2: Core Features (Weeks 3-6)
|
|
331
|
+
- Memory CRUD operations
|
|
332
|
+
- Vector search implementation
|
|
333
|
+
- Multi-tenant isolation
|
|
334
|
+
|
|
335
|
+
### Phase 3: Advanced Features (Weeks 7-10)
|
|
336
|
+
- Relationship tracking
|
|
337
|
+
- Template system
|
|
338
|
+
- Trust-based access control
|
|
339
|
+
|
|
340
|
+
### Phase 4: Polish & Launch (Weeks 11-12)
|
|
341
|
+
- Testing and bug fixes
|
|
342
|
+
- Documentation
|
|
343
|
+
- Deployment and monitoring
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
## Stakeholders
|
|
348
|
+
|
|
349
|
+
[Identify who is involved in or affected by this project.]
|
|
350
|
+
|
|
351
|
+
| Role | Name/Team | Responsibilities |
|
|
352
|
+
|------|-----------|------------------|
|
|
353
|
+
| [Role 1] | [Name] | [What they do] |
|
|
354
|
+
| [Role 2] | [Name] | [What they do] |
|
|
355
|
+
| [Role 3] | [Name] | [What they do] |
|
|
356
|
+
|
|
357
|
+
**Example**:
|
|
358
|
+
|
|
359
|
+
| Role | Name/Team | Responsibilities |
|
|
360
|
+
|------|-----------|------------------|
|
|
361
|
+
| Product Owner | [Name] | Define requirements, prioritize features |
|
|
362
|
+
| Lead Developer | [Name] | Architecture, implementation, code review |
|
|
363
|
+
| DevOps | [Name] | Infrastructure, deployment, monitoring |
|
|
364
|
+
| Users | AI Agent Developers | Provide feedback, report issues |
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
## References
|
|
369
|
+
|
|
370
|
+
[Link to related documents, research, or resources.]
|
|
371
|
+
|
|
372
|
+
- [Document/Resource 1](URL): Description
|
|
373
|
+
- [Document/Resource 2](URL): Description
|
|
374
|
+
- [Document/Resource 3](URL): Description
|
|
375
|
+
|
|
376
|
+
**Example**:
|
|
377
|
+
|
|
378
|
+
- [Model Context Protocol Specification](https://modelcontextprotocol.io): MCP protocol documentation
|
|
379
|
+
- [Weaviate Documentation](https://weaviate.io/developers/weaviate): Vector database docs
|
|
380
|
+
- [Firebase Documentation](https://firebase.google.com/docs): Firebase platform docs
|
|
381
|
+
- [Similar Project Analysis](URL): Research on existing solutions
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
**Status**: [Current status of requirements]
|
|
386
|
+
**Last Updated**: [YYYY-MM-DD]
|
|
387
|
+
**Next Review**: [YYYY-MM-DD]
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Milestone {N}: {Descriptive Name}
|
|
2
|
+
|
|
3
|
+
**Goal**: [One-line objective that clearly states what this milestone achieves]
|
|
4
|
+
**Duration**: [Estimated time: e.g., "1-2 weeks", "3-5 days"]
|
|
5
|
+
**Dependencies**: [List prerequisite milestones or external dependencies, or "None"]
|
|
6
|
+
**Status**: Not Started | In Progress | Completed
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
[Provide a comprehensive description of what this milestone accomplishes and why it's important to the project. Explain how it fits into the overall project roadmap.]
|
|
13
|
+
|
|
14
|
+
**Example**: "This milestone establishes the foundational infrastructure for the project, including build system, database connections, and basic server setup. It creates the scaffolding that all future features will build upon."
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Deliverables
|
|
19
|
+
|
|
20
|
+
[List concrete, measurable outputs this milestone will produce. Be specific about what will exist when this milestone is complete.]
|
|
21
|
+
|
|
22
|
+
### 1. [Deliverable Category 1]
|
|
23
|
+
- Specific item 1
|
|
24
|
+
- Specific item 2
|
|
25
|
+
- Specific item 3
|
|
26
|
+
|
|
27
|
+
### 2. [Deliverable Category 2]
|
|
28
|
+
- Specific item 1
|
|
29
|
+
- Specific item 2
|
|
30
|
+
|
|
31
|
+
### 3. [Deliverable Category 3]
|
|
32
|
+
- Specific item 1
|
|
33
|
+
- Specific item 2
|
|
34
|
+
|
|
35
|
+
**Example**:
|
|
36
|
+
|
|
37
|
+
### 1. Project Structure
|
|
38
|
+
- New `project-name/` directory with organized subdirectories
|
|
39
|
+
- package.json with all metadata and scripts
|
|
40
|
+
- TypeScript configuration (tsconfig.json)
|
|
41
|
+
- Build system using esbuild
|
|
42
|
+
- Directory structure: src/, tests/, agent/
|
|
43
|
+
|
|
44
|
+
### 2. Core Dependencies
|
|
45
|
+
- @modelcontextprotocol/sdk installed and configured
|
|
46
|
+
- Database client libraries installed
|
|
47
|
+
- Development tools (TypeScript, testing framework)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Success Criteria
|
|
52
|
+
|
|
53
|
+
[Define objective, verifiable criteria that indicate this milestone is complete. Each criterion should be testable.]
|
|
54
|
+
|
|
55
|
+
- [ ] Criterion 1: [Specific, measurable condition]
|
|
56
|
+
- [ ] Criterion 2: [Specific, measurable condition]
|
|
57
|
+
- [ ] Criterion 3: [Specific, measurable condition]
|
|
58
|
+
- [ ] Criterion 4: [Specific, measurable condition]
|
|
59
|
+
- [ ] Criterion 5: [Specific, measurable condition]
|
|
60
|
+
|
|
61
|
+
**Example**:
|
|
62
|
+
- [ ] Project builds successfully (`npm run build` completes without errors)
|
|
63
|
+
- [ ] TypeScript compiles without errors (`npm run typecheck` passes)
|
|
64
|
+
- [ ] All dependencies install correctly (`npm install` succeeds)
|
|
65
|
+
- [ ] Basic server starts and responds to health check
|
|
66
|
+
- [ ] All tests pass (`npm test` succeeds)
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Key Files to Create
|
|
71
|
+
|
|
72
|
+
[List the specific files and directories that will be created during this milestone. Use a tree structure for clarity.]
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
project-root/
|
|
76
|
+
├── file1.ext
|
|
77
|
+
├── file2.ext
|
|
78
|
+
├── directory1/
|
|
79
|
+
│ ├── file3.ext
|
|
80
|
+
│ └── file4.ext
|
|
81
|
+
└── directory2/
|
|
82
|
+
├── subdirectory/
|
|
83
|
+
│ └── file5.ext
|
|
84
|
+
└── file6.ext
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Example**:
|
|
88
|
+
```
|
|
89
|
+
my-project/
|
|
90
|
+
├── package.json
|
|
91
|
+
├── tsconfig.json
|
|
92
|
+
├── esbuild.build.js
|
|
93
|
+
├── .gitignore
|
|
94
|
+
├── .env.example
|
|
95
|
+
├── README.md
|
|
96
|
+
├── src/
|
|
97
|
+
│ ├── index.ts
|
|
98
|
+
│ ├── server.ts
|
|
99
|
+
│ ├── types/
|
|
100
|
+
│ │ └── index.ts
|
|
101
|
+
│ └── utils/
|
|
102
|
+
│ └── logger.ts
|
|
103
|
+
└── tests/
|
|
104
|
+
└── setup.test.ts
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Tasks
|
|
110
|
+
|
|
111
|
+
[List the tasks that comprise this milestone. Reference task documents if they exist.]
|
|
112
|
+
|
|
113
|
+
1. [Task 1: task-N-{name}.md](../tasks/task-N-{name}.md) - [Brief description]
|
|
114
|
+
2. [Task 2: task-N-{name}.md](../tasks/task-N-{name}.md) - [Brief description]
|
|
115
|
+
3. [Task 3: task-N-{name}.md](../tasks/task-N-{name}.md) - [Brief description]
|
|
116
|
+
4. [Task 4: task-N-{name}.md](../tasks/task-N-{name}.md) - [Brief description]
|
|
117
|
+
|
|
118
|
+
**Example**:
|
|
119
|
+
1. [Task 1: Initialize Project Structure](../tasks/task-1-initialize-project-structure.md) - Set up directories and config files
|
|
120
|
+
2. [Task 2: Install Dependencies](../tasks/task-2-install-dependencies.md) - Install and configure npm packages
|
|
121
|
+
3. [Task 3: Create Basic Server](../tasks/task-3-create-basic-server.md) - Implement minimal MCP server
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Environment Variables
|
|
126
|
+
|
|
127
|
+
[If this milestone requires environment configuration, document it here:]
|
|
128
|
+
|
|
129
|
+
```env
|
|
130
|
+
# Category 1
|
|
131
|
+
VAR_NAME_1=example_value
|
|
132
|
+
VAR_NAME_2=example_value
|
|
133
|
+
|
|
134
|
+
# Category 2
|
|
135
|
+
VAR_NAME_3=example_value
|
|
136
|
+
VAR_NAME_4=example_value
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Example**:
|
|
140
|
+
```env
|
|
141
|
+
# Database Configuration
|
|
142
|
+
DATABASE_URL=postgresql://localhost:5432/mydb
|
|
143
|
+
DATABASE_POOL_SIZE=10
|
|
144
|
+
|
|
145
|
+
# API Configuration
|
|
146
|
+
API_KEY=your_api_key_here
|
|
147
|
+
API_URL=https://api.example.com
|
|
148
|
+
|
|
149
|
+
# Server Configuration
|
|
150
|
+
PORT=3000
|
|
151
|
+
NODE_ENV=development
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Testing Requirements
|
|
157
|
+
|
|
158
|
+
[Describe what testing should be in place by the end of this milestone:]
|
|
159
|
+
|
|
160
|
+
- [ ] Test category 1: [Description]
|
|
161
|
+
- [ ] Test category 2: [Description]
|
|
162
|
+
- [ ] Test category 3: [Description]
|
|
163
|
+
|
|
164
|
+
**Example**:
|
|
165
|
+
- [ ] Unit tests for core utilities
|
|
166
|
+
- [ ] Integration test for database connection
|
|
167
|
+
- [ ] Server initialization test
|
|
168
|
+
- [ ] Environment variable loading test
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Documentation Requirements
|
|
173
|
+
|
|
174
|
+
[List documentation that should be created or updated:]
|
|
175
|
+
|
|
176
|
+
- [ ] Document 1: [Description]
|
|
177
|
+
- [ ] Document 2: [Description]
|
|
178
|
+
- [ ] Document 3: [Description]
|
|
179
|
+
|
|
180
|
+
**Example**:
|
|
181
|
+
- [ ] README.md with project overview and quick start
|
|
182
|
+
- [ ] API documentation for core interfaces
|
|
183
|
+
- [ ] Development setup guide
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Risks and Mitigation
|
|
188
|
+
|
|
189
|
+
[Identify potential risks and how to address them:]
|
|
190
|
+
|
|
191
|
+
| Risk | Impact | Probability | Mitigation Strategy |
|
|
192
|
+
|------|--------|-------------|---------------------|
|
|
193
|
+
| [Risk 1] | High/Medium/Low | High/Medium/Low | [How to mitigate] |
|
|
194
|
+
| [Risk 2] | High/Medium/Low | High/Medium/Low | [How to mitigate] |
|
|
195
|
+
|
|
196
|
+
**Example**:
|
|
197
|
+
| Risk | Impact | Probability | Mitigation Strategy |
|
|
198
|
+
|------|--------|-------------|---------------------|
|
|
199
|
+
| Database connection issues | High | Medium | Provide clear error messages and connection testing utilities |
|
|
200
|
+
| Dependency conflicts | Medium | Low | Pin dependency versions and test thoroughly |
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
**Next Milestone**: [Link to next milestone: milestone-{N+1}-{name}.md]
|
|
205
|
+
**Blockers**: [List any current blockers, or "None"]
|
|
206
|
+
**Notes**: [Any additional context or considerations]
|