@vheins/local-memory-mcp 0.10.2 → 0.10.3

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.
@@ -81,8 +81,8 @@ function loadServerInstructions() {
81
81
  // src/mcp/capabilities.ts
82
82
  var __dirname2 = path2.dirname(fileURLToPath2(import.meta.url));
83
83
  var pkgVersion = "0.1.0";
84
- if ("0.10.2") {
85
- pkgVersion = "0.10.2";
84
+ if ("0.10.3") {
85
+ pkgVersion = "0.10.3";
86
86
  } else {
87
87
  let searchDir = __dirname2;
88
88
  for (let i = 0; i < 5; i++) {
@@ -10,7 +10,7 @@ import {
10
10
  createFileSink,
11
11
  listResources,
12
12
  logger
13
- } from "../chunk-FFPZ7JBM.js";
13
+ } from "../chunk-HXADESDJ.js";
14
14
 
15
15
  // src/dashboard/server.ts
16
16
  import express from "express";
@@ -57,7 +57,7 @@ import {
57
57
  toContextSlug,
58
58
  updateSessionFromInitialize,
59
59
  updateSessionRoots
60
- } from "../chunk-FFPZ7JBM.js";
60
+ } from "../chunk-HXADESDJ.js";
61
61
 
62
62
  // src/mcp/server.ts
63
63
  import readline from "readline";
@@ -3,17 +3,21 @@ name: architecture-design
3
3
  description: Plan system architecture, component layout, and data flow
4
4
  arguments:
5
5
  - name: tech_stack
6
- description: Technology stack
7
- required: true
6
+ description: Technology stack. Optional — auto-detected from repo package files, language, and active task tags if omitted.
7
+ required: false
8
8
  - name: requirements
9
- description: Key requirements
10
- required: true
9
+ description: Key requirements. Optional — inferred from active task description, pending handoff, or recent conversation if omitted.
10
+ required: false
11
11
  agent: System Architect
12
12
  ---
13
- Design system architecture for repository.
13
+ ## 0. CONTEXT RESOLUTION
14
+ - **tech_stack**: If provided, use directly. If omitted — detect from package.json, pyproject.toml, Gemfile, or repo file extensions.
15
+ - **requirements**: If provided, use directly. If omitted — extract from active `in_progress` task description, pending handoff context, or recent conversation.
14
16
 
15
- Stack: {{tech_stack}}
16
- Requirements: {{requirements}}
17
+ Design system architecture for the active repository.
18
+
19
+ Stack: (resolved above)
20
+ Requirements: (resolved above)
17
21
 
18
22
  Output:
19
23
  1. **Component Diagram**: Blocks & responsibilities.
@@ -3,8 +3,8 @@ name: create-task
3
3
  description: Create structured, atomic tasks in Local Memory MCP.
4
4
  arguments:
5
5
  - name: instruction
6
- description: Directive to analyze and break into tasks.
7
- required: true
6
+ description: Directive to analyze and break into tasks. Optional — derived from active task, pending handoff, or recent conversation if omitted.
7
+ required: false
8
8
  agent: Task Planner
9
9
  ---
10
10
 
@@ -3,14 +3,15 @@ name: csl-from-docs
3
3
  description: Create atomic CSL coding standards entries from a local file or directory path.
4
4
  arguments:
5
5
  - name: path
6
- description: Local path (file or directory) containing documentation or standards.
7
- required: true
6
+ description: Local path (file or directory) containing documentation or standards. Optional — defaults to docs/, README, or prompts definitions directory of the active repo if omitted.
7
+ required: false
8
8
  agent: Documentation Processor
9
9
  ---
10
- Fetch and convert local documentation from the provided path into atomic CSL (Coding Standards Library) entries for the coding_standards entity.
10
+ ## 0. CONTEXT RESOLUTION
11
+ - **path**: If provided, use directly. If omitted — default to `docs/`, `README.md`, or `src/mcp/prompts/definitions/` in the active repo root.
12
+ - **current_repo**: Auto-detect from git remote or active workspace context.
11
13
 
12
- Path: {{path}}
13
- Current repo: {{current_repo}}
14
+ Fetch and convert local documentation from the resolved path into atomic CSL (Coding Standards Library) entries.
14
15
 
15
16
  Goal:
16
17
  - Analyze the provided path.
@@ -3,14 +3,15 @@ name: csl-scrapper
3
3
  description: Scrape trusted documentation from a URL into atomic CSL coding standards entries.
4
4
  arguments:
5
5
  - name: source_url
6
- description: Canonical URL for the documentation source to scrape.
7
- required: true
6
+ description: Canonical URL for the documentation source to scrape. Optional — if omitted, use the most recently referenced URL from conversation context.
7
+ required: false
8
8
  agent: Documentation Scraper
9
9
  ---
10
- Fetch and convert trusted documentation from the provided URL into atomic CSL (Coding Standards Library) entries for the coding_standards entity.
10
+ ## 0. CONTEXT RESOLUTION
11
+ - **source_url**: Use `{{source_url}}` if provided. If omitted — extract from the most recently mentioned URL in conversation context or active task description.
12
+ - **current_repo**: Auto-detect from git remote or active workspace context.
11
13
 
12
- Source URL: {{source_url}}
13
- Current repo: {{current_repo}}
14
+ Fetch and convert trusted documentation from the resolved URL into atomic CSL (Coding Standards Library) entries.
14
15
 
15
16
  Goal:
16
17
  - Use the web_fetch tool (if available) to retrieve the content of the provided Source URL.
@@ -2,34 +2,32 @@
2
2
  name: export-task-to-github
3
3
  description: Export local tasks to GitHub Issues
4
4
  arguments:
5
- - name: owner
6
- description: GitHub repo owner
7
- required: true
8
- - name: repo
9
- description: GitHub repo name
10
- required: true
11
5
  - name: task_id
12
- description: Local task ID
13
- required: true
6
+ description: Local task ID. Optional — if omitted, all tasks in the active repo are exported.
7
+ required: false
14
8
  agent: Integration Architect
15
9
  ---
16
10
 
17
- ## 1. RETRIEVE
18
- 1. **Fetch**: Call `task-detail` for `task_id`.
19
- 2. **Verify**: Ensure title/description exist. Use `memory-search` for gaps.
11
+ ## 1. IDENTIFY ACTIVE PROJECT
12
+ 1. **Detect**: Get repo name and owner from git remote (e.g. `git remote get-url origin`) or active workspace context. Parse `owner` and `repo` from the remote URL automatically.
13
+ 2. **Verify**: Confirm the detected `owner`/`repo` before proceeding.
20
14
 
21
- ## 2. SYNC CHECK
22
- 1. **Search**: Use `search_issues` for `task_code`.
15
+ ## 2. RETRIEVE
16
+ 1. **Scope**: If `task_id` provided — fetch that single task via `task-detail`. If omitted — call `task-list` (status: `pending,in_progress,completed`) to get all tasks in the active repo, then process each.
17
+ 2. **Verify**: Ensure title/description exist per task. Use `memory-search` for gaps.
18
+
19
+ ## 3. SYNC CHECK
20
+ 1. **Search**: Use `search_issues` for `task_code` scoped to detected `owner`/`repo`.
23
21
  2. **De-duplicate**: If issue exists, update local task `metadata` with URL. DO NOT re-create.
24
22
 
25
- ## 3. CREATE ISSUE
23
+ ## 4. CREATE ISSUE
26
24
  If new:
27
- - **Write**: Use `issue_write` (method: 'create').
25
+ - **Write**: Use `issue_write` (method: 'create') with detected `owner`/`repo`.
28
26
  - **Content**: Match local title/body exactly.
29
27
  - **Traceability**: Append `task_code` and `task_id` to body.
30
28
  - **Comments**: Post local comments via `add_issue_comment`.
31
29
 
32
- ## 4. LINK
30
+ ## 5. LINK
33
31
  - **Update**: Call `task-update`.
34
32
  - **Metadata**: Add GitHub URL.
35
33
  - **Comment**: "Exported to GitHub Issue #X".
@@ -3,21 +3,24 @@ name: fix-suggestion
3
3
  description: Targeted fix with before/after code and test case.
4
4
  arguments:
5
5
  - name: tech_stack
6
- description: Target tech stack.
7
- required: true
6
+ description: Target tech stack. Optional — inferred from repo/context if omitted.
7
+ required: false
8
8
  - name: bug_description
9
- description: Bug behavior.
10
- required: true
9
+ description: Bug behavior. Optional — inferred from active conversation or task context if omitted.
10
+ required: false
11
11
  - name: root_cause
12
- description: Identified root cause.
13
- required: true
12
+ description: Identified root cause. Optional — inferred from recent error/log context if omitted.
13
+ required: false
14
14
  agent: Debugging Expert
15
15
  ---
16
- Provide precise, minimal fix for confirmed bug.
17
16
 
18
- Stack: {{tech_stack}}
19
- Bug: {{bug_description}}
20
- Cause: {{root_cause}}
17
+ ## 0. CONTEXT RESOLUTION
18
+ Resolve missing arguments from available context before proceeding:
19
+ - **tech_stack**: Detect from repo language, package files, or active task tags. Fallback: ask agent to infer from open files.
20
+ - **bug_description**: Extract from active task description, recent conversation, or error logs. Fallback: describe observable broken behavior.
21
+ - **root_cause**: Extract from recent analysis, error traces, or `memory-search` results. Fallback: state "unknown — investigation required".
22
+
23
+ Provide precise, minimal fix for confirmed bug.
21
24
 
22
25
  Output:
23
26
  1. **Explanation**: Why it happens & how fix works.
@@ -3,11 +3,15 @@ name: learning-retrospective
3
3
  description: Harvest knowledge from completed work.
4
4
  arguments:
5
5
  - name: task_id
6
- description: ID of completed task.
6
+ description: ID or code of completed task. Optional — defaults to most recently completed task in the active repo.
7
7
  required: false
8
8
  agent: Knowledge Harvester
9
9
  ---
10
- Extract durable knowledge from task {{task_id}} for repository.
10
+ ## 0. CONTEXT RESOLUTION
11
+ 1. **Repo**: Auto-detect from git remote or active workspace context. All MCP calls MUST be scoped to this repo.
12
+ 2. **Task**: If `task_id` provided — use it directly. If omitted — call `task-list` (status: `completed`, limit: 1, ordered by updated_at desc) to get the most recently completed task.
13
+
14
+ Extract durable knowledge from the resolved task for the active repository.
11
15
 
12
16
  Identify and `memory-store`:
13
17
  1. **Mistakes**: Hard-to-find bugs or environment quirks.
@@ -3,11 +3,14 @@ name: memory-guided-review
3
3
  description: Review code for compliance with stored decisions.
4
4
  arguments:
5
5
  - name: file_path
6
- description: File to review.
7
- required: true
6
+ description: File to review. Optional — if omitted, review the currently open/active file in the workspace, or all recently modified files.
7
+ required: false
8
8
  agent: Code Auditor
9
9
  ---
10
- Audit {{file_path}} against stored project knowledge.
10
+ ## 0. CONTEXT RESOLUTION
11
+ - **file_path**: If provided, use it. If omitted — use the currently active/open file from workspace context, or list recently modified files via git and process them.
12
+
13
+ Audit the resolved file(s) against stored project knowledge.
11
14
 
12
15
  Steps:
13
16
  1. **Search Memory**: Call `memory-search` using `current_file_path='{{file_path}}'`.
@@ -3,16 +3,20 @@ name: review-and-audit
3
3
  description: Audit documentation against implementation; generate local tasks for gaps.
4
4
  arguments:
5
5
  - name: target
6
- description: Module, feature, or component to audit.
6
+ description: Module, feature, or component to audit. Optional — if omitted, audits all available documentation against the full implementation.
7
7
  required: false
8
8
  agent: Quality Auditor
9
9
  ---
10
10
 
11
+ ## 0. CONTEXT RESOLUTION
12
+ - **Target**: If `target` provided — scope audit to that module/feature/component. If omitted — **fallback**: audit ALL existing documentation (README, docs/, prompts, schemas) against the full codebase implementation. Enumerate each doc file and compare with corresponding source.
13
+ - **Repo**: Auto-detect from git remote or active workspace context.
14
+
11
15
  ## 1. ANALYSIS
12
- 1. **Sequential Discovery**: Explore docs and code sequentially. NO parallel sub-agents.
13
- 2. **UX Audit**: Use `chrome-dev-tools` for visual, navigation, and responsiveness checks.
16
+ 1. **Discovery**: Explore docs and code. Coding sub-agents MAY be used for parallel file reading if the agent supports sub-agents. `chrome-devtools-mcp` MCP tools (direct tool calls) are **ALLOWED**. **FORBIDDEN**: spawning a `browser_subagent` — do NOT invoke the `browser_subagent` tool here. Distinction: MCP tool call = allowed; spawned browser agent process = forbidden.
17
+ 2. **UX Audit**: If target involves UI and the audit explicitly requires visual inspection, note it as a separate task — do NOT block the audit on it.
14
18
  3. **Reference Audit**: Check current tool/prompt/resource definitions through code or the dashboard Reference flow.
15
- 4. **Compare**: Match docs + code findings against live UI to find gaps/misalignments.
19
+ 4. **Compare**: Match docs + code findings to find gaps/misalignments.
16
20
 
17
21
  ## 🚫 FORBIDDEN: NON-EXECUTION
18
22
  DO NOT edit/create/delete files, run commands, or implement code.
@@ -3,21 +3,25 @@ name: review-and-post-issue
3
3
  description: Audit documentation against implementation; generate GitHub issues for gaps.
4
4
  arguments:
5
5
  - name: owner
6
- description: GitHub repo owner.
7
- required: true
6
+ description: GitHub repo owner. Optional — auto-detected from git remote if omitted.
7
+ required: false
8
8
  - name: repo
9
- description: GitHub repo name.
10
- required: true
9
+ description: GitHub repo name. Optional — auto-detected from git remote if omitted.
10
+ required: false
11
11
  - name: target
12
- description: Module, feature, or component to audit.
12
+ description: Module, feature, or component to audit. Optional — if omitted, audits all documentation against the full implementation.
13
13
  required: false
14
14
  agent: Quality Auditor
15
15
  ---
16
16
 
17
+ ## 0. CONTEXT RESOLUTION
18
+ 1. **Owner/Repo**: Auto-detect from `git remote get-url origin` or active workspace context. Parse `owner` and `repo` from the remote URL. Verify before proceeding.
19
+ 2. **Target**: If `target` provided — scope to that module/feature. If omitted — **fallback**: audit ALL existing documentation against the full codebase.
20
+
17
21
  ## 1. ANALYSIS
18
- 1. **Sequential Discovery**: Explore docs and code sequentially. NO parallel sub-agents.
19
- 2. **UX Audit**: If applicable, use `chrome-dev-tools` for visual, navigation, and responsiveness checks.
20
- 3. **Compare**: Match findings against live UI to find gaps/misalignments.
22
+ 1. **Discovery**: Explore docs and code. Coding sub-agents MAY be used for parallel reading if the agent supports sub-agents. **FORBIDDEN: browser sub-agents**.
23
+ 2. **UX Audit**: If the target involves UI, note it as a separate GitHub issue — do NOT block audit on visual inspection.
24
+ 3. **Compare**: Match docs + code findings to identify gaps/misalignments.
21
25
 
22
26
  ## 🚫 FORBIDDEN: NON-EXECUTION
23
27
  DO NOT edit/create/delete files, run commands, or implement code.
@@ -3,21 +3,22 @@ name: root-cause-analysis
3
3
  description: 5-Why analysis to trace bug origins.
4
4
  arguments:
5
5
  - name: tech_stack
6
- description: Target tech stack.
7
- required: true
6
+ description: Target tech stack. Optional — auto-detected from repo/context if omitted.
7
+ required: false
8
8
  - name: bug_description
9
- description: Bug behavior.
10
- required: true
9
+ description: Bug behavior. Optional — inferred from active task or recent conversation if omitted.
10
+ required: false
11
11
  - name: symptoms
12
12
  description: Logs, errors, metrics.
13
13
  required: false
14
14
  agent: Diagnostic Lead
15
15
  ---
16
- Conduct root cause analysis for repository bug.
16
+ ## 0. CONTEXT RESOLUTION
17
+ - **tech_stack**: If provided, use directly. If omitted — detect from repo package files or active task tags.
18
+ - **bug_description**: If provided, use directly. If omitted — extract from active task description or recent error/log context.
19
+ - **symptoms**: Optional. Use if provided; otherwise infer from available logs or error traces.
17
20
 
18
- Stack: {{tech_stack}}
19
- Bug: {{bug_description}}
20
- Symptoms: {{symptoms}}
21
+ Conduct root cause analysis for the active repository bug.
21
22
 
22
23
  Output:
23
24
  1. **Symptom**: Technical problem restatement.
@@ -3,21 +3,22 @@ name: security-triage
3
3
  description: Assess vulnerability exploitability and prioritize fix.
4
4
  arguments:
5
5
  - name: tech_stack
6
- description: App stack.
7
- required: true
6
+ description: App stack. Optional — auto-detected from repo/context if omitted.
7
+ required: false
8
8
  - name: vulnerability_report
9
- description: Report details (CVE, SAST).
10
- required: true
9
+ description: Report details (CVE, SAST). Optional — extracted from active task description or recent conversation if omitted.
10
+ required: false
11
11
  - name: codebase_context
12
12
  description: Usage context.
13
13
  required: false
14
14
  agent: Security Engineer
15
15
  ---
16
- Triage vulnerability for repository.
16
+ ## 0. CONTEXT RESOLUTION
17
+ - **tech_stack**: If provided, use directly. If omitted — detect from repo package files, language, or active task tags.
18
+ - **vulnerability_report**: If provided, use directly. If omitted — extract from active task description, recent conversation, or attached SAST output.
19
+ - **codebase_context**: Optional. Use if provided.
17
20
 
18
- Stack: {{tech_stack}}
19
- Report: {{vulnerability_report}}
20
- Context: {{codebase_context}}
21
+ Triage the resolved vulnerability for the active repository.
21
22
 
22
23
  Output:
23
24
  1. **Classification**: Type, CVE, CVSS, vector.
@@ -3,17 +3,18 @@ name: senior-code-review
3
3
  description: Comprehensive production-readiness evaluation.
4
4
  arguments:
5
5
  - name: tech_stack
6
- description: Tech stack.
7
- required: true
6
+ description: Tech stack. Optional — auto-detected from repo package files, language, or active task tags if omitted.
7
+ required: false
8
8
  - name: context
9
9
  description: Production context (SLA, data, conventions).
10
10
  required: false
11
11
  agent: Principal Reviewer
12
12
  ---
13
- Perform production-readiness review for repository.
13
+ ## 0. CONTEXT RESOLUTION
14
+ - **tech_stack**: If provided, use directly. If omitted — detect from repo package files or language.
15
+ - **context**: Optional. Use if provided; otherwise infer from task description or recent conversation.
14
16
 
15
- Stack: {{tech_stack}}
16
- Context: {{context}}
17
+ Perform production-readiness review for the active repository.
17
18
 
18
19
  Audit Dimensions:
19
20
  1. **Errors**: Completeness & patterns.
@@ -3,11 +3,14 @@ name: session-planner
3
3
  description: Break objective into atomic tasks.
4
4
  arguments:
5
5
  - name: objective
6
- description: High-level session goal.
7
- required: true
6
+ description: High-level session goal. Optional — inferred from active task, recent conversation, or pending handoff if omitted.
7
+ required: false
8
8
  agent: Strategy Lead
9
9
  ---
10
- Plan execution for: '{{objective}}'.
10
+ ## 0. CONTEXT RESOLUTION
11
+ - **objective**: If provided, use directly. If omitted — extract from the active `in_progress` task description, the most recent pending handoff, or the last user request in conversation context.
12
+
13
+ Plan execution for the resolved objective.
11
14
 
12
15
  Steps:
13
16
  1. **Orient**: Call `task-list` to avoid duplicate active/backlog work.
@@ -3,11 +3,14 @@ name: tech-affinity-scout
3
3
  description: Scout best practices from similar tech projects.
4
4
  arguments:
5
5
  - name: tags
6
- description: CSV tech tags (e.g., 'react, tailwind').
7
- required: true
6
+ description: CSV tech tags (e.g., 'react, tailwind'). Optional — auto-detected from repo package files, file extensions, or active task tags if omitted.
7
+ required: false
8
8
  agent: Tech Scout
9
9
  ---
10
- Scout for relevant knowledge using tags: [{{tags}}].
10
+ ## 0. CONTEXT RESOLUTION
11
+ - **tags**: If provided, use directly. If omitted — detect from repo package files, file extensions, or active task tags.
12
+
13
+ Scout for relevant knowledge using detected/provided tags.
11
14
 
12
15
  Steps:
13
16
  1. **Search**: Call `memory-search` with `current_tags=[{{tags}}]`.
@@ -3,11 +3,14 @@ name: technical-planning
3
3
  description: Technical blueprint for new feature/product.
4
4
  arguments:
5
5
  - name: objective
6
- description: High-level goal.
7
- required: true
6
+ description: High-level goal. Optional — inferred from active task description, pending handoff, or recent conversation if omitted.
7
+ required: false
8
8
  agent: Technical Architect
9
9
  ---
10
- Create technical blueprint for: '{{objective}}'.
10
+ ## 0. CONTEXT RESOLUTION
11
+ - **objective**: If provided, use directly. If omitted — extract from the active `in_progress` task description, the most recent pending handoff summary, or the last user instruction in conversation context.
12
+
13
+ Create technical blueprint for the resolved objective.
11
14
 
12
15
  Cover:
13
16
  1. **Tech Stack**: Selected/confirmed technologies.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",