contextforge-mcp 0.1.76 → 0.1.78
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/README.md +167 -91
- package/dist/index.js +61 -61
- package/dist/index.js.map +1 -1
- package/package.json +21 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alfredo Izquierdo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
# ContextForge MCP
|
|
1
|
+
# ContextForge MCP — Persistent Memory for Claude, Cursor & Copilot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/contextforge-mcp)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
[](https://glama.ai/mcp/servers/alfredoizdev/contextforge-mcp)
|
|
7
|
+
|
|
8
|
+
> Give Claude Code, Cursor, and GitHub Copilot **persistent memory across sessions** via the Model Context Protocol (MCP). Stop re-explaining your project every time.
|
|
9
|
+
|
|
10
|
+
ContextForge MCP is an open-source MCP server that connects your AI coding assistants to **long-term, searchable memory**. Decisions, architecture notes, debugging context, and project knowledge stay available across every session — across every tool that supports MCP.
|
|
11
|
+
|
|
12
|
+
- 🧠 **Persistent memory** — your AI remembers everything across sessions, days, and weeks
|
|
13
|
+
- 🔍 **Semantic search** — find knowledge by meaning, not keywords
|
|
14
|
+
- 🔗 **One memory, every tool** — Claude Code, Cursor, Copilot, Claude Desktop, Windsurf
|
|
15
|
+
- 🐙 **Git integration** — sync commits and PRs automatically
|
|
16
|
+
- ✅ **Task tracking** — issues, assignments, and project status
|
|
17
|
+
- 👥 **Team collaboration** — share projects and memory with your team
|
|
18
|
+
- 🆓 **Free tier** — get started without a credit card
|
|
19
|
+
|
|
20
|
+
---
|
|
4
21
|
|
|
5
22
|
## Quick Start
|
|
6
23
|
|
|
7
|
-
###
|
|
24
|
+
### 1. Install
|
|
8
25
|
|
|
9
26
|
```bash
|
|
10
27
|
npm install -g contextforge-mcp
|
|
11
28
|
```
|
|
12
29
|
|
|
13
|
-
### Get
|
|
30
|
+
### 2. Get your API key
|
|
14
31
|
|
|
15
32
|
1. Go to **[contextforge.dev](https://contextforge.dev)**
|
|
16
|
-
2. Sign up
|
|
17
|
-
3.
|
|
18
|
-
4.
|
|
19
|
-
5. Copy your key (starts with `cf_`)
|
|
33
|
+
2. Sign up (free tier available)
|
|
34
|
+
3. Settings → API Keys → **Generate API Key**
|
|
35
|
+
4. Copy your key (starts with `cf_`)
|
|
20
36
|
|
|
21
|
-
###
|
|
37
|
+
### 3. Connect to your AI tool
|
|
22
38
|
|
|
23
|
-
####
|
|
39
|
+
#### Claude Desktop
|
|
24
40
|
|
|
25
41
|
Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
26
42
|
|
|
@@ -37,9 +53,9 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
37
53
|
}
|
|
38
54
|
```
|
|
39
55
|
|
|
40
|
-
|
|
56
|
+
Restart Claude Desktop.
|
|
41
57
|
|
|
42
|
-
####
|
|
58
|
+
#### Claude Code (CLI)
|
|
43
59
|
|
|
44
60
|
```bash
|
|
45
61
|
claude mcp add contextforge \
|
|
@@ -47,107 +63,131 @@ claude mcp add contextforge \
|
|
|
47
63
|
-- contextforge-mcp
|
|
48
64
|
```
|
|
49
65
|
|
|
50
|
-
Restart Claude Code and
|
|
66
|
+
Restart Claude Code and run `/mcp` to verify it's connected.
|
|
67
|
+
|
|
68
|
+
#### Cursor
|
|
69
|
+
|
|
70
|
+
Add to your Cursor MCP settings:
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"mcpServers": {
|
|
75
|
+
"contextforge": {
|
|
76
|
+
"command": "npx",
|
|
77
|
+
"args": ["contextforge-mcp"],
|
|
78
|
+
"env": {
|
|
79
|
+
"CONTEXTFORGE_API_KEY": "your-api-key-here"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### GitHub Copilot (VS Code)
|
|
87
|
+
|
|
88
|
+
Add to your Copilot MCP config:
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"servers": {
|
|
93
|
+
"contextforge": {
|
|
94
|
+
"command": "npx",
|
|
95
|
+
"args": ["contextforge-mcp"],
|
|
96
|
+
"env": {
|
|
97
|
+
"CONTEXTFORGE_API_KEY": "your-api-key-here"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
51
103
|
|
|
52
104
|
---
|
|
53
105
|
|
|
54
106
|
## Available Tools
|
|
55
107
|
|
|
56
|
-
ContextForge provides
|
|
108
|
+
ContextForge provides tools for **Knowledge Management**, **GitHub Integration**, **Issue Tracking**, and **Collaboration**.
|
|
57
109
|
|
|
58
110
|
### Knowledge Management
|
|
59
111
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
|
63
|
-
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `memory_ingest_batch` | Save multiple items at once | "Save these 5 code snippets" |
|
|
69
|
-
| `memory_delete_batch` | Delete items by filter | "Delete all items tagged 'draft'" |
|
|
112
|
+
| Tool | Description |
|
|
113
|
+
|------|-------------|
|
|
114
|
+
| `memory_ingest` | Save knowledge to memory |
|
|
115
|
+
| `memory_query` | Search your knowledge semantically |
|
|
116
|
+
| `memory_list_items` | List all stored items |
|
|
117
|
+
| `memory_delete` | Remove specific items |
|
|
118
|
+
| `memory_ingest_batch` | Save multiple items at once |
|
|
119
|
+
| `memory_delete_batch` | Delete items by filter |
|
|
70
120
|
|
|
71
121
|
### Spaces & Projects
|
|
72
122
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `memory_unlink_project` | Unlink directory | "Unlink this folder" |
|
|
86
|
-
| `memory_current_project` | Show linked project | "What project is linked here?" |
|
|
123
|
+
| Tool | Description |
|
|
124
|
+
|------|-------------|
|
|
125
|
+
| `memory_list_spaces` | List your spaces |
|
|
126
|
+
| `memory_create_space` | Create a new space |
|
|
127
|
+
| `memory_delete_space` | Delete a space |
|
|
128
|
+
| `memory_move_space` | Move space to project |
|
|
129
|
+
| `memory_list_projects` | List your projects |
|
|
130
|
+
| `memory_create_project` | Create a new project |
|
|
131
|
+
| `memory_delete_project` | Delete a project |
|
|
132
|
+
| `memory_link_project` | Link directory to project |
|
|
133
|
+
| `memory_unlink_project` | Unlink directory |
|
|
134
|
+
| `memory_current_project` | Show linked project |
|
|
87
135
|
|
|
88
136
|
### GitHub Integration
|
|
89
137
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
|
93
|
-
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
| `
|
|
99
|
-
| `memory_git_prs` | List synced PRs | "Show merged PRs this week" |
|
|
100
|
-
| `memory_git_disconnect` | Disconnect a repo | "Disconnect the old repo" |
|
|
138
|
+
| Tool | Description |
|
|
139
|
+
|------|-------------|
|
|
140
|
+
| `memory_git_connect` | Connect a GitHub repo |
|
|
141
|
+
| `memory_git_list` | List connected repos |
|
|
142
|
+
| `memory_git_activate` | Activate/deactivate webhook |
|
|
143
|
+
| `memory_git_sync` | Import existing history |
|
|
144
|
+
| `memory_git_commits` | List synced commits |
|
|
145
|
+
| `memory_git_prs` | List synced PRs |
|
|
146
|
+
| `memory_git_disconnect` | Disconnect a repo |
|
|
101
147
|
|
|
102
148
|
### Issue Tracking
|
|
103
149
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `
|
|
112
|
-
| `
|
|
113
|
-
| `issues_assign` | Assign to collaborator | "Assign issue to john@example.com" |
|
|
114
|
-
| `issues_what_next` | Get recommendation | "What should I work on next?" |
|
|
150
|
+
| Tool | Description |
|
|
151
|
+
|------|-------------|
|
|
152
|
+
| `issues_list` | List your issues |
|
|
153
|
+
| `issues_create` | Create a new issue |
|
|
154
|
+
| `issues_start` | Mark as in progress |
|
|
155
|
+
| `issues_resolve` | Mark as resolved |
|
|
156
|
+
| `issues_resolve_by_name` | Resolve by title |
|
|
157
|
+
| `issues_assign` | Assign to collaborator |
|
|
158
|
+
| `issues_what_next` | Get recommendation |
|
|
115
159
|
|
|
116
160
|
### Collaboration
|
|
117
161
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
|
121
|
-
|
|
122
|
-
| `project_share` | Share project by email | "Share project with alice@company.com" |
|
|
123
|
-
| `collaborators_list` | List collaborators | "Who has access to this project?" |
|
|
162
|
+
| Tool | Description |
|
|
163
|
+
|------|-------------|
|
|
164
|
+
| `project_share` | Share project by email |
|
|
165
|
+
| `collaborators_list` | List collaborators |
|
|
124
166
|
|
|
125
167
|
### Snapshots & Export
|
|
126
168
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
|
130
|
-
|
|
131
|
-
| `
|
|
132
|
-
| `
|
|
133
|
-
| `
|
|
134
|
-
| `
|
|
135
|
-
| `memory_export` | Export to JSON/MD/CSV | "Export my API space to markdown" |
|
|
136
|
-
| `memory_import` | Import from file | "Import these notes" |
|
|
169
|
+
| Tool | Description |
|
|
170
|
+
|------|-------------|
|
|
171
|
+
| `memory_snapshot_create` | Create a backup |
|
|
172
|
+
| `memory_snapshot_list` | List all snapshots |
|
|
173
|
+
| `memory_snapshot_restore` | Restore from backup |
|
|
174
|
+
| `memory_snapshot_delete` | Delete a snapshot |
|
|
175
|
+
| `memory_export` | Export to JSON/MD/CSV |
|
|
176
|
+
| `memory_import` | Import from file |
|
|
137
177
|
|
|
138
178
|
### Utility
|
|
139
179
|
|
|
140
|
-
| Tool | Description |
|
|
141
|
-
|
|
142
|
-
| `memory_stats` | View usage statistics |
|
|
143
|
-
| `memory_relate` | Link two items |
|
|
144
|
-
| `memory_help` | Show help |
|
|
180
|
+
| Tool | Description |
|
|
181
|
+
|------|-------------|
|
|
182
|
+
| `memory_stats` | View usage statistics |
|
|
183
|
+
| `memory_relate` | Link two items |
|
|
184
|
+
| `memory_help` | Show help |
|
|
145
185
|
|
|
146
186
|
---
|
|
147
187
|
|
|
148
188
|
## Natural Language Examples
|
|
149
189
|
|
|
150
|
-
You don't need to memorize commands
|
|
190
|
+
You don't need to memorize commands — just talk naturally to your AI:
|
|
151
191
|
|
|
152
192
|
```
|
|
153
193
|
# Knowledge
|
|
@@ -174,32 +214,68 @@ You don't need to memorize commands. Just talk naturally:
|
|
|
174
214
|
| Variable | Required | Description |
|
|
175
215
|
|----------|----------|-------------|
|
|
176
216
|
| `CONTEXTFORGE_API_KEY` | Yes | Your API key from the dashboard |
|
|
217
|
+
| `CONTEXTFORGE_API_URL` | No | API endpoint (defaults to production) |
|
|
177
218
|
| `CONTEXTFORGE_DEFAULT_SPACE` | No | Default space for operations |
|
|
178
219
|
|
|
179
220
|
---
|
|
180
221
|
|
|
222
|
+
## How it works
|
|
223
|
+
|
|
224
|
+
ContextForge MCP is a thin client that translates Model Context Protocol tool calls into authenticated HTTP requests against the ContextForge API. Your knowledge is stored, indexed (semantic embeddings), and retrieved on the server side — the MCP client itself is stateless.
|
|
225
|
+
|
|
226
|
+
This means:
|
|
227
|
+
- **No infra to manage** — no local databases, no embeddings to run, no vector stores to maintain
|
|
228
|
+
- **Works everywhere your AI works** — same memory across Claude Code, Cursor, Copilot, etc.
|
|
229
|
+
- **Team collaboration** — shared projects sync in real time
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
181
233
|
## Dashboard
|
|
182
234
|
|
|
183
|
-
Manage your
|
|
235
|
+
Manage your memory visually at **[contextforge.dev](https://contextforge.dev)**:
|
|
184
236
|
|
|
185
237
|
- View and organize your knowledge
|
|
186
238
|
- Search and filter memories
|
|
187
|
-
- Manage API keys
|
|
239
|
+
- Manage API keys and billing
|
|
188
240
|
- Track issues and collaborate
|
|
189
241
|
- Export and backup data
|
|
190
242
|
|
|
191
243
|
---
|
|
192
244
|
|
|
193
|
-
##
|
|
245
|
+
## Development
|
|
194
246
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
247
|
+
```bash
|
|
248
|
+
# Clone and install
|
|
249
|
+
git clone https://github.com/alfredoizdev/contextforge-mcp.git
|
|
250
|
+
cd contextforge-mcp
|
|
251
|
+
npm install
|
|
198
252
|
|
|
199
|
-
|
|
253
|
+
# Build
|
|
254
|
+
npm run build
|
|
255
|
+
|
|
256
|
+
# Run tests
|
|
257
|
+
npm test
|
|
258
|
+
|
|
259
|
+
# Watch mode
|
|
260
|
+
npm run dev
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Contributing
|
|
200
266
|
|
|
201
|
-
|
|
267
|
+
Issues and pull requests are welcome at **[github.com/alfredoizdev/contextforge-mcp](https://github.com/alfredoizdev/contextforge-mcp)**.
|
|
202
268
|
|
|
203
269
|
---
|
|
204
270
|
|
|
205
|
-
|
|
271
|
+
## Support
|
|
272
|
+
|
|
273
|
+
- 📖 [Documentation](https://contextforge.dev/docs)
|
|
274
|
+
- 🐛 [Report Issues](https://github.com/alfredoizdev/contextforge-mcp/issues)
|
|
275
|
+
- 💬 Questions: support@contextforge.app
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## License
|
|
280
|
+
|
|
281
|
+
MIT © [Alfredo Izquierdo](https://github.com/alfredoizdev)
|