codesift-mcp 0.2.5 → 0.2.7

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 (45) hide show
  1. package/README.md +8 -8
  2. package/dist/cli/commands.d.ts.map +1 -1
  3. package/dist/cli/commands.js +5 -1
  4. package/dist/cli/commands.js.map +1 -1
  5. package/dist/cli/help.d.ts +1 -1
  6. package/dist/cli/help.d.ts.map +1 -1
  7. package/dist/cli/help.js +14 -0
  8. package/dist/cli/help.js.map +1 -1
  9. package/dist/cli/hooks.d.ts +1 -0
  10. package/dist/cli/hooks.d.ts.map +1 -1
  11. package/dist/cli/hooks.js +170 -61
  12. package/dist/cli/hooks.js.map +1 -1
  13. package/dist/cli/platform.d.ts +12 -0
  14. package/dist/cli/platform.d.ts.map +1 -0
  15. package/dist/cli/platform.js +36 -0
  16. package/dist/cli/platform.js.map +1 -0
  17. package/dist/cli/setup.d.ts +6 -0
  18. package/dist/cli/setup.d.ts.map +1 -1
  19. package/dist/cli/setup.js +161 -121
  20. package/dist/cli/setup.js.map +1 -1
  21. package/dist/cli/shell-templates.d.ts +4 -0
  22. package/dist/cli/shell-templates.d.ts.map +1 -0
  23. package/dist/cli/shell-templates.js +86 -0
  24. package/dist/cli/shell-templates.js.map +1 -0
  25. package/dist/instructions.d.ts +1 -1
  26. package/dist/instructions.d.ts.map +1 -1
  27. package/dist/instructions.js +4 -4
  28. package/dist/register-tools.d.ts.map +1 -1
  29. package/dist/register-tools.js +68 -42
  30. package/dist/register-tools.js.map +1 -1
  31. package/dist/server-helpers.d.ts.map +1 -1
  32. package/dist/server-helpers.js +13 -1
  33. package/dist/server-helpers.js.map +1 -1
  34. package/dist/server.d.ts.map +1 -1
  35. package/dist/server.js +17 -0
  36. package/dist/server.js.map +1 -1
  37. package/dist/tools/project-tools.d.ts +107 -0
  38. package/dist/tools/project-tools.d.ts.map +1 -0
  39. package/dist/tools/project-tools.js +535 -0
  40. package/dist/tools/project-tools.js.map +1 -0
  41. package/package.json +2 -2
  42. package/rules/codesift.md +24 -13
  43. package/rules/codesift.mdc +10 -12
  44. package/rules/codex.md +10 -12
  45. package/rules/gemini.md +10 -12
@@ -9,23 +9,21 @@ alwaysApply: true
9
9
 
10
10
  ## Setup
11
11
 
12
- Run once per session:
13
-
14
- 1. `list_repos()` — get the repo identifier (e.g. `local/codesift-mcp`). **Never call again** — cache the result.
15
- 2. If the repo is missing: `index_folder(path=<root>)` once to index it.
16
- 3. Use `"local/<folder-name>"` as the `repo` parameter for all tool calls.
12
+ The `repo` parameter auto-resolves from the current working directory — no need to call `list_repos`.
13
+ If the repo is not yet indexed, run `index_folder(path=<root>)` once.
14
+ For multi-repo sessions, call `list_repos()` to discover available repos.
17
15
 
18
16
  ## Tool Discovery
19
17
 
20
- **63 MCP tools total** (13 core visible + 50 deferred/hidden).
18
+ **66 MCP tools total** (14 core + 52 discoverable).
21
19
 
22
- Only ~13 core tools appear in ListTools. Hidden tools are discovered on demand:
20
+ Only 14 core tools appear in ListTools. Hidden tools are discovered on demand:
23
21
 
24
- - `discover_tools(query="dead code")` — keyword search across all 63 tools
22
+ - `discover_tools(query="dead code")` — keyword search across all 66 tools
25
23
  - `describe_tools(names=["find_dead_code"])` — get full parameter schema
26
24
  - `describe_tools(names=["find_dead_code"], reveal=true)` — also reveal in ListTools
27
25
 
28
- Core tools always visible: `search_text`, `search_symbols`, `get_file_outline`, `get_file_tree`, `get_symbol`, `get_symbols`, `find_references`, `find_and_show`, `codebase_retrieval`, `semantic_search`, `list_repos`, `index_file`, `discover_tools`, `describe_tools`.
26
+ Core tools always visible: `search_text`, `codebase_retrieval`, `get_file_outline`, `search_symbols`, `list_repos`, `get_file_tree`, `index_file`, `get_symbol`, `index_conversations`, `search_patterns`, `index_folder`, `discover_tools`, `get_session_snapshot`, `describe_tools`.
29
27
 
30
28
  ## Tool Mapping
31
29
 
@@ -136,7 +134,7 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
136
134
  |------|---------|--------|
137
135
  | `H1(n)` | n matches returned | Add `group_by_file=true` |
138
136
  | `H2(n,tool)` | n consecutive identical calls | Batch into one `tool` call |
139
- | `H3(n)` | `list_repos` called n times | Reuse cached value |
137
+ | `H3(n)` | `list_repos` called n times | Repo auto-resolves from CWD, no need to call |
140
138
  | `H4` | `include_source` without `file_pattern` | Add `file_pattern` |
141
139
  | `H5(path)` | Duplicate `get_file_tree` | Use cached result |
142
140
  | `H6(n)` | n results without `detail_level` | Add `detail_level='compact'` |
@@ -158,8 +156,8 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
158
156
 
159
157
  ## NEVER
160
158
 
161
- - Call `index_folder` if repo already in `list_repos` — file watcher auto-updates
162
- - Call `list_repos` more than once per session
159
+ - Call `index_folder` if repo is already indexed — file watcher auto-updates
160
+ - Call `list_repos` in single-repo sessions repo auto-resolves from CWD
163
161
  - Use manual Edit on multiple files for rename — use `rename_symbol`
164
162
  - Read entire file just to get a return type — use `get_type_info`
165
163
  - Index worktrees — use the main repo index
package/rules/codex.md CHANGED
@@ -4,23 +4,21 @@
4
4
 
5
5
  ## Setup
6
6
 
7
- Run once per session:
8
-
9
- 1. `list_repos()` — get the repo identifier (e.g. `local/codesift-mcp`). **Never call again** — cache the result.
10
- 2. If the repo is missing: `index_folder(path=<root>)` once to index it.
11
- 3. Use `"local/<folder-name>"` as the `repo` parameter for all tool calls.
7
+ The `repo` parameter auto-resolves from the current working directory — no need to call `list_repos`.
8
+ If the repo is not yet indexed, run `index_folder(path=<root>)` once.
9
+ For multi-repo sessions, call `list_repos()` to discover available repos.
12
10
 
13
11
  ## Tool Discovery
14
12
 
15
- **63 MCP tools total** (13 core visible + 50 deferred/hidden).
13
+ **66 MCP tools total** (14 core + 52 discoverable).
16
14
 
17
- Only ~13 core tools appear in ListTools. Hidden tools are discovered on demand:
15
+ Only 14 core tools appear in ListTools. Hidden tools are discovered on demand:
18
16
 
19
- - `discover_tools(query="dead code")` — keyword search across all 63 tools
17
+ - `discover_tools(query="dead code")` — keyword search across all 66 tools
20
18
  - `describe_tools(names=["find_dead_code"])` — get full parameter schema
21
19
  - `describe_tools(names=["find_dead_code"], reveal=true)` — also reveal in ListTools
22
20
 
23
- Core tools always visible: `search_text`, `search_symbols`, `get_file_outline`, `get_file_tree`, `get_symbol`, `get_symbols`, `find_references`, `find_and_show`, `codebase_retrieval`, `semantic_search`, `list_repos`, `index_file`, `discover_tools`, `describe_tools`.
21
+ Core tools always visible: `search_text`, `codebase_retrieval`, `get_file_outline`, `search_symbols`, `list_repos`, `get_file_tree`, `index_file`, `get_symbol`, `index_conversations`, `search_patterns`, `index_folder`, `discover_tools`, `get_session_snapshot`, `describe_tools`.
24
22
 
25
23
  ## Tool Mapping
26
24
 
@@ -131,7 +129,7 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
131
129
  |------|---------|--------|
132
130
  | `H1(n)` | n matches returned | Add `group_by_file=true` |
133
131
  | `H2(n,tool)` | n consecutive identical calls | Batch into one `tool` call |
134
- | `H3(n)` | `list_repos` called n times | Reuse cached value |
132
+ | `H3(n)` | `list_repos` called n times | Repo auto-resolves from CWD, no need to call |
135
133
  | `H4` | `include_source` without `file_pattern` | Add `file_pattern` |
136
134
  | `H5(path)` | Duplicate `get_file_tree` | Use cached result |
137
135
  | `H6(n)` | n results without `detail_level` | Add `detail_level='compact'` |
@@ -153,8 +151,8 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
153
151
 
154
152
  ## NEVER
155
153
 
156
- - Call `index_folder` if repo already in `list_repos` — file watcher auto-updates
157
- - Call `list_repos` more than once per session
154
+ - Call `index_folder` if repo is already indexed — file watcher auto-updates
155
+ - Call `list_repos` in single-repo sessions repo auto-resolves from CWD
158
156
  - Use manual Edit on multiple files for rename — use `rename_symbol`
159
157
  - Read entire file just to get a return type — use `get_type_info`
160
158
  - Index worktrees — use the main repo index
package/rules/gemini.md CHANGED
@@ -4,23 +4,21 @@
4
4
 
5
5
  ## Setup
6
6
 
7
- Run once per session:
8
-
9
- 1. `list_repos()` — get the repo identifier (e.g. `local/codesift-mcp`). **Never call again** — cache the result.
10
- 2. If the repo is missing: `index_folder(path=<root>)` once to index it.
11
- 3. Use `"local/<folder-name>"` as the `repo` parameter for all tool calls.
7
+ The `repo` parameter auto-resolves from the current working directory — no need to call `list_repos`.
8
+ If the repo is not yet indexed, run `index_folder(path=<root>)` once.
9
+ For multi-repo sessions, call `list_repos()` to discover available repos.
12
10
 
13
11
  ## Tool Discovery
14
12
 
15
- **63 MCP tools total** (13 core visible + 50 deferred/hidden).
13
+ **66 MCP tools total** (14 core + 52 discoverable).
16
14
 
17
- Only ~13 core tools appear in ListTools. Hidden tools are discovered on demand:
15
+ Only 14 core tools appear in ListTools. Hidden tools are discovered on demand:
18
16
 
19
- - `discover_tools(query="dead code")` — keyword search across all 63 tools
17
+ - `discover_tools(query="dead code")` — keyword search across all 66 tools
20
18
  - `describe_tools(names=["find_dead_code"])` — get full parameter schema
21
19
  - `describe_tools(names=["find_dead_code"], reveal=true)` — also reveal in ListTools
22
20
 
23
- Core tools always visible: `search_text`, `search_symbols`, `get_file_outline`, `get_file_tree`, `get_symbol`, `get_symbols`, `find_references`, `find_and_show`, `codebase_retrieval`, `semantic_search`, `list_repos`, `index_file`, `discover_tools`, `describe_tools`.
21
+ Core tools always visible: `search_text`, `codebase_retrieval`, `get_file_outline`, `search_symbols`, `list_repos`, `get_file_tree`, `index_file`, `get_symbol`, `index_conversations`, `search_patterns`, `index_folder`, `discover_tools`, `get_session_snapshot`, `describe_tools`.
24
22
 
25
23
  ## Tool Mapping
26
24
 
@@ -131,7 +129,7 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
131
129
  |------|---------|--------|
132
130
  | `H1(n)` | n matches returned | Add `group_by_file=true` |
133
131
  | `H2(n,tool)` | n consecutive identical calls | Batch into one `tool` call |
134
- | `H3(n)` | `list_repos` called n times | Reuse cached value |
132
+ | `H3(n)` | `list_repos` called n times | Repo auto-resolves from CWD, no need to call |
135
133
  | `H4` | `include_source` without `file_pattern` | Add `file_pattern` |
136
134
  | `H5(path)` | Duplicate `get_file_tree` | Use cached result |
137
135
  | `H6(n)` | n results without `detail_level` | Add `detail_level='compact'` |
@@ -153,8 +151,8 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
153
151
 
154
152
  ## NEVER
155
153
 
156
- - Call `index_folder` if repo already in `list_repos` — file watcher auto-updates
157
- - Call `list_repos` more than once per session
154
+ - Call `index_folder` if repo is already indexed — file watcher auto-updates
155
+ - Call `list_repos` in single-repo sessions repo auto-resolves from CWD
158
156
  - Use manual Edit on multiple files for rename — use `rename_symbol`
159
157
  - Read entire file just to get a return type — use `get_type_info`
160
158
  - Index worktrees — use the main repo index