Skip to content

Commit 038e79f

Browse files
daichi-pepkclaude
andcommitted
feat: add HTTP transport and per-project database support
- Add HTTP transport mode with --transport http option - Add per-project database via Mcp-Project-Path header - Add store caching for multiple database connections - Add automatic port fallback when port is in use - Move global database to ~/.claude/memory.db - Add express and commander dependencies - Update to v1.1.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b069c42 commit 038e79f

4 files changed

Lines changed: 414 additions & 181 deletions

File tree

CHANGELOG.md

Lines changed: 53 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,53 @@
1-
# Changelog
2-
3-
All notable changes to this project will be documented in this file.
4-
5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7-
8-
## [1.0.0] - 2025-01-01
9-
10-
### Added
11-
12-
- Initial release with SQLite WAL mode support
13-
- Thread-safe concurrent access for multiple sessions
14-
- Drop-in replacement API for `@modelcontextprotocol/server-memory`
15-
- ACID transaction guarantees
16-
- 5-second busy timeout with retry logic
17-
- Knowledge Graph API:
18-
- `create_entities` - Create multiple entities
19-
- `create_relations` - Create relations between entities
20-
- `add_observations` - Add observations to entities
21-
- `delete_entities` - Delete entities with cascade
22-
- `delete_observations` - Remove specific observations
23-
- `delete_relations` - Remove relations
24-
- `read_graph` - Read entire knowledge graph
25-
- `search_nodes` - Search by name, type, or content
26-
- `open_nodes` - Retrieve specific entities
27-
28-
### Technical
29-
30-
- SQLite with WAL (Write-Ahead Logging) mode
31-
- `better-sqlite3` for synchronous, high-performance operations
32-
- Automatic directory creation for database path
33-
- Indexed queries for fast search operations
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.1.0] - 2026-01-02
9+
10+
### Added
11+
12+
- **HTTP Transport Support** - New `--transport http` option for HTTP-based communication
13+
- **Per-Project Database** - Automatic project-specific database support via `Mcp-Project-Path` header
14+
- **Store Caching** - Multiple database connections managed efficiently with `Map<dbPath, KnowledgeGraphStore>`
15+
- **Port Auto-Retry** - Automatic port fallback when default port is in use
16+
17+
### Changed
18+
19+
- Global database path moved to `~/.claude/memory.db`
20+
- Enhanced graceful shutdown handling for HTTP mode
21+
22+
### Technical
23+
24+
- Added `express` and `commander` dependencies
25+
- HTTP endpoint: `/mcp` for MCP protocol, `/ping` for health check
26+
- AsyncLocalStorage for per-request project context
27+
28+
## [1.0.0] - 2025-01-01
29+
30+
### Added
31+
32+
- Initial release with SQLite WAL mode support
33+
- Thread-safe concurrent access for multiple sessions
34+
- Drop-in replacement API for `@modelcontextprotocol/server-memory`
35+
- ACID transaction guarantees
36+
- 5-second busy timeout with retry logic
37+
- Knowledge Graph API:
38+
- `create_entities` - Create multiple entities
39+
- `create_relations` - Create relations between entities
40+
- `add_observations` - Add observations to entities
41+
- `delete_entities` - Delete entities with cascade
42+
- `delete_observations` - Remove specific observations
43+
- `delete_relations` - Remove relations
44+
- `read_graph` - Read entire knowledge graph
45+
- `search_nodes` - Search by name, type, or content
46+
- `open_nodes` - Retrieve specific entities
47+
48+
### Technical
49+
50+
- SQLite with WAL (Write-Ahead Logging) mode
51+
- `better-sqlite3` for synchronous, high-performance operations
52+
- Automatic directory creation for database path
53+
- Indexed queries for fast search operations

package-lock.json

Lines changed: 93 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pepk/mcp-memory-sqlite",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Production-ready MCP memory server with SQLite WAL for thread-safe concurrent access. Drop-in replacement for @modelcontextprotocol/server-memory. Prevents race conditions and data loss in multi-session AI agent environments. ACID-compliant knowledge graph for Claude AI and LLMs.",
55
"type": "module",
66
"main": "dist/index.js",
@@ -65,7 +65,10 @@
6565
},
6666
"dependencies": {
6767
"@modelcontextprotocol/sdk": "^1.0.0",
68+
"@types/express": "^5.0.6",
6869
"better-sqlite3": "^11.0.0",
70+
"commander": "^14.0.2",
71+
"express": "^5.2.1",
6972
"zod": "^3.23.8"
7073
},
7174
"devDependencies": {
@@ -82,5 +85,10 @@
8285
},
8386
"engines": {
8487
"node": ">=20"
88+
},
89+
"publishConfig": {
90+
"access": "public",
91+
"provenance": true,
92+
"registry": "https://registry.npmjs.org"
8593
}
8694
}

0 commit comments

Comments
 (0)