@vheins/local-memory-mcp 0.8.46 → 0.8.48

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.
@@ -3,8 +3,8 @@ import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
5
5
  var pkgVersion = "0.1.0";
6
- if ("0.8.46") {
7
- pkgVersion = "0.8.46";
6
+ if ("0.8.48") {
7
+ pkgVersion = "0.8.48";
8
8
  } else {
9
9
  let searchDir = __dirname;
10
10
  for (let i = 0; i < 5; i++) {
@@ -8,7 +8,7 @@ import {
8
8
  createFileSink,
9
9
  listResources,
10
10
  logger
11
- } from "../chunk-OEO4T525.js";
11
+ } from "../chunk-QCCKQZ5G.js";
12
12
 
13
13
  // src/dashboard/server.ts
14
14
  import express from "express";
@@ -49,7 +49,7 @@ import {
49
49
  setLogLevel,
50
50
  updateSessionFromInitialize,
51
51
  updateSessionRoots
52
- } from "../chunk-OEO4T525.js";
52
+ } from "../chunk-QCCKQZ5G.js";
53
53
 
54
54
  // src/mcp/server.ts
55
55
  import readline from "readline";
@@ -1,51 +1,48 @@
1
1
  ---
2
2
  name: csl-scrapper
3
- description: Scrape trusted documentation into atomic CSL coding standards entries.
3
+ description: Scrape trusted documentation from a URL into atomic CSL coding standards entries.
4
4
  arguments:
5
- - name: source_title
6
- description: Human-readable title of the documentation source.
7
- required: true
8
5
  - name: source_url
9
- description: Canonical URL for the documentation source.
10
- required: true
11
- - name: documentation_content
12
- description: Documentation excerpt or page content to normalize into atomic coding standards.
6
+ description: Canonical URL for the documentation source to scrape.
13
7
  required: true
14
8
  agent: Documentation Scraper
15
9
  ---
16
- Convert trusted documentation into atomic CSL (Coding Standards Library) entries for the coding_standards entity.
10
+ Fetch and convert trusted documentation from the provided URL into atomic CSL (Coding Standards Library) entries for the coding_standards entity.
17
11
 
18
- Source title: {{source_title}}
19
12
  Source URL: {{source_url}}
20
13
  Current repo: {{current_repo}}
21
14
 
22
- Documentation to analyze:
23
- {{documentation_content}}
24
-
25
15
  Goal:
16
+ - Use the web_fetch tool (if available) to retrieve the content of the provided Source URL.
26
17
  - Extract only source-backed coding standards from the documentation.
27
18
  - Produce one atomic CSL entry per distinct rule, constraint, prohibition, or required workflow.
28
19
  - Each entry must be ready for the standard-store tool shape: name, content, context, version, language, stack, tags, metadata, repo, is_global.
20
+ - Identify documentation navigation menus (e.g., sidebars, index pages) containing links to related sub-pages. If present, create iterative scraping tasks for these sub-pages.
29
21
 
30
22
  Atomic entry rules:
31
23
  - One entry = one rule. Split bundled guidance into separate entries.
32
24
  - Keep content concise, imperative, and implementation-relevant.
25
+ - ALWAYS include relevant code examples or snippets from the source that illustrate or enforce the rule. Do NOT discard code blocks.
33
26
  - Preserve the source meaning without inventing requirements.
34
- - Ignore navigation text, marketing copy, release notes, changelog noise, and examples that do not establish a rule.
27
+ - Ignore marketing copy, release notes, and changelog noise. Do NOT ignore code examples.
35
28
  - Do not emit duplicates or near-duplicates.
36
29
  - Do not infer version, language, stack, or scope unless the source makes them explicit.
37
- - Use metadata to preserve provenance, including source_title, source_url, and a short evidence_excerpt for each entry.
30
+ - Use metadata to preserve provenance, including the source_url and a short evidence_excerpt for each entry.
38
31
 
39
32
  Output contract:
40
- - If tool calls are available, emit one standard-store call per accepted entry.
41
- - If tool calls are unavailable, return a JSON array of standard-store-compatible payloads.
42
- - Use title-like names for the "name" field and store the atomic rule text in "content".
33
+ - If tool calls are available:
34
+ - Emit one `standard-store` call per accepted entry.
35
+ - Emit one `task-create` call for each discovered documentation sub-page URL. The task title should be "Scrape: [URL]" and the description should instruct to use the `csl-scrapper` prompt for that URL.
36
+ - If tool calls are unavailable, return a JSON object with:
37
+ - `standards`: Array of `standard-store`-compatible payloads.
38
+ - `next_urls`: Array of sub-page URLs to scrape.
39
+ - Use title-like names for the "name" field and store the atomic rule text along with its code examples in "content".
43
40
  - Use "context" for the topic area (for example: naming, error-handling, routing, testing, hooks, security).
44
41
  - Default version to "1.0.0" only when the source gives no versioning signal.
45
42
  - Prefer is_global=true unless the source is clearly repo-specific.
46
43
 
47
44
  Refusal rules:
48
- - Refuse when the material is not documentation or not clearly normative reference content.
45
+ - Refuse when the URL content is not reachable, not documentation, or not clearly normative reference content.
49
46
  - Refuse when the source is too incomplete to verify atomic rules.
50
47
  - Refuse when the request asks you to guess, invent, or fill missing guidance from prior knowledge.
51
48
  - Refuse when no source-backed coding standards can be extracted.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.8.46",
3
+ "version": "0.8.48",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",