@prmichaelsen/remember-mcp 1.0.7 → 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.
@@ -0,0 +1,75 @@
1
+ #!/bin/bash
2
+
3
+ # Agent Context Protocol (ACP) Uninstall Script
4
+ # This script removes all ACP files from a project
5
+ # Usage: ./agent/scripts/uninstall.sh [-y]
6
+
7
+ set -e
8
+
9
+ # Colors for output
10
+ RED='\033[0;31m'
11
+ GREEN='\033[0;32m'
12
+ YELLOW='\033[1;33m'
13
+ BLUE='\033[0;34m'
14
+ NC='\033[0m' # No Color
15
+
16
+ # Check for -y flag
17
+ AUTO_CONFIRM=false
18
+ if [ "$1" = "-y" ]; then
19
+ AUTO_CONFIRM=true
20
+ fi
21
+
22
+ echo -e "${YELLOW}Agent Context Protocol (ACP) Uninstall${NC}"
23
+ echo "======================================"
24
+ echo ""
25
+
26
+ # Check if agent directory exists
27
+ if [ ! -d "agent" ] && [ ! -f "AGENT.md" ]; then
28
+ echo -e "${YELLOW}No ACP files found in current directory${NC}"
29
+ exit 0
30
+ fi
31
+
32
+ # If not auto-confirmed, show instructions for agents
33
+ if [ "$AUTO_CONFIRM" = false ]; then
34
+ echo -e "${BLUE}Note for AI Agents:${NC}"
35
+ echo "This script requires user confirmation to prevent accidental deletion."
36
+ echo "Please ask the user: 'Do you want to uninstall ACP from this project?'"
37
+ echo "If yes, rerun this script with: ./agent/scripts/uninstall.sh -y"
38
+ echo ""
39
+ echo -e "${RED}WARNING: This will permanently delete:${NC}"
40
+ echo " - agent/ directory (all contents)"
41
+ echo " - AGENT.md file"
42
+ echo ""
43
+ echo "Make sure you have committed any important changes to git."
44
+ echo ""
45
+
46
+ read -p "Are you sure you want to remove all ACP files? (y/N) " -n 1 -r
47
+ echo
48
+
49
+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
50
+ echo "Uninstall cancelled. No files were deleted."
51
+ exit 0
52
+ fi
53
+ fi
54
+
55
+ echo ""
56
+ echo "Removing ACP files..."
57
+
58
+ # Remove agent directory
59
+ if [ -d "agent" ]; then
60
+ rm -rf agent
61
+ echo -e "${GREEN}✓${NC} Removed agent/ directory"
62
+ fi
63
+
64
+ # Remove AGENT.md
65
+ if [ -f "AGENT.md" ]; then
66
+ rm -f AGENT.md
67
+ echo -e "${GREEN}✓${NC} Removed AGENT.md"
68
+ fi
69
+
70
+ echo ""
71
+ echo -e "${GREEN}Uninstall complete!${NC}"
72
+ echo ""
73
+ echo "All ACP files have been removed from this project."
74
+ echo "Use 'git status' to see what was deleted."
75
+ echo ""
@@ -0,0 +1,75 @@
1
+ #!/bin/bash
2
+
3
+ # Agent Context Protocol (ACP) Update Script
4
+ # This script updates AGENT.md, template files, and utility scripts from the repository
5
+
6
+ set -e
7
+
8
+ # Colors for output
9
+ RED='\033[0;31m'
10
+ GREEN='\033[0;32m'
11
+ YELLOW='\033[1;33m'
12
+ BLUE='\033[0;34m'
13
+ NC='\033[0m' # No Color
14
+
15
+ # Repository details
16
+ REPO_URL="https://github.com/prmichaelsen/agent-context-protocol.git"
17
+ BRANCH="mainline"
18
+
19
+ echo -e "${BLUE}Agent Context Protocol (ACP) Updater${NC}"
20
+ echo "======================================"
21
+ echo ""
22
+
23
+ # Check if AGENT.md exists
24
+ if [ ! -f "AGENT.md" ]; then
25
+ echo -e "${RED}Error: AGENT.md not found in current directory${NC}"
26
+ echo "This script should be run from your project root where AGENT.md is located."
27
+ exit 1
28
+ fi
29
+
30
+ # Create temporary directory
31
+ TEMP_DIR=$(mktemp -d)
32
+ trap "rm -rf $TEMP_DIR" EXIT
33
+
34
+ echo "Fetching latest ACP files..."
35
+ if ! git clone --depth 1 --branch "$BRANCH" "$REPO_URL" "$TEMP_DIR" &>/dev/null; then
36
+ echo -e "${RED}Error: Failed to fetch repository${NC}"
37
+ echo "Please check your internet connection and try again."
38
+ exit 1
39
+ fi
40
+
41
+ echo -e "${GREEN}✓${NC} Latest files fetched"
42
+ echo ""
43
+
44
+ echo "Updating ACP files..."
45
+
46
+ # Update template files
47
+ cp "$TEMP_DIR/agent/design/design.template.md" "agent/design/"
48
+ cp "$TEMP_DIR/agent/design/requirements.template.md" "agent/design/"
49
+ cp "$TEMP_DIR/agent/milestones/milestone-1-{title}.template.md" "agent/milestones/"
50
+ cp "$TEMP_DIR/agent/tasks/task-1-{title}.template.md" "agent/tasks/"
51
+ cp "$TEMP_DIR/agent/patterns/pattern.template.md" "agent/patterns/"
52
+ cp "$TEMP_DIR/agent/patterns/bootstrap.template.md" "agent/patterns/"
53
+ cp "$TEMP_DIR/agent/progress.template.yaml" "agent/"
54
+
55
+ # Update AGENT.md
56
+ cp "$TEMP_DIR/AGENT.md" "."
57
+
58
+ # Update scripts
59
+ cp "$TEMP_DIR/scripts/update.sh" "agent/scripts/"
60
+ cp "$TEMP_DIR/scripts/check-for-updates.sh" "agent/scripts/"
61
+ cp "$TEMP_DIR/scripts/uninstall.sh" "agent/scripts/"
62
+ chmod +x agent/scripts/*.sh
63
+
64
+ echo -e "${GREEN}✓${NC} All files updated"
65
+ echo ""
66
+ echo -e "${GREEN}Update complete!${NC}"
67
+ echo ""
68
+ echo -e "${BLUE}Next steps:${NC}"
69
+ echo "1. Review changes: git diff"
70
+ echo "2. See what changed: git status"
71
+ echo "3. Revert if needed: git checkout <file>"
72
+ echo ""
73
+ echo "For detailed changelog:"
74
+ echo " https://github.com/prmichaelsen/agent-context-protocol/blob/mainline/CHANGELOG.md"
75
+ echo ""
@@ -0,0 +1,225 @@
1
+ # Task {N}: {Descriptive Task Name}
2
+
3
+ **Milestone**: [M{N} - Milestone Name](../milestones/milestone-{N}-{name}.md)
4
+ **Estimated Time**: [e.g., "2 hours", "4 hours", "1 day"]
5
+ **Dependencies**: [List prerequisite tasks, or "None"]
6
+ **Status**: Not Started | In Progress | Completed
7
+
8
+ ---
9
+
10
+ ## Objective
11
+
12
+ [Clearly state what this task accomplishes. Be specific and focused on a single, achievable goal.]
13
+
14
+ **Example**: "Create the basic project structure with all necessary configuration files and directory organization for a TypeScript-based MCP server."
15
+
16
+ ---
17
+
18
+ ## Context
19
+
20
+ [Provide background information that helps understand why this task is necessary and how it fits into the larger milestone.]
21
+
22
+ **Example**: "This task establishes the foundation for the project. Without proper structure and configuration, subsequent development tasks cannot proceed. The structure follows industry best practices for TypeScript projects and MCP server organization."
23
+
24
+ ---
25
+
26
+ ## Steps
27
+
28
+ [Provide a detailed, sequential list of actions to complete this task. Each step should be concrete and actionable.]
29
+
30
+ ### 1. [Step Category or Action]
31
+ [Detailed description of what to do]
32
+
33
+ ```bash
34
+ # Command examples if applicable
35
+ command --with-flags
36
+ ```
37
+
38
+ ```typescript
39
+ // Code examples if applicable
40
+ const example = "code";
41
+ ```
42
+
43
+ ### 2. [Next Step]
44
+ [Detailed description]
45
+
46
+ ### 3. [Next Step]
47
+ [Detailed description]
48
+
49
+ **Example**:
50
+
51
+ ### 1. Create Project Directory
52
+ Create the root directory for the project and navigate into it:
53
+
54
+ ```bash
55
+ mkdir -p my-project
56
+ cd my-project
57
+ ```
58
+
59
+ ### 2. Initialize npm Project
60
+ Initialize a new npm project with default settings:
61
+
62
+ ```bash
63
+ npm init -y
64
+ ```
65
+
66
+ ### 3. Update package.json
67
+ Edit the generated package.json to include proper metadata and scripts:
68
+
69
+ ```json
70
+ {
71
+ "name": "my-project",
72
+ "version": "0.1.0",
73
+ "description": "Description of what this project does",
74
+ "main": "dist/index.js",
75
+ "type": "module",
76
+ "scripts": {
77
+ "build": "node esbuild.build.js",
78
+ "dev": "tsx watch src/index.ts",
79
+ "start": "node dist/index.js",
80
+ "test": "vitest",
81
+ "typecheck": "tsc --noEmit"
82
+ },
83
+ "keywords": ["mcp", "relevant", "keywords"],
84
+ "author": "Your Name",
85
+ "license": "MIT"
86
+ }
87
+ ```
88
+
89
+ ### 4. Create Directory Structure
90
+ Create all necessary directories:
91
+
92
+ ```bash
93
+ mkdir -p src/{types,utils,tools}
94
+ mkdir -p tests/{unit,integration}
95
+ mkdir -p agent/{design,milestones,patterns,tasks}
96
+ ```
97
+
98
+ ### 5. Create Configuration Files
99
+ Create TypeScript configuration, build scripts, and other config files.
100
+
101
+ **tsconfig.json**:
102
+ ```json
103
+ {
104
+ "compilerOptions": {
105
+ "target": "ES2022",
106
+ "module": "Node16",
107
+ "moduleResolution": "Node16",
108
+ "lib": ["ES2022"],
109
+ "outDir": "./dist",
110
+ "rootDir": "./src",
111
+ "strict": true,
112
+ "esModuleInterop": true,
113
+ "skipLibCheck": true,
114
+ "forceConsistentCasingInFileNames": true,
115
+ "resolveJsonModule": true,
116
+ "declaration": true,
117
+ "declarationMap": true,
118
+ "sourceMap": true
119
+ },
120
+ "include": ["src/**/*"],
121
+ "exclude": ["node_modules", "dist", "tests"]
122
+ }
123
+ ```
124
+
125
+ [Continue with other config files...]
126
+
127
+ ---
128
+
129
+ ## Verification
130
+
131
+ [Provide a checklist of items to verify the task is complete. Each item should be objectively verifiable.]
132
+
133
+ - [ ] Verification item 1: [Specific condition to check]
134
+ - [ ] Verification item 2: [Specific condition to check]
135
+ - [ ] Verification item 3: [Specific condition to check]
136
+ - [ ] Verification item 4: [Specific condition to check]
137
+ - [ ] Verification item 5: [Specific condition to check]
138
+
139
+ **Example**:
140
+ - [ ] Project directory created and contains expected subdirectories
141
+ - [ ] package.json exists and contains correct metadata
142
+ - [ ] tsconfig.json exists and is valid JSON
143
+ - [ ] All configuration files created (.gitignore, .env.example, etc.)
144
+ - [ ] Directory structure matches specification
145
+ - [ ] No syntax errors in configuration files
146
+
147
+ ---
148
+
149
+ ## Expected Output
150
+
151
+ [Describe what the project should look like after this task is complete.]
152
+
153
+ **File Structure**:
154
+ ```
155
+ project-root/
156
+ ├── file1
157
+ ├── file2
158
+ └── directory/
159
+ └── file3
160
+ ```
161
+
162
+ **Key Files Created**:
163
+ - `file1`: [Purpose]
164
+ - `file2`: [Purpose]
165
+ - `directory/file3`: [Purpose]
166
+
167
+ ---
168
+
169
+ ## Common Issues and Solutions
170
+
171
+ [Document potential problems and how to resolve them:]
172
+
173
+ ### Issue 1: [Problem description]
174
+ **Symptom**: [What the user will see]
175
+ **Solution**: [How to fix it]
176
+
177
+ ### Issue 2: [Problem description]
178
+ **Symptom**: [What the user will see]
179
+ **Solution**: [How to fix it]
180
+
181
+ **Example**:
182
+
183
+ ### Issue 1: npm init fails
184
+ **Symptom**: Error message about permissions or missing npm
185
+ **Solution**: Ensure Node.js and npm are installed correctly. Run `node --version` and `npm --version` to verify.
186
+
187
+ ### Issue 2: TypeScript configuration errors
188
+ **Symptom**: tsc complains about invalid configuration
189
+ **Solution**: Validate JSON syntax in tsconfig.json. Ensure all required fields are present.
190
+
191
+ ---
192
+
193
+ ## Resources
194
+
195
+ [Link to relevant documentation, examples, or references:]
196
+
197
+ - [Resource 1 Name](URL): Description
198
+ - [Resource 2 Name](URL): Description
199
+ - [Resource 3 Name](URL): Description
200
+
201
+ **Example**:
202
+ - [TypeScript Handbook](https://www.typescriptlang.org/docs/): Official TypeScript documentation
203
+ - [esbuild Documentation](https://esbuild.github.io/): Build tool documentation
204
+ - [MCP SDK Documentation](https://github.com/modelcontextprotocol/sdk): MCP protocol reference
205
+
206
+ ---
207
+
208
+ ## Notes
209
+
210
+ [Any additional context, warnings, or considerations:]
211
+
212
+ - Note 1: [Important information]
213
+ - Note 2: [Important information]
214
+ - Note 3: [Important information]
215
+
216
+ **Example**:
217
+ - This task creates the foundation for all subsequent work
218
+ - Configuration files may need adjustment based on specific project requirements
219
+ - Keep .env files out of version control (ensure .gitignore is correct)
220
+
221
+ ---
222
+
223
+ **Next Task**: [Link to next task: task-{N+1}-{name}.md]
224
+ **Related Design Docs**: [Links to relevant design documents]
225
+ **Estimated Completion Date**: [YYYY-MM-DD or "TBD"]