-
-
Notifications
You must be signed in to change notification settings - Fork 1
Standard
The Coding Standards Vault is a structured, searchable library of coding rules, conventions, and patterns that an agent should follow for a given project or tech stack. Unlike free-form memories, standards are first-class records with language/stack metadata and a parent–child hierarchy, so an agent can pull the right rule for the right language at the right moment.
Why it matters: "Don't use
var" only matters in JavaScript; "use Eloquent scopes" only matters in Laravel. Standards store that context and let the agent apply the correct rule instead of guessing.
Three MCP tools manage standards:
-
standard-write— create, bulk-create, or update a standard. -
standard-read— search, fetch a single standard, or list/filter standards. -
standard-delete— delete one or many standards (with KG cleanup).
A standard is a typed rule record with: name, content, parent_id (hierarchy), context (where it applies), version, language, stack, is_global, tags, metadata (non-empty), and agent / model attribution.
standard-write picks the operation from the fields you send:
-
standards: [...]→ BULK create. -
id/code+ any fields → UPDATE. -
name+content+tags+metadata→ CREATE (single).
When creating, the server checks semantic overlap against existing standards and rejects content above 0.82 cosine similarity (STANDARD_CONFLICT_THRESHOLD — stricter than memory's 0.85). Update the matching standard instead of duplicating it.
Standards are scoped three ways:
-
Per-repo — tied to a
repo(andowner). -
By language / stack —
language(e.g.php) andstack(e.g.["laravel", "filament"]) so the right rule surfaces for the current file. -
Global —
is_global: trueapplies everywhere.
-
querypresent → SEARCH (hybrid vector + keyword; recency half-life is 180 days for standards — they age slower than memories). -
id/code/ids/codes→ DETAIL (single or bulk). - no discriminator → LIST, grouped by language and filterable by
context,version,language,stack,tags,is_global, andrepo.
parent_id lets you model a standard as a child of another (e.g. a project rule under a global policy). Reads return the chain so the agent sees both the specific and the general rule.
Create a language-scoped coding standard:
{
"method": "tools/call",
"params": {
"name": "standard-write",
"arguments": {
"name": "Prefer Eloquent scopes over raw queries",
"content": "Use query scopes / query builder on models instead of DB::select() for reusable, testable filters.",
"context": "All Laravel model data access",
"language": "php",
"stack": ["laravel", "filament"],
"tags": ["eloquent", "db"],
"metadata": { "severity": "must", "source": "team-style-guide" },
"owner": "vheins",
"repo": "local-memory-mcp"
}
}
}Search standards for the current stack:
{
"method": "tools/call",
"params": {
"name": "standard-read",
"arguments": { "query": "database access", "stack": ["laravel"], "owner": "vheins", "repo": "local-memory-mcp" }
}
}Open the Standards tab. Standards are listed grouped by language with their tags, context, and scope. Click a standard for full content. This tab is read-only for editing — create and update standards through standard-write. See the Web Dashboard Guide.
-
metadatamust be non-empty — a standard with no metadata is rejected; use it for severity, source, or enforcement notes. - Conflict rejection at 0.82 is stricter than memory — keep standards distinct and update in place rather than re-adding near-duplicates.
-
Language/stack drive recall — always set
languageandstackso the rule surfaces for the matching file; a missing language makes the standard repo-scoped only. -
is_globalis powerful but blunt — a global standard applies to every repo; prefer repo/language scope unless the rule is truly universal. - Standards age slowly — the recency half-life is 180 days, so older standards still rank; archive or update stale ones rather than relying on decay.
-
Tools Reference & Usage Guide —
standard-write,standard-read,standard-delete - Web Dashboard Guide — the Standards tab
- Core Features — feature overview
MCP Local Memory Service — local-first long-term memory (SQLite + semantic search), a web dashboard, and a codebase index for AI agents. Back to Home
Provided "AS IS", without warranty of any kind.
Home
English
- Getting Started
- Tools Reference
- MCP Concepts
- Features
- Hybrid Search
- Dashboard Guide
- Troubleshooting
- Auto-Start Dashboard
- Claude Code Integration
- Codex Integration
- Kiro Integration
Bahasa Indonesia
- Memulai
- Referensi Alat
- Referensi Protokol MCP
- Fitur Inti
- Pencarian Hibrida
- Panduan Dasbor
- Pemecahan Masalah
- Auto-Start Dasbor
- Integrasi Claude Code
- Integrasi Codex
- Integrasi Kiro
Features