mcp2-core
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP2_DB_PATH | No | Path to the SQLite knowledge database. Defaults to ~/.mcp2-memory/knowledge.db on Linux/macOS or %USERPROFILE%\.mcp2-memory\knowledge.db on Windows. Can also be configured with the --db option. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use search before debugging errors, scanning configs, or authoring docs from scratch. Use execute (batch ops[]) for files (doc.create, md.section, yaml.patch, json.patch): mcp2-core only writes .yaml/.yml and .md on disk (.json/.mdc inputs convert to .yaml). Pass workspace_root if your client does not expose MCP roots.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| extensions | {
"io.modelcontextprotocol/skills": {
"directoryRead": true
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchC | Compact query across project/business/architecture memory, cross-project code knowledge, templates, known projects, or execute capabilities. |
| executeB | Execute batched operations ( |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| context | Load active project decisions, stack, and relevant code knowledge via mcp2-core. |
| setup | Run onboarding on the active repository and persist docs/extensions/auto-capture prefs. |
| save | Persist a business/architecture decision or verified bugfix into shared SQLite memory. |
| doc | Generate or partially update .yaml/.yml and .md files via templates, AST patches, and Markdown section patches. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| memory-index | Compact index of projects, active decisions, and top reusable knowledge. |
| templates-catalog | Available Eta templates (render `.yaml`/`.yml` natively or `.md` documentation). |
| memory-rules | Project-independent global rules applied across all repositories and harnesses. |
| memory-schema | SQLite tables, foreign keys, knowledge_links graph relations, and per-harness taxonomy. |
| mcp2-core | Token-saving YAML and Markdown workflow (.yaml/.yml and .md; .json/.mdc -> .yaml), global rules, and cross-project SQLite FTS5 memory via mcp2-core. |
TDQS
Scored across 2 tools
The read/write split is clear in principle (search queries, execute mutates), but both tools span an enormous shared domain surface — project/business/architecture memory, code knowledge, templates, known projects, and capabilities — so choosing the right target is ambiguous. The self-referential hint to call search(target='capabilities') to discover execute's schemas shows the boundary between the two is not self-evident.
Both names are bare verbs in the same lowercase style, so the convention is consistent even if it is not a verb_noun pattern. Minor deviation only: neither name conveys its object/target, which is unusual but internally uniform.
Two tools are being asked to cover memory, code knowledge, templates, project registries, harness config, and embeddings — a very wide surface collapsed into two mega-tools. The granularity is too coarse for the apparent scope, forcing callers to rely on opaque target/op parameters.
A generic search plus a generic execute theoretically span read and write, but there are no explicit list/get/delete lifecycle operations, and execute's schemas are only discoverable indirectly through a second search call. Agents will hit dead ends or trial-and-error on operations not enumerated in the descriptions.