@harivatsa/sirius-mcp-proxy 0.1.1 → 0.1.2

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 CHANGED
@@ -14,6 +14,7 @@ Use `index_repo` from Claude/MCP to register a local repo path with the always-o
14
14
  indexing. Use `list_local_repos` to inspect repos known to the local agent. After that,
15
15
  `semantic_code_search`, `hybrid_search`, `symbol_search`, `get_call_chain`, `impact_analysis`,
16
16
  `ripgrep_search`, `sync_repo`, and `sync_status` operate through the repo-agent and index server.
17
+ Pass `reset=true` to `index_repo` or `sync_repo` when you need to purge and rebuild a polluted index.
17
18
 
18
19
  Snippet enrichment is bounded by `SIRIUS_MCP_ENRICH_CONCURRENCY`, which defaults to `16` and caps at `50`, matching the MCP tool `top_k` limit. Normal `top_k <= 16` searches fetch snippets in one wave; larger windows avoid unbounded local file-range fan-out.
19
20
 
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { impactAnalysisWithOptionalStaleSync } from "./impact.js";
8
8
  import { hasStaleSnippet, searchWithOptionalStaleSync } from "./search.js";
9
9
  import { localFilePathSchema, localRepoPathSchema, publicRepoIdSchema } from "./validation.js";
10
10
  // General rule: package-installed CLIs need a no-session self-check path for install validation.
11
- const MCP_PROXY_VERSION = "0.1.1";
11
+ const MCP_PROXY_VERSION = "0.1.2";
12
12
  // General rule: expanded call graphs can include many nodes, while source snippets dominate MCP payload size.
13
13
  const DEFAULT_CALL_CHAIN_CODE_NODE_LIMIT = 50;
14
14
  // General rule: graph snippet enrichment should stay bounded by the largest accepted call-chain graph window.
@@ -34,9 +34,10 @@ server.registerTool("index_repo", {
34
34
  remote: z.string().min(1).default("origin"),
35
35
  shared_ref: z.string().optional(),
36
36
  sync: z.boolean().default(true),
37
- full: z.boolean().default(false)
37
+ full: z.boolean().default(false),
38
+ reset: z.boolean().default(false)
38
39
  }
39
- }, async ({ repo_path, repo_id, share_mode, remote, shared_ref, sync, full }) => {
40
+ }, async ({ repo_path, repo_id, share_mode, remote, shared_ref, sync, full, reset }) => {
40
41
  const response = await agentPost("/repos/register", {
41
42
  repo_path,
42
43
  repo_id,
@@ -44,7 +45,8 @@ server.registerTool("index_repo", {
44
45
  remote,
45
46
  shared_ref,
46
47
  sync,
47
- full
48
+ full,
49
+ reset
48
50
  });
49
51
  return asJson(response);
50
52
  });
@@ -233,10 +235,11 @@ server.registerTool("sync_repo", {
233
235
  description: "Trigger a manual incremental or full sync through the local repo agent.",
234
236
  inputSchema: {
235
237
  repo_id: publicRepoIdSchema,
236
- full: z.boolean().default(false)
238
+ full: z.boolean().default(false),
239
+ reset: z.boolean().default(false)
237
240
  }
238
- }, async ({ repo_id, full }) => {
239
- const response = await agentPost(`/repos/${encodeURIComponent(repo_id)}/sync`, { full });
241
+ }, async ({ repo_id, full, reset }) => {
242
+ const response = await agentPost(`/repos/${encodeURIComponent(repo_id)}/sync`, { full, reset });
240
243
  return asJson(response);
241
244
  });
242
245
  server.registerTool("sync_status", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harivatsa/sirius-mcp-proxy",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "MCP proxy that joins Sirius index metadata with local source snippets.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",