@theglitchking/semantic-pages 0.6.5 → 0.6.6
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/README.md +42 -54
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,50 +88,60 @@ Only the 14 read tools are exposed (`search_*`, `read_note`, `read_multiple_note
|
|
|
88
88
|
|
|
89
89
|
### 1. Installation Methods
|
|
90
90
|
|
|
91
|
-
#### Method A:
|
|
91
|
+
#### Method A: Claude Code Plugin (Recommended — zero config, auto-wires)
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
The easiest path if you use Claude Code. Install once per project; the plugin handles `.mcp.json` wiring automatically.
|
|
94
94
|
|
|
95
|
-
**Step 1**: Open your terminal in your project folder
|
|
96
|
-
|
|
97
|
-
**Step 2**: Run:
|
|
98
95
|
```bash
|
|
99
|
-
|
|
96
|
+
# Inside a Claude Code session:
|
|
97
|
+
/plugin marketplace add TheGlitchKing/semantic-pages
|
|
98
|
+
/plugin install semantic-pages@semantic-pages-marketplace
|
|
100
99
|
```
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
What happens next session:
|
|
102
|
+
1. A `SessionStart` hook runs and ensures `./.claude/.vault/` exists
|
|
103
|
+
2. Your project's `.mcp.json` gets a `semantic-vault` entry pointed at `./.claude/.vault` (read/write)
|
|
104
|
+
3. **If** `hit-em-with-the-docs` is also installed **and** `./.documentation/` exists → a second `semantic-pages` entry is added, pointed at `./.documentation` with `--read-only`
|
|
105
|
+
4. You get 21 tools (14 if the docs server is the one being used) for semantic search, graph traversal, and (for the vault) note CRUD
|
|
107
106
|
|
|
108
|
-
|
|
107
|
+
No manual `.mcp.json` editing. Uninstalling the plugin cleanly leaves your existing entries alone on the next session.
|
|
109
108
|
|
|
110
|
-
|
|
109
|
+
#### Method B: Project Installation (Recommended for teams and AI-assisted projects)
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
Install per-project so the version is pinned in `package.json`, stays in sync across teammates and CI, and is visible to any LLM reading the repo.
|
|
113
112
|
|
|
114
|
-
**Step 2**: Type this command and press Enter:
|
|
115
113
|
```bash
|
|
116
|
-
npm install -
|
|
114
|
+
npm install --save-dev @theglitchking/semantic-pages
|
|
117
115
|
```
|
|
118
116
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
Add to your project's `.mcp.json`:
|
|
118
|
+
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"mcpServers": {
|
|
122
|
+
"semantic-vault": {
|
|
123
|
+
"type": "stdio",
|
|
124
|
+
"command": "npx",
|
|
125
|
+
"args": ["--no", "@theglitchking/semantic-pages", "--notes", "./.claude/.vault"]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
122
129
|
```
|
|
123
130
|
|
|
124
|
-
**
|
|
131
|
+
> **Why project-level over global?** A global install is invisible to collaborators, CI, and LLMs reading the repo. A project-level install pins the exact version in `package.json`, so every agent and developer working in the repo sees the same binary. Use `npx --no` (not `npx -y`) so npx uses the locally-installed version instead of fetching from the registry.
|
|
125
132
|
|
|
126
|
-
#### Method C: MCP Configuration (
|
|
133
|
+
#### Method C: MCP Configuration via NPX (Quick setup, no install)
|
|
127
134
|
|
|
128
|
-
Add to your project's `.mcp.json
|
|
135
|
+
Add directly to your project's `.mcp.json`. npx downloads and caches the package on first use.
|
|
129
136
|
|
|
130
137
|
```json
|
|
131
138
|
{
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
|
|
139
|
+
"mcpServers": {
|
|
140
|
+
"semantic-vault": {
|
|
141
|
+
"type": "stdio",
|
|
142
|
+
"command": "npx",
|
|
143
|
+
"args": ["-y", "@theglitchking/semantic-pages", "--notes", "./.claude/.vault"]
|
|
144
|
+
}
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
147
|
```
|
|
@@ -140,45 +150,23 @@ Point `--notes` at any folder of `.md` files: `./vault`, `./docs`, `./notes`, or
|
|
|
140
150
|
|
|
141
151
|
**What to expect**: Next time you run `claude` in that project, Claude will have 21 new tools for searching, reading, writing, and traversing your notes.
|
|
142
152
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
This installs the tool only for one specific project.
|
|
153
|
+
> **Note on `@latest` and npx caching**: If you use `@latest` in the args, npx may serve a stale cached version after a new release. To force a refresh: `rm -rf ~/.npm/_npx/*/node_modules/@theglitchking`. Project-level installation (Method B) avoids this entirely.
|
|
146
154
|
|
|
147
|
-
|
|
155
|
+
#### Method D: Try it with NPX (No installation needed)
|
|
148
156
|
|
|
149
|
-
**Step 2**: Type this command:
|
|
150
157
|
```bash
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
**Step 3**: Add a script to your `package.json` file:
|
|
155
|
-
```json
|
|
156
|
-
{
|
|
157
|
-
"scripts": {
|
|
158
|
-
"notes": "semantic-pages --notes ./vault",
|
|
159
|
-
"notes:stats": "semantic-pages --notes ./vault --stats",
|
|
160
|
-
"notes:reindex": "semantic-pages --notes ./vault --reindex"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
158
|
+
npx @theglitchking/semantic-pages --notes ./vault --stats
|
|
163
159
|
```
|
|
164
160
|
|
|
165
|
-
|
|
161
|
+
The first run downloads the package and the embedding model (~80 MB) and takes 1–2 minutes. After that it runs instantly from cache. Use this to evaluate before committing to a project install.
|
|
166
162
|
|
|
167
|
-
|
|
163
|
+
#### Method E: Global Installation (Not recommended)
|
|
168
164
|
|
|
169
165
|
```bash
|
|
170
|
-
|
|
171
|
-
/plugin marketplace add TheGlitchKing/semantic-pages
|
|
172
|
-
/plugin install semantic-pages@semantic-pages-marketplace
|
|
166
|
+
npm install -g @theglitchking/semantic-pages
|
|
173
167
|
```
|
|
174
168
|
|
|
175
|
-
|
|
176
|
-
1. A `SessionStart` hook runs and ensures `./.claude/.vault/` exists
|
|
177
|
-
2. Your project's `.mcp.json` gets a `semantic-vault` entry pointed at `./.claude/.vault` (read/write)
|
|
178
|
-
3. **If** `hit-em-with-the-docs` is also installed **and** `./.documentation/` exists → a second `semantic-pages` entry is added, pointed at `./.documentation` with `--read-only`
|
|
179
|
-
4. You get 21 tools (14 if the docs server is the one being used) for semantic search, graph traversal, and (for the vault) note CRUD
|
|
180
|
-
|
|
181
|
-
No manual `.mcp.json` editing. Uninstalling the plugin cleanly leaves your existing entries alone on the next session.
|
|
169
|
+
Avoid this for projects — a global install is invisible to collaborators, CI, and LLMs reading the repo, and will silently fall out of sync with the version everyone else is using. Use project-level installation (Method B) instead.
|
|
182
170
|
|
|
183
171
|
---
|
|
184
172
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theglitchking/semantic-pages",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Semantic search + knowledge graph MCP server for markdown vaults. Claude Code plugin with auto-wiring for .claude/.vault and read-only .documentation companion when hit-em-with-the-docs is installed.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/core/index.js",
|