@chamba/mcp 0.3.2 → 0.4.0

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/dist/main.js +9 -3
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -401,10 +401,11 @@ function registerLoadContext(server, logger, services) {
401
401
  description: DESCRIPTION8,
402
402
  inputSchema: {
403
403
  task: z7.string().describe("The task you are about to work on."),
404
- includeObsidian: z7.boolean().optional().describe("Search the Obsidian vault for relevant notes (default true).")
404
+ includeObsidian: z7.boolean().optional().describe("Search the Obsidian vault for relevant notes (default true)."),
405
+ includeRules: z7.boolean().optional().describe("Include each repo's coding rules across editors (default true).")
405
406
  }
406
407
  },
407
- async ({ task, includeObsidian }) => {
408
+ async ({ task, includeObsidian, includeRules }) => {
408
409
  const workspace = await new WorkspaceScanner2(services.fs).scan(services.cwd);
409
410
  let vaultPath;
410
411
  if (includeObsidian !== false) {
@@ -414,7 +415,12 @@ function registerLoadContext(server, logger, services) {
414
415
  });
415
416
  if (detection.found) vaultPath = detection.path;
416
417
  }
417
- const built = await new ContextBuilder(services.fs).build({ workspace, task, vaultPath });
418
+ const built = await new ContextBuilder(services.fs).build({
419
+ workspace,
420
+ task,
421
+ vaultPath,
422
+ includeRules
423
+ });
418
424
  logger.info(
419
425
  { tool: TOOL_NAME8, vault: vaultPath ?? null, notes: built.relevantNotes.length },
420
426
  "context built"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chamba/mcp",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "chamba MCP server — orchestration, workspace, worktree and Obsidian tools for any MCP-capable editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,8 +36,8 @@
36
36
  "@modelcontextprotocol/sdk": "^1.12.0",
37
37
  "pino": "^9.0.0",
38
38
  "zod": "^3.23.0",
39
- "@chamba/adapters": "0.3.2",
40
- "@chamba/core": "0.3.2"
39
+ "@chamba/adapters": "0.4.0",
40
+ "@chamba/core": "0.4.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^22.0.0",