Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ The stdio **MCP server** for agentage Memory: exposes local vaults as the frozen
- `.mcpc.json` is a CI snapshot (`z.toJSONSchema`, draft-2020-12) — it disagrees with the live `tools/list` (SDK, draft-07). **Verify contract claims against a dumped live `tools/list`, never the snapshot** — snapshot-only checks go false-green.
- Descriptions flow to BOTH serializers — the safe cross-model lever (the model routes on the description, not just the schema).
- Transport-agnostic by design: `createMemoryServer` takes any transport; the bin here wires stdio. Keep it that way.
- `@agentage/memory-core` is a `file:` link until both publish — build core first (the e2e does this automatically).
- `@agentage/memory-core` is a normal npm dependency (`^0.5.0`); all memory logic stays there.

## Verify
`npm run verify` (type-check + lint + format:check + test + build). Tests: contract (tools/list = 6) + tools (in-memory) + e2e (init → spawned bin → round-trip).

Standards: `~/vaults/engineering/standards/` (start at its `README.md`); this file links them and does not copy them.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ directions.
## Develop

```bash
npm install # links @agentage/memory-core via file:../memory-core
npm install # installs @agentage/memory-core from npm
npm test # vitest: contract (tools/list = 6) + tools (in-memory) + e2e (init -> spawned bin -> round-trip)
npm run verify # type-check + lint + format:check + test + build
```

`@agentage/memory-core` is a local `file:` link until both packages publish to npm; build
core before running here (the e2e does this automatically). The 6-tool schema and
`.mcpc.json` snapshot are the frozen MCP contract - keep them in sync if the contract changes.
The 6-tool schema and `.mcpc.json` snapshot are the frozen MCP contract - keep them in sync if the
contract changes.
20 changes: 0 additions & 20 deletions test/fixtures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { dirname, join } from 'node:path';
import { afterEach } from 'vitest';
import type { VaultEntry } from '@agentage/memory-core';

const created: string[] = [];

Expand Down Expand Up @@ -51,22 +50,3 @@ export const tmpVault = (files: Record<string, string> = {}): string => {
}
return dir;
};

// A temp AGENTAGE_CONFIG_DIR holding a vaults.json built from the given vault map.
// Returns the dir; pass it as loadConfig({ configDir }).
export const tmpConfig = (
vaults: Record<string, VaultEntry>,
opts: { default?: string } = {}
): string => {
const dir = tmp('mc-config-');
const config = { version: 1, default: opts.default, vaults };
writeFileSync(join(dir, 'vaults.json'), JSON.stringify(config, null, 2), 'utf8');
return dir;
};

// Write raw text as vaults.json (for malformed-config tests). Returns the dir.
export const tmpConfigRaw = (raw: string): string => {
const dir = tmp('mc-config-');
writeFileSync(join(dir, 'vaults.json'), raw, 'utf8');
return dir;
};
Loading