@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.
Files changed (2) hide show
  1. package/README.md +42 -54
  2. 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: NPX (No installation needed)
91
+ #### Method A: Claude Code Plugin (Recommended zero config, auto-wires)
92
92
 
93
- This lets you run the server without installing it permanently.
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
- npx semantic-pages --notes ./vault --stats
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
- **Step 3**: The first time you run it, NPX downloads the package and the embedding model (~80MB). This takes 1-2 minutes.
103
-
104
- **Step 4**: After that, it runs instantly.
105
-
106
- **Use this method when**: You want to try it out, or you're adding it to a project's `.mcp.json` config.
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
- #### Method B: Global Installation (Recommended for regular use)
107
+ No manual `.mcp.json` editing. Uninstalling the plugin cleanly leaves your existing entries alone on the next session.
109
108
 
110
- This installs the tool on your computer so you can use it in any project.
109
+ #### Method B: Project Installation (Recommended for teams and AI-assisted projects)
111
110
 
112
- **Step 1**: Open your terminal
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 -g @theglitchking/semantic-pages
114
+ npm install --save-dev @theglitchking/semantic-pages
117
115
  ```
118
116
 
119
- **Step 3**: Test that it worked:
120
- ```bash
121
- semantic-pages --version
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
- **Step 4**: You should see a version number. If you do, it's installed correctly!
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 (Recommended for Claude Code)
133
+ #### Method C: MCP Configuration via NPX (Quick setup, no install)
127
134
 
128
- Add to your project's `.mcp.json` so Claude has automatic access:
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
- "semantic-pages": {
133
- "command": "npx",
134
- "args": ["-y", "semantic-pages", "--notes", "./vault"]
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
- #### Method D: Project Installation (For team projects)
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
- **Step 1**: Open your terminal in your project folder
155
+ #### Method D: Try it with NPX (No installation needed)
148
156
 
149
- **Step 2**: Type this command:
150
157
  ```bash
151
- npm install --save-dev @theglitchking/semantic-pages
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
- #### Method E: Claude Code Plugin (Recommended zero config, auto-wires)
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
- This is the easiest path if you use Claude Code and want `.claude/.vault/` + (optionally) `.documentation/` indexed automatically.
163
+ #### Method E: Global Installation (Not recommended)
168
164
 
169
165
  ```bash
170
- # Inside a Claude Code session:
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
- What happens next session:
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.5",
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",