fossel 1.0.1 → 1.0.8
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 -21
- package/README.md +108 -13
- package/dist/cli.js +1020 -0
- package/dist/index.js +469 -60
- package/package.json +5 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 vignesh Gopikrishnan
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 vignesh Gopikrishnan
|
|
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
|
@@ -4,10 +4,14 @@ Fossel is a local MCP (Model Context Protocol) memory server for open-source con
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- Persistent local memory in SQLite (`~/.
|
|
7
|
+
- Persistent local memory in SQLite (`~/.fossel/memory.db`)
|
|
8
8
|
- Full-text search with SQLite FTS5
|
|
9
9
|
- Repo-aware context retrieval grouped by memory type
|
|
10
|
+
- Pinned memories that stay at the top of repo context
|
|
11
|
+
- Structured markdown summaries for PR and planning context
|
|
10
12
|
- Simple delete workflow by memory id
|
|
13
|
+
- Partial memory updates by numeric id
|
|
14
|
+
- CLI onboarding with `fossel init`
|
|
11
15
|
- Local `stdio` MCP server for tools such as Cursor and Claude Desktop
|
|
12
16
|
|
|
13
17
|
## Memory Types
|
|
@@ -25,32 +29,87 @@ Fossel is a local MCP (Model Context Protocol) memory server for open-source con
|
|
|
25
29
|
npm install
|
|
26
30
|
```
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
Or run without installation:
|
|
29
33
|
|
|
30
34
|
```bash
|
|
31
|
-
|
|
35
|
+
npx -y fossel
|
|
32
36
|
```
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## Build
|
|
38
|
+
## Commands
|
|
37
39
|
|
|
38
40
|
```bash
|
|
39
|
-
|
|
41
|
+
npx -y fossel # start MCP server over stdio
|
|
42
|
+
npx -y fossel init # onboarding for current repository
|
|
40
43
|
```
|
|
41
44
|
|
|
42
|
-
##
|
|
45
|
+
## `fossel init`
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
`fossel init` detects your current repo, prints ready-to-copy MCP config snippets for Cursor and Claude Desktop, inserts a starter memory, and shows DB stats plus command references.
|
|
48
|
+
|
|
49
|
+
Starter memory inserted:
|
|
50
|
+
|
|
51
|
+
- Type: `convention`
|
|
52
|
+
- Content: `Fossel is active for this repo. Use store_context to save context.`
|
|
47
53
|
|
|
48
54
|
## MCP Tools
|
|
49
55
|
|
|
50
56
|
- `store_context`: Save a new memory for a repository.
|
|
51
|
-
- `get_repo_context`: Fetch recent memories for a repository, grouped by type.
|
|
57
|
+
- `get_repo_context`: Fetch recent memories for a repository, grouped by type. Pinned entries are always listed first and marked `📌 Pinned`.
|
|
52
58
|
- `search_memory`: Full-text search memories across all repos or a single repo.
|
|
53
59
|
- `delete_memory`: Delete a memory by id.
|
|
60
|
+
- `update_memory`: Update memory content and/or type by numeric id.
|
|
61
|
+
- `pin_memory`: Pin a memory by numeric id.
|
|
62
|
+
- `unpin_memory`: Unpin a memory by numeric id.
|
|
63
|
+
- `summarize_repo_context`: Return a structured markdown summary for a repo.
|
|
64
|
+
|
|
65
|
+
## Tool Examples
|
|
66
|
+
|
|
67
|
+
### `update_memory`
|
|
68
|
+
|
|
69
|
+
Input:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"id": 12,
|
|
74
|
+
"content": "Use `pnpm` workspaces for all package scripts.",
|
|
75
|
+
"memory_type": "convention"
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### `pin_memory`
|
|
80
|
+
|
|
81
|
+
Input:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"id": 12
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### `summarize_repo_context`
|
|
90
|
+
|
|
91
|
+
Input:
|
|
92
|
+
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"repo": "RocketChat"
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Output format:
|
|
100
|
+
|
|
101
|
+
```md
|
|
102
|
+
Fossel Context Summary: RocketChat
|
|
103
|
+
|
|
104
|
+
📌 Pinned
|
|
105
|
+
- (12) Always run test matrix before merge.
|
|
106
|
+
|
|
107
|
+
Conventions
|
|
108
|
+
- (3) Use feature flags for UI experiments.
|
|
109
|
+
|
|
110
|
+
Bug Fixes
|
|
111
|
+
- (5) Fixed webhook retries by making queue idempotent.
|
|
112
|
+
```
|
|
54
113
|
|
|
55
114
|
## Cursor MCP Config
|
|
56
115
|
|
|
@@ -67,8 +126,44 @@ Add this to your Cursor MCP configuration:
|
|
|
67
126
|
}
|
|
68
127
|
```
|
|
69
128
|
|
|
129
|
+
## Claude Desktop MCP Config
|
|
130
|
+
|
|
131
|
+
Add this to your Claude Desktop MCP config:
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
{
|
|
135
|
+
"mcpServers": {
|
|
136
|
+
"fossel": {
|
|
137
|
+
"command": "npx",
|
|
138
|
+
"args": ["-y", "fossel"]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Development
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
npm run dev
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
This starts the local MCP server over stdio.
|
|
151
|
+
|
|
152
|
+
## Build
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
npm run build
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Run Built Server
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
npm run start
|
|
162
|
+
```
|
|
163
|
+
|
|
70
164
|
## Notes
|
|
71
165
|
|
|
72
166
|
- Fossel is local-first: data remains on your machine.
|
|
73
167
|
- FTS5 is used for V1 search (no `sqlite-vec`).
|
|
74
|
-
- Optional: set `
|
|
168
|
+
- Optional: set `FOSSEL_DB_PATH` to override the default database path for testing.
|
|
169
|
+
- DB schema changes are managed via startup migrations in `src/db/migrate.ts`.
|