sw-dev-knowledge-base-mcp

v0.1.7
io.github.execuro/sw-dev-knowledge-base-mcp Checked 1 day ago Published 1 month ago

Read-only offline MCP server over a curated Shopware developer knowledge base

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_docs List wiki directory (≡ ls)

≡ `ls` on the wiki: lists the entries of a wiki-root-relative directory (`""` lists the layers; `platform`, `platform/dev/6.7/guides`, `project`, this project's own wiki, `guidelines/<version>`, the effective — platform-plus-project — guideline files). Dirs first, sorted by name; `.md` entries carry `title` from frontmatter (the only enrichment, plus `tag` under `guidelines/` — platform | project | platform+project); the directory's `index.md` content is returned as `index`. `depth` (1–5) recurses; `glob` (gitignore-style, case-insensitive unless `caseSensitive`, `!` excludes) makes…

ParameterTypeDescription
path *stringWiki-root-relative directory; "" for the wiki root (layers)
caseSensitivebooleanCase-sensitive glob matching (default false)
depthintegerRecursion depth 1–5 (default 1)
globstringgitignore-style filter, e.g. "**/*cart*" or "!index.md"

grep_docs Grep wiki pages (≡ grep -rin)

≡ `grep -rin` restricted to `*.md` under a wiki-root-relative `path` (a directory or a single `.md` file): scopes are paths — `platform/dev/6.7` a version, `platform/func` merchant docs, `platform/synonyms.md` the alias file. Literal match by default; `regex: true` for a JavaScript RegExp (flags u, and i unless `caseSensitive`); `wholeWord` ≡ `grep -w`. Frontmatter and body are scanned; `line` is the 1-based file line (identical to shell line numbers and to `read_doc` `offset`). `mode`: `content` (matches with `before`/`after` context lines), `files` (≡ grep -l), `count` (≡ grep -c).…

ParameterTypeDescription
path *stringWiki-root-relative directory or .md file to scan (required)
pattern *stringLiteral text (default) or regex (regex: true); ≤ 256 chars
afterintegerOverrides context for lines after
beforeintegerOverrides context for lines before
caseSensitivebooleanApplies to the pattern and to glob
contextintegerLines of context before and after
globstringgitignore-style filter relative to path, e.g. "guides/**"
maxMatchesinteger
modestring
regexboolean
wholeWordboolean

read_doc Read a wiki page (≡ cat / sed -n)

≡ `cat` (or `sed -n 'a,bp'` with `offset`/`limit`) of one wiki file: returns the parsed `frontmatter` plus `raw` — this is the only citable retrieval path — a citation must name a path+range returned here, never a `grep_docs` match line — the file text of the returned line range exactly as on disk (frontmatter included when in range), with `lineFrom`/`lineTo`/`totalLines`. `citation` is the exact `path:lineFrom-lineTo` string for the range actually returned — copy it verbatim when citing this read, never retype it, never widen it, never estimate it. `offset` is a 1-based file line (s…

ParameterTypeDescription
path *stringWiki-root-relative file path (required)
limitintegerMax lines (default 2000)
offsetinteger1-based first line
sectionstringHeading anchor: ^[a-z0-9-]{1,120}$
sourcebooleanReturn the verbatim upstream source snapshot instead of the wiki article

kb_status Knowledge base status (≡ cat */manifest.json)

≡ `cat <layer>/manifest.json` for every layer under the wiki root: the manifest's provenance fields (`contract`, `versions`, `lastBuilt`, `counts`, `treeHash`, `hubs`, `pageCount`, `coreVersion`, `vendorHash`) plus `status` (implemented | planned | oversized | unsupported), `synonyms` (whether `<layer>/synonyms.md` exists), `integrity` (ok | mismatch | unverified) and notices. Layers are discovered from the tree (`<layer>/index.md`), never configured. `corpus.name` identifies which corpus (`kb.config.json` entry, e.g. `wiki` or `docs`) this server instance is serving; `corpus.root` is that c…