@mnemai/memory-server 0.1.0 → 0.1.1
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.
- package/CHANGELOG.md +7 -0
- package/bin/mnemai-memory.cjs +10 -0
- package/dist/index.js +13 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@mnemai/memory-server` are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.1.1] - 2026-04-02
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **CLI / `npx`:** Ship a small CommonJS launcher (`bin/mnemai-memory.cjs`) so `npx --yes @mnemai/memory-server` reliably finds the executable (avoids `sh: mnemai-memory: command not found` with ESM-only `dist/index.js` bins on some npm versions).
|
|
10
|
+
- **`--help` / `-h`:** Print a short usage blurb and exit instead of starting stdio.
|
|
11
|
+
|
|
5
12
|
## [0.1.0] - 2026-04-01
|
|
6
13
|
|
|
7
14
|
### Added
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict'
|
|
3
|
+
const { spawnSync } = require('node:child_process')
|
|
4
|
+
const { join } = require('node:path')
|
|
5
|
+
|
|
6
|
+
const main = join(__dirname, '..', 'dist', 'index.js')
|
|
7
|
+
const result = spawnSync(process.execPath, [main, ...process.argv.slice(2)], {
|
|
8
|
+
stdio: 'inherit',
|
|
9
|
+
})
|
|
10
|
+
process.exit(result.status === null ? 1 : result.status)
|
package/dist/index.js
CHANGED
|
@@ -1622,7 +1622,7 @@ ${node.tags.join(" ")}`.slice(0, 8e3);
|
|
|
1622
1622
|
// src/index.ts
|
|
1623
1623
|
var server = new McpServer({
|
|
1624
1624
|
name: "mnemai-memory",
|
|
1625
|
-
version: "0.1.
|
|
1625
|
+
version: "0.1.1"
|
|
1626
1626
|
});
|
|
1627
1627
|
server.tool(
|
|
1628
1628
|
"memory.create_node",
|
|
@@ -1737,6 +1737,18 @@ server.registerResource(
|
|
|
1737
1737
|
}
|
|
1738
1738
|
);
|
|
1739
1739
|
async function main() {
|
|
1740
|
+
const argv = process.argv.slice(2);
|
|
1741
|
+
if (argv.includes("--help") || argv.includes("-h")) {
|
|
1742
|
+
console.log(`@mnemai/memory-server \u2014 MCP Memory 2.0 (stdio transport)
|
|
1743
|
+
|
|
1744
|
+
Usage: mnemai-memory
|
|
1745
|
+
Starts the Model Context Protocol server on stdin/stdout (no HTTP port).
|
|
1746
|
+
|
|
1747
|
+
Docs: https://www.npmjs.com/package/@mnemai/memory-server
|
|
1748
|
+
Environment: TENGU_MEMORY_DB (SQLite path), TENGU_MEMORY_EMBED_* (optional embeddings).
|
|
1749
|
+
`);
|
|
1750
|
+
process.exit(0);
|
|
1751
|
+
}
|
|
1740
1752
|
try {
|
|
1741
1753
|
await initDb();
|
|
1742
1754
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mnemai/memory-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "MCP server providing evidence-linked memory graph with typed nodes, freshness decay, and contradiction handling",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"bin": {
|
|
9
|
-
"mnemai-memory": "
|
|
9
|
+
"mnemai-memory": "bin/mnemai-memory.cjs"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
|
+
"bin",
|
|
13
14
|
"CHANGELOG.md",
|
|
14
15
|
"README.md"
|
|
15
16
|
],
|