codeseeker 1.8.0 → 1.8.1

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 CHANGED
@@ -1,21 +1,216 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 CodeSeeker Contributors
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
+ The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
2
+
3
+ Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
4
+
5
+ No rights beyond those granted by the applicable original license are conveyed for such contributions.
6
+
7
+ ---
8
+
9
+ Apache License
10
+ Version 2.0, January 2004
11
+ http://www.apache.org/licenses/
12
+
13
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
+
15
+ 1. Definitions.
16
+
17
+ "License" shall mean the terms and conditions for use, reproduction,
18
+ and distribution as defined by Sections 1 through 9 of this document.
19
+
20
+ "Licensor" shall mean the copyright owner or entity authorized by
21
+ the copyright owner that is granting the License.
22
+
23
+ "Legal Entity" shall mean the union of the acting entity and all
24
+ other entities that control, are controlled by, or are under common
25
+ control with that entity. For the purposes of this definition,
26
+ "control" means (i) the power, direct or indirect, to cause the
27
+ direction or management of such entity, whether by contract or
28
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
+ outstanding shares, or (iii) beneficial ownership of such entity.
30
+
31
+ "You" (or "Your") shall mean an individual or Legal Entity
32
+ exercising permissions granted by this License.
33
+
34
+ "Source" form shall mean the preferred form for making modifications,
35
+ including but not limited to software source code, documentation
36
+ source, and configuration files.
37
+
38
+ "Object" form shall mean any form resulting from mechanical
39
+ transformation or translation of a Source form, including but
40
+ not limited to compiled object code, generated documentation,
41
+ and conversions to other media types.
42
+
43
+ "Work" shall mean the work of authorship, whether in Source or
44
+ Object form, made available under the License, as indicated by a
45
+ copyright notice that is included in or attached to the work
46
+ (an example is provided in the Appendix below).
47
+
48
+ "Derivative Works" shall mean any work, whether in Source or Object
49
+ form, that is based on (or derived from) the Work and for which the
50
+ editorial revisions, annotations, elaborations, or other modifications
51
+ represent, as a whole, an original work of authorship. For the purposes
52
+ of this License, Derivative Works shall not include works that remain
53
+ separable from, or merely link (or bind by name) to the interfaces of,
54
+ the Work and Derivative Works thereof.
55
+
56
+ "Contribution" shall mean any work of authorship, including
57
+ the original version of the Work and any modifications or additions
58
+ to that Work or Derivative Works thereof, that is intentionally
59
+ submitted to the Licensor for inclusion in the Work by the copyright
60
+ owner or by an individual or Legal Entity authorized to submit on behalf
61
+ of the copyright owner. For the purposes of this definition, "submitted"
62
+ means any form of electronic, verbal, or written communication sent
63
+ to the Licensor or its representatives, including but not limited to
64
+ communication on electronic mailing lists, source code control systems,
65
+ and issue tracking systems that are managed by, or on behalf of, the
66
+ Licensor for the purpose of discussing and improving the Work, but
67
+ excluding communication that is conspicuously marked or otherwise
68
+ designated in writing by the copyright owner as "Not a Contribution."
69
+
70
+ "Contributor" shall mean Licensor and any individual or Legal Entity
71
+ on behalf of whom a Contribution has been received by Licensor and
72
+ subsequently incorporated within the Work.
73
+
74
+ 2. Grant of Copyright License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ copyright license to reproduce, prepare Derivative Works of,
78
+ publicly display, publicly perform, sublicense, and distribute the
79
+ Work and such Derivative Works in Source or Object form.
80
+
81
+ 3. Grant of Patent License. Subject to the terms and conditions of
82
+ this License, each Contributor hereby grants to You a perpetual,
83
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
+ (except as stated in this section) patent license to make, have made,
85
+ use, offer to sell, sell, import, and otherwise transfer the Work,
86
+ where such license applies only to those patent claims licensable
87
+ by such Contributor that are necessarily infringed by their
88
+ Contribution(s) alone or by combination of their Contribution(s)
89
+ with the Work to which such Contribution(s) was submitted. If You
90
+ institute patent litigation against any entity (including a
91
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
92
+ or a Contribution incorporated within the Work constitutes direct
93
+ or contributory patent infringement, then any patent licenses
94
+ granted to You under this License for that Work shall terminate
95
+ as of the date such litigation is filed.
96
+
97
+ 4. Redistribution. You may reproduce and distribute copies of the
98
+ Work or Derivative Works thereof in any medium, with or without
99
+ modifications, and in Source or Object form, provided that You
100
+ meet the following conditions:
101
+
102
+ (a) You must give any other recipients of the Work or
103
+ Derivative Works a copy of this License; and
104
+
105
+ (b) You must cause any modified files to carry prominent notices
106
+ stating that You changed the files; and
107
+
108
+ (c) You must retain, in the Source form of any Derivative Works
109
+ that You distribute, all copyright, patent, trademark, and
110
+ attribution notices from the Source form of the Work,
111
+ excluding those notices that do not pertain to any part of
112
+ the Derivative Works; and
113
+
114
+ (d) If the Work includes a "NOTICE" text file as part of its
115
+ distribution, then any Derivative Works that You distribute must
116
+ include a readable copy of the attribution notices contained
117
+ within such NOTICE file, excluding those notices that do not
118
+ pertain to any part of the Derivative Works, in at least one
119
+ of the following places: within a NOTICE text file distributed
120
+ as part of the Derivative Works; within the Source form or
121
+ documentation, if provided along with the Derivative Works; or,
122
+ within a display generated by the Derivative Works, if and
123
+ wherever such third-party notices normally appear. The contents
124
+ of the NOTICE file are for informational purposes only and
125
+ do not modify the License. You may add Your own attribution
126
+ notices within Derivative Works that You distribute, alongside
127
+ or as an addendum to the NOTICE text from the Work, provided
128
+ that such additional attribution notices cannot be construed
129
+ as modifying the License.
130
+
131
+ You may add Your own copyright statement to Your modifications and
132
+ may provide additional or different license terms and conditions
133
+ for use, reproduction, or distribution of Your modifications, or
134
+ for any such Derivative Works as a whole, provided Your use,
135
+ reproduction, and distribution of the Work otherwise complies with
136
+ the conditions stated in this License.
137
+
138
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
139
+ any Contribution intentionally submitted for inclusion in the Work
140
+ by You to the Licensor shall be under the terms and conditions of
141
+ this License, without any additional terms or conditions.
142
+ Notwithstanding the above, nothing herein shall supersede or modify
143
+ the terms of any separate license agreement you may have executed
144
+ with Licensor regarding such Contributions.
145
+
146
+ 6. Trademarks. This License does not grant permission to use the trade
147
+ names, trademarks, service marks, or product names of the Licensor,
148
+ except as required for reasonable and customary use in describing the
149
+ origin of the Work and reproducing the content of the NOTICE file.
150
+
151
+ 7. Disclaimer of Warranty. Unless required by applicable law or
152
+ agreed to in writing, Licensor provides the Work (and each
153
+ Contributor provides its Contributions) on an "AS IS" BASIS,
154
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
+ implied, including, without limitation, any warranties or conditions
156
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
+ PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any
159
+ risks associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability. In no event and under no legal theory,
162
+ whether in tort (including negligence), contract, or otherwise,
163
+ unless required by applicable law (such as deliberate and grossly
164
+ negligent acts) or agreed to in writing, shall any Contributor be
165
+ liable to You for damages, including any direct, indirect, special,
166
+ incidental, or consequential damages of any character arising as a
167
+ result of this License or out of the use or inability to use the
168
+ Work (including but not limited to damages for loss of goodwill,
169
+ work stoppage, computer failure or malfunction, or any and all
170
+ other commercial damages or losses), even if such Contributor
171
+ has been advised of the possibility of such damages.
172
+
173
+ 9. Accepting Warranty or Additional Liability. While redistributing
174
+ the Work or Derivative Works thereof, You may choose to offer,
175
+ and charge a fee for, acceptance of support, warranty, indemnity,
176
+ or other liability obligations and/or rights consistent with this
177
+ License. However, in accepting such obligations, You may act only
178
+ on Your own behalf and on Your sole responsibility, not on behalf
179
+ of any other Contributor, and only if You agree to indemnify,
180
+ defend, and hold each Contributor harmless for any liability
181
+ incurred by, or claims asserted against, such Contributor by reason
182
+ of your accepting any such warranty or additional liability.
183
+
184
+ END OF TERMS AND CONDITIONS
185
+
186
+ ---
187
+
188
+ MIT License
189
+
190
+ Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
191
+
192
+ Permission is hereby granted, free of charge, to any person obtaining a copy
193
+ of this software and associated documentation files (the "Software"), to deal
194
+ in the Software without restriction, including without limitation the rights
195
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
196
+ copies of the Software, and to permit persons to whom the Software is
197
+ furnished to do so, subject to the following conditions:
198
+
199
+ The above copyright notice and this permission notice shall be included in all
200
+ copies or substantial portions of the Software.
201
+
202
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
203
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
205
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
206
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
207
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
208
+ SOFTWARE.
209
+
210
+ ---
211
+
212
+ Creative Commons Attribution 4.0 International (CC-BY-4.0)
213
+
214
+ Documentation in this project (excluding specifications) is licensed under
215
+ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
216
+ the full license text.
package/README.md CHANGED
@@ -1,468 +1,153 @@
1
- # CodeSeeker
2
-
3
- **Graph-powered code intelligence for Claude Code.** CodeSeeker builds a knowledge graph of your codebase—not just embeddings—so Claude understands how your code actually connects.
4
-
5
- [![npm version](https://img.shields.io/npm/v/codeseeker.svg)](https://www.npmjs.com/package/codeseeker)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
7
- [![TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue.svg)](https://www.typescriptlang.org/)
8
-
9
- > **What is CodeSeeker?** An MCP server that gives AI assistants semantic code search and knowledge graph traversal. Works with **Claude Code**, **GitHub Copilot**, **Cursor**, and **Claude Desktop**.
10
-
11
- > **⚠️ NOT A VS CODE EXTENSION:** CodeSeeker is installed via `npm`, not the VS Code marketplace. It's an MCP server that enhances AI assistants, not a standalone extension.
12
-
13
- ## Installation
14
-
15
- > **🚨 Important:** CodeSeeker is **NOT a VS Code extension**. It's an **MCP server** (Model Context Protocol) that works WITH AI assistants like Claude Code and GitHub Copilot. Don't look for it in the VS Code marketplace—install via the methods below.
16
-
17
- ### One-Line Install (Easiest)
18
-
19
- Copy/paste ONE command - auto-detects your system and configures everything:
20
-
21
- **macOS/Linux:**
22
- ```bash
23
- curl -fsSL https://raw.githubusercontent.com/jghiringhelli/codeseeker/master/scripts/install.sh | sh
24
- ```
25
-
26
- **Windows (PowerShell):**
27
- ```powershell
28
- irm https://raw.githubusercontent.com/jghiringhelli/codeseeker/master/scripts/install.ps1 | iex
29
- ```
30
-
31
- Restart your IDE and you're done!
32
-
33
- ### 📦 Package Managers (Advanced)
34
-
35
- **Linux (Snap) - All Distributions:**
36
- ```bash
37
- sudo snap install codeseeker
38
- codeseeker install --vscode # or --cursor, --windsurf
39
- ```
40
- > ⚠️ **Snap limitation:** Due to strict confinement, the snap can only access projects in your home directory (`~/`). For projects outside `~/`, use npm or Homebrew instead.
41
-
42
- **macOS/Linux (Homebrew):**
43
- ```bash
44
- brew install jghiringhelli/codeseeker/codeseeker
45
- codeseeker install --vscode # or --cursor, --windsurf
46
- ```
47
-
48
- **Windows (Chocolatey):**
49
- ```powershell
50
- choco install codeseeker
51
- codeseeker install --vscode # or --cursor, --windsurf
52
- ```
53
-
54
- **Cross-platform (npm):**
55
- ```bash
56
- npm install -g codeseeker
57
- codeseeker install --vscode # or --cursor, --windsurf
58
- ```
59
-
60
- ### 🚀 No Install Required (npx)
61
-
62
- Run without installing:
63
- ```bash
64
- npx codeseeker init
65
- npx codeseeker -c "how does authentication work?"
66
- ```
67
-
68
- ### 🔌 Claude Code Plugin
69
-
70
- If you use Claude Code CLI, you can install as a plugin:
71
-
72
- ```bash
73
- /plugin install codeseeker@github:jghiringhelli/codeseeker#plugin
74
- ```
75
-
76
- This gives you auto-sync hooks and slash commands (`/codeseeker:init`, `/codeseeker:reindex`).
77
-
78
- ### ☁️ Devcontainer / GitHub Codespaces
79
-
80
- CodeSeeker auto-installs in devcontainers! Just add `.devcontainer/devcontainer.json`:
81
-
82
- ```json
83
- {
84
- "name": "My Project",
85
- "image": "mcr.microsoft.com/devcontainers/javascript-node:18",
86
- "postCreateCommand": "npm install -g codeseeker && codeseeker install --vscode"
87
- }
88
- ```
89
-
90
- Or use our pre-configured devcontainer (already included in this repo).
91
-
92
- ### Verify Installation
93
-
94
- Ask your AI assistant: *"What CodeSeeker tools do you have?"*
95
-
96
- You should see: `search`, `search_and_read`, `show_dependencies`, `read_with_context`, `standards`, etc.
97
-
98
- ---
99
-
100
- ## The Problem
101
-
102
- Claude Code is powerful, but it navigates your codebase like a tourist with a phrasebook:
103
- - **Grep searches** find text matches, not semantic meaning
104
- - **File reads** show code in isolation, missing the bigger picture
105
- - **No memory** of your project's patterns—every session starts fresh
106
-
107
- The result? Claude asks you to explain code relationships it should already know. It writes validation logic that doesn't match your existing patterns. It misses dependencies and breaks things.
108
-
109
- ## How CodeSeeker Fixes This
110
-
111
- CodeSeeker builds a **knowledge graph** of your codebase:
112
-
113
- ```
114
- ┌─────────────┐ imports ┌─────────────┐
115
- │ auth.ts │ ───────────────▶ │ user.ts │
116
- └─────────────┘ └─────────────┘
117
- │ │
118
- calls │ extends
119
- ▼ ▼
120
- ┌─────────────┐ implements ┌─────────────┐
121
- session.ts │ ◀─────────────── BaseUser.ts │
122
- └─────────────┘ └─────────────┘
123
- ```
124
-
125
- When you ask "add password reset to authentication", Claude doesn't just find files containing "auth"—it traverses the graph to find:
126
- - What `auth.ts` imports and exports
127
- - Which services call authentication functions
128
- - What patterns exist in related code
129
- - How your project handles similar flows
130
-
131
- This is **Graph RAG** (Retrieval-Augmented Generation), not just vector search.
132
-
133
- ## Advanced Installation Options
134
-
135
- <details>
136
- <summary><b>📋 Manual MCP Configuration</b> (if auto-install doesn't work)</summary>
137
-
138
- ### VS Code (Claude Code & GitHub Copilot)
139
-
140
- Add to `.vscode/mcp.json` in your project:
141
-
142
- ```json
143
- {
144
- "mcpServers": {
145
- "codeseeker": {
146
- "command": "npx",
147
- "args": ["-y", "codeseeker", "serve", "--mcp"],
148
- "env": {
149
- "CODESEEKER_STORAGE_MODE": "embedded"
150
- }
151
- }
152
- }
153
- }
154
- ```
155
-
156
- ### Cursor
157
-
158
- Add to `.cursor/mcp.json` in your project:
159
-
160
- ```json
161
- {
162
- "mcpServers": {
163
- "codeseeker": {
164
- "command": "npx",
165
- "args": ["-y", "codeseeker", "serve", "--mcp"],
166
- "env": {
167
- "CODESEEKER_STORAGE_MODE": "embedded"
168
- }
169
- }
170
- }
171
- }
172
- ```
173
-
174
- ### Claude Desktop
175
-
176
- Add to your `claude_desktop_config.json`:
177
-
178
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
179
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
180
-
181
- ```json
182
- {
183
- "mcpServers": {
184
- "codeseeker": {
185
- "command": "npx",
186
- "args": ["-y", "codeseeker", "serve", "--mcp"],
187
- "env": {
188
- "CODESEEKER_STORAGE_MODE": "embedded"
189
- }
190
- }
191
- }
192
- }
193
- ```
194
-
195
- ### Global vs Project-Level Configuration
196
-
197
- ```bash
198
- # Apply to all projects (user-level)
199
- codeseeker install --vscode --global
200
-
201
- # Apply to current project only
202
- codeseeker install --vscode
203
- ```
204
-
205
- </details>
206
-
207
- <details>
208
- <summary><b>🖥️ CLI Standalone Usage</b> (without AI assistant)</summary>
209
-
210
- ```bash
211
- npm install -g codeseeker
212
- cd your-project
213
- codeseeker init
214
- codeseeker -c "how does authentication work in this project?"
215
- ```
216
-
217
- </details>
218
-
219
- ## What You Get
220
-
221
- Once configured, Claude has access to these MCP tools (used automatically):
222
-
223
- | Tool | What It Does |
224
- |------|--------------|
225
- | `search_code` | Hybrid search: vector + text + path with RRF fusion |
226
- | `find_and_read` | Search + Read in one step - returns file content directly |
227
- | `get_code_relationships` | Traverse the knowledge graph (imports, calls, extends) |
228
- | `get_file_context` | Read a file with its related code automatically included |
229
- | `get_coding_standards` | Your project's detected patterns (validation, error handling) |
230
- | `index_project` | Manually trigger indexing (rarely needed) |
231
- | `notify_file_changes` | Update index for specific files |
232
- | `manage_index` | Dynamically exclude/include files from the index |
233
-
234
- **You don't invoke these manually**—Claude uses them automatically when searching code or analyzing relationships.
235
-
236
- ## How Indexing Works
237
-
238
- **You don't need to manually index.** When Claude uses any CodeSeeker tool, the tool automatically checks if the project is indexed. If not, it indexes on first use.
239
-
240
- ```
241
- User: "Find the authentication logic"
242
-
243
-
244
- ┌─────────────────────────────────────┐
245
- │ Claude calls search_code() │
246
- │ │ │
247
- │ ▼ │
248
- │ Project indexed? ──No──► Index now │
249
- │ │ (auto) │
250
- │ Yes │ │
251
- │ │◀───────────────────┘ │
252
- │ ▼ │
253
- │ Return search results │
254
- └─────────────────────────────────────┘
255
- ```
256
-
257
- First search on a new project takes 30 seconds to several minutes (depending on size). Subsequent searches are instant.
258
-
259
- ## What Makes It Different
260
-
261
- | Approach | How It Works | Strengths | Limitations |
262
- |----------|--------------|-----------|-------------|
263
- | **Grep/ripgrep** | Text pattern matching | Fast, universal | No semantic understanding |
264
- | **Vector search only** | Embedding similarity | Finds similar code | Misses structural relationships |
265
- | **LSP-based tools** | Language server protocol | Precise symbol definitions | No semantic search, no cross-file reasoning |
266
- | **CodeSeeker** | Knowledge graph + hybrid search | Semantic + structure + patterns | Requires initial indexing (30s-5min) |
267
-
268
- ### CodeSeeker's Unique Capabilities
269
-
270
- **What LSP tools can't do:**
271
- - *"Find code that handles errors like this"* → Semantic search finds similar patterns
272
- - *"What validation approach does this project use?"* → Auto-detected coding standards
273
- - *"Show me everything related to authentication"* → Graph traversal across indirect dependencies
274
-
275
- **What vector-only search misses:**
276
- - Direct import/export relationships
277
- - Class inheritance chains
278
- - Function call graphs
279
- - Which files actually depend on which
280
-
281
- CodeSeeker combines all three: **graph traversal** for structure, **vector search** for meaning, **text search** for precision—fused with Reciprocal Rank Fusion (RRF) for optimal results.
282
-
283
- ## Auto-Detected Coding Standards
284
-
285
- CodeSeeker analyzes your codebase and extracts patterns:
286
-
287
- ```json
288
- {
289
- "validation": {
290
- "email": {
291
- "preferred": "z.string().email()",
292
- "usage_count": 12,
293
- "files": ["src/auth.ts", "src/user.ts"]
294
- }
295
- },
296
- "react-patterns": {
297
- "state": {
298
- "preferred": "useState<T>()",
299
- "usage_count": 45
300
- }
301
- }
302
- }
303
- ```
304
-
305
- Detected pattern categories:
306
- - **validation**: Zod, Yup, Joi, validator.js, custom regex
307
- - **error-handling**: API error responses, try-catch patterns, custom Error classes
308
- - **logging**: Console, Winston, Bunyan, structured logging
309
- - **testing**: Jest/Vitest setup, assertion patterns
310
- - **react-patterns**: Hooks (useState, useEffect, useMemo, useCallback, useRef)
311
- - **state-management**: Redux Toolkit, Zustand, React Context, TanStack Query
312
- - **api-patterns**: Fetch, Axios, Express routes, Next.js API routes
313
-
314
- When Claude writes new code, it follows your existing conventions instead of inventing new ones.
315
-
316
- ## Managing Index Exclusions
317
-
318
- If Claude notices files that shouldn't be indexed (like Unity's Library folder, build outputs, or generated files), it can dynamically exclude them:
319
-
320
- ```typescript
321
- // Exclude Unity Library folder and generated files
322
- manage_index({
323
- action: "exclude",
324
- project: "my-unity-game",
325
- paths: ["Library/**", "Temp/**", "*.generated.cs"],
326
- reason: "Unity build artifacts"
327
- })
328
- ```
329
-
330
- Exclusions are persisted in `.codeseeker/exclusions.json` and automatically respected during reindexing.
331
-
332
- ## Language Support
333
-
334
- | Language | Parser | Relationship Extraction |
335
- |----------|--------|------------------------|
336
- | TypeScript/JavaScript | Babel AST | Excellent |
337
- | Python | Tree-sitter | Excellent |
338
- | Java | Tree-sitter | Excellent |
339
- | C# | Regex | Good |
340
- | Go | Regex | Good |
341
- | Rust, C/C++, Ruby, PHP | Regex | Basic |
342
-
343
- Tree-sitter parsers install automatically when needed.
344
-
345
- ## Keeping the Index in Sync
346
-
347
- ### With Claude Code Plugin
348
-
349
- The plugin installs **hooks** that automatically update the index:
350
-
351
- | Event | What Happens |
352
- |-------|--------------|
353
- | Claude edits a file | Index updated automatically |
354
- | Claude runs `git pull/checkout/merge` | Full reindex triggered |
355
- | You run `/codeseeker:reindex` | Manual full reindex |
356
-
357
- **You don't need to do anything**—the plugin handles sync automatically.
358
-
359
- ### With MCP Server Only (Cursor, Claude Desktop)
360
-
361
- - **Claude-initiated changes**: Claude can call `notify_file_changes` tool
362
- - **Manual changes**: Not automatically detected—ask Claude to reindex periodically
363
-
364
- ### Sync Summary
365
-
366
- | Setup | Claude Edits | Git Operations | Manual Edits |
367
- |-------|--------------|----------------|--------------|
368
- | **Plugin** (Claude Code) | Auto | Auto | Manual |
369
- | **MCP** (Cursor, Desktop) | Ask Claude | Ask Claude | Ask Claude |
370
- | **CLI** | Auto | Auto | Manual |
371
-
372
- ## When CodeSeeker Helps Most
373
-
374
- **Good fit:**
375
- - Large codebases (10K+ files) where Claude struggles to find relevant code
376
- - Projects with established patterns you want Claude to follow
377
- - Complex dependency chains across multiple files
378
- - Teams wanting consistent AI-generated code
379
-
380
- **Less useful:**
381
- - Greenfield projects with little existing code
382
- - Single-file scripts
383
- - Projects where you're actively changing architecture
384
-
385
- ## Architecture
386
-
387
- ```
388
- ┌──────────────────────────────────────────────────────────┐
389
- │ Claude Code │
390
- │ │ │
391
- │ MCP Protocol │
392
- │ │ │
393
- │ ┌──────────────────────▼──────────────────────────┐ │
394
- │ │ CodeSeeker MCP Server │ │
395
- │ │ ┌─────────────┬─────────────┬────────────────┐ │ │
396
- │ │ │ Vector │ Knowledge │ Coding │ │ │
397
- │ │ │ Search │ Graph │ Standards │ │ │
398
- │ │ │ (SQLite) │ (SQLite) │ (JSON) │ │ │
399
- │ │ └─────────────┴─────────────┴────────────────┘ │ │
400
- │ └─────────────────────────────────────────────────┘ │
401
- └──────────────────────────────────────────────────────────┘
402
- ```
403
-
404
- All data stored locally in `.codeseeker/`. No external services required.
405
-
406
- For large teams (100K+ files, shared indexes), server mode supports PostgreSQL + Neo4j. See [Storage Documentation](docs/technical/storage.md).
407
-
408
- ## Troubleshooting
409
-
410
- ### "I can't find CodeSeeker in the VS Code marketplace"
411
-
412
- **CodeSeeker is NOT a VS Code extension.** It's an MCP server that works WITH AI assistants.
413
-
414
- ✅ **Correct:** Install via npm: `npm install -g codeseeker`
415
- ❌ **Wrong:** Looking for it in VS Code Extensions marketplace
416
-
417
- ### MCP server not connecting
418
-
419
- 1. Verify npm and npx work: `npx -y codeseeker --version`
420
- 2. Check MCP config file syntax (valid JSON, no trailing commas)
421
- 3. Restart your editor/Claude application completely
422
- 4. Check that Node.js is installed: `node --version` (need v18+)
423
-
424
- ### Indexing seems slow
425
-
426
- First-time indexing of large projects (50K+ files) can take 5+ minutes. Subsequent uses are instant.
427
-
428
- ### Tools not appearing in Claude
429
-
430
- 1. Ask Claude: *"What CodeSeeker tools do you have?"*
431
- 2. If no tools appear, check MCP config file exists and has correct syntax
432
- 3. Restart your IDE completely (not just reload window)
433
- 4. Check Claude/Copilot MCP connection status in IDE
434
-
435
- ### Still stuck?
436
-
437
- Open an issue: [GitHub Issues](https://github.com/jghiringhelli/codeseeker/issues)
438
-
439
- ## Documentation
440
-
441
- - [Integration Guide](docs/INTEGRATION.md) - How all components connect
442
- - [Architecture](docs/technical/architecture.md) - Technical deep dive
443
- - [CLI Commands](docs/install/cli_commands_manual.md) - Full command reference
444
-
445
- ## Supported Platforms
446
-
447
- | Platform | MCP Support | Install Command |
448
- |----------|-------------|-----------------|
449
- | **Claude Code** (VS Code) | Yes | `codeseeker install --vscode` or plugin |
450
- | **GitHub Copilot** (VS Code) | Yes (VS Code 1.99+) | `codeseeker install --vscode` |
451
- | **Cursor** | Yes | `codeseeker install --cursor` |
452
- | **Claude Desktop** | Yes | Manual config |
453
- | **Windsurf** | Yes | `codeseeker install --windsurf` |
454
- | **Visual Studio** | Yes | `codeseeker install --vs` |
455
-
456
- > **Note:** Claude Code and GitHub Copilot both run in VS Code and share the same MCP configuration (`.vscode/mcp.json`). The flags `--vscode`, `--claude-code`, and `--copilot` are interchangeable.
457
-
458
- ## Support
459
-
460
- If CodeSeeker is useful to you, consider [sponsoring the project](https://github.com/sponsors/jghiringhelli).
461
-
462
- ## License
463
-
464
- MIT License. See [LICENSE](LICENSE).
465
-
466
- ---
467
-
468
- *CodeSeeker gives Claude the code understanding that grep and embeddings alone can't provide.*
1
+ # MCP Registry
2
+
3
+ The MCP registry provides MCP clients with a list of MCP servers, like an app store for MCP servers.
4
+
5
+ [**📤 Publish my MCP server**](docs/modelcontextprotocol-io/quickstart.mdx) | [**⚡️ Live API docs**](https://registry.modelcontextprotocol.io/docs) | [**👀 Ecosystem vision**](docs/design/ecosystem-vision.md) | 📖 **[Full documentation](./docs)**
6
+
7
+ ## Development Status
8
+
9
+ **2025-10-24 update**: The Registry API has entered an **API freeze (v0.1)** 🎉. For the next month or more, the API will remain stable with no breaking changes, allowing integrators to confidently implement support. This freeze applies to v0.1 while development continues on v0. We'll use this period to validate the API in real-world integrations and gather feedback to shape v1 for general availability. Thank you to everyone for your contributions and patience—your involvement has been key to getting us here!
10
+
11
+ **2025-09-08 update**: The registry has launched in preview 🎉 ([announcement blog post](https://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)). While the system is now more stable, this is still a preview release and breaking changes or data resets may occur. A general availability (GA) release will follow later. We'd love your feedback in [GitHub discussions](https://github.com/modelcontextprotocol/registry/discussions/new?category=ideas) or in the [#registry-dev Discord](https://discord.com/channels/1358869848138059966/1369487942862504016) ([joining details here](https://modelcontextprotocol.io/community/communication)).
12
+
13
+ Current key maintainers:
14
+ - **Adam Jones** (Anthropic) [@domdomegg](https://github.com/domdomegg)
15
+ - **Tadas Antanavicius** (PulseMCP) [@tadasant](https://github.com/tadasant)
16
+ - **Toby Padilla** (GitHub) [@toby](https://github.com/toby)
17
+ - **Radoslav (Rado) Dimitrov** (Stacklok) [@rdimitrov](https://github.com/rdimitrov)
18
+
19
+ ## Contributing
20
+
21
+ We use multiple channels for collaboration - see [modelcontextprotocol.io/community/communication](https://modelcontextprotocol.io/community/communication).
22
+
23
+ Often (but not always) ideas flow through this pipeline:
24
+
25
+ - **[Discord](https://modelcontextprotocol.io/community/communication)** - Real-time community discussions
26
+ - **[Discussions](https://github.com/modelcontextprotocol/registry/discussions)** - Propose and discuss product/technical requirements
27
+ - **[Issues](https://github.com/modelcontextprotocol/registry/issues)** - Track well-scoped technical work
28
+ - **[Pull Requests](https://github.com/modelcontextprotocol/registry/pulls)** - Contribute work towards issues
29
+
30
+ ### Quick start:
31
+
32
+ #### Pre-requisites
33
+
34
+ - **Docker**
35
+ - **Go 1.24.x**
36
+ - **ko** - Container image builder for Go ([installation instructions](https://ko.build/install/))
37
+ - **golangci-lint v2.4.0**
38
+
39
+ #### Running the server
40
+
41
+ ```bash
42
+ # Start full development environment
43
+ make dev-compose
44
+ ```
45
+
46
+ This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
47
+
48
+ **Note:** The registry uses [ko](https://ko.build) to build container images. The `make dev-compose` command automatically builds the registry image with ko and loads it into your local Docker daemon before starting the services.
49
+
50
+ By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`.
51
+
52
+ The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference.
53
+
54
+ <details>
55
+ <summary>Alternative: Running a pre-built Docker image</summary>
56
+
57
+ Pre-built Docker images are automatically published to GitHub Container Registry:
58
+
59
+ ```bash
60
+ # Run latest stable release
61
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:latest
62
+
63
+ # Run latest from main branch (continuous deployment)
64
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main
65
+
66
+ # Run specific release version
67
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:v1.0.0
68
+
69
+ # Run development build from main branch
70
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250906-abc123d
71
+ ```
72
+
73
+ **Available tags:**
74
+ - **Releases**: `latest`, `v1.0.0`, `v1.1.0`, etc.
75
+ - **Continuous**: `main` (latest main branch build)
76
+ - **Development**: `main-<date>-<sha>` (specific commit builds)
77
+
78
+ </details>
79
+
80
+ #### Publishing a server
81
+
82
+ To publish a server, we've built a simple CLI. You can use it with:
83
+
84
+ ```bash
85
+ # Build the latest CLI
86
+ make publisher
87
+
88
+ # Use it!
89
+ ./bin/mcp-publisher --help
90
+ ```
91
+
92
+ See [the publisher guide](./docs/modelcontextprotocol-io/quickstart.mdx) for more details.
93
+
94
+ #### Other commands
95
+
96
+ ```bash
97
+ # Run lint, unit tests and integration tests
98
+ make check
99
+ ```
100
+
101
+ There are also a few more helpful commands for development. Run `make help` to learn more, or look in [Makefile](./Makefile).
102
+
103
+ <!--
104
+ For Claude and other AI tools: Always prefer make targets over custom commands where possible.
105
+ -->
106
+
107
+ ## Architecture
108
+
109
+ ### Project Structure
110
+
111
+ ```
112
+ ├── cmd/ # Application entry points
113
+ │ └── publisher/ # Server publishing tool
114
+ ├── data/ # Seed data
115
+ ├── deploy/ # Deployment configuration (Pulumi)
116
+ ├── docs/ # Documentation
117
+ ├── internal/ # Private application code
118
+ ├── api/ # HTTP handlers and routing
119
+ │ ├── auth/ # Authentication (GitHub OAuth, JWT, namespace blocking)
120
+ ├── config/ # Configuration management
121
+ ├── database/ # Data persistence (PostgreSQL)
122
+ │ ├── service/ # Business logic
123
+ │ ├── telemetry/ # Metrics and monitoring
124
+ │ └── validators/ # Input validation
125
+ ├── pkg/ # Public packages
126
+ │ ├── api/ # API types and structures
127
+ │ │ └── v0/ # Version 0 API types
128
+ │ └── model/ # Data models for server.json
129
+ ├── scripts/ # Development and testing scripts
130
+ ├── tests/ # Integration tests
131
+ └── tools/ # CLI tools and utilities
132
+ └── validate-*.sh # Schema validation tools
133
+ ```
134
+
135
+ ### Authentication
136
+
137
+ Publishing supports multiple authentication methods:
138
+ - **GitHub OAuth** - For publishing by logging into GitHub
139
+ - **GitHub OIDC** - For publishing from GitHub Actions
140
+ - **DNS verification** - For proving ownership of a domain and its subdomains
141
+ - **HTTP verification** - For proving ownership of a domain
142
+
143
+ The registry validates namespace ownership when publishing. E.g. to publish...:
144
+ - `io.github.domdomegg/my-cool-mcp` you must login to GitHub as `domdomegg`, or be in a GitHub Action on domdomegg's repos
145
+ - `me.adamjones/my-cool-mcp` you must prove ownership of `adamjones.me` via DNS or HTTP challenge
146
+
147
+ ## Community Projects
148
+
149
+ Check out [community projects](docs/community-projects.md) to explore notable registry-related work created by the community.
150
+
151
+ ## More documentation
152
+
153
+ See the [documentation](./docs) for more details if your question has not been answered here!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeseeker",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Graph-powered code intelligence for Claude Code. Semantic search + knowledge graph for better AI code understanding.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -163,11 +163,14 @@ const USER_LEVEL_AGENT_FILES = [
163
163
  */
164
164
  function isNonInteractive() {
165
165
  return !process.stdin.isTTY ||
166
+ !process.stdout.isTTY ||
166
167
  process.env.CI === 'true' ||
167
168
  process.env.CONTINUOUS_INTEGRATION === 'true' ||
168
169
  process.env.npm_config_yes === 'true' ||
169
170
  process.env.CODESEEKER_SKIP_POSTINSTALL === 'true' ||
170
- process.env.ChocolateyInstall !== undefined; // Skip in Chocolatey environments
171
+ process.env.ChocolateyInstall !== undefined || // Chocolatey package manager
172
+ process.env.CHOCOLATEY_VERSION !== undefined || // Another Chocolatey indicator
173
+ process.env.ChocolateyToolsLocation !== undefined; // Yet another Chocolatey indicator
171
174
  }
172
175
 
173
176
  /**