mirror of
https://github.com/obra/episodic-memory.git
synced 2026-09-14 13:43:14 +08:00
a4f14359be
- Created MCP server (src/mcp-server.ts) with 2 tools: - episodic_memory_search: Unified single/multi-concept search - episodic_memory_show: Display full conversations in markdown - Added Claude Code plugin structure (.claude-plugin/, hooks/, commands/) - Implemented resume-based summarization using SDK resume option - Updated sync to generate summaries for all conversations (max 10/run) - Consolidated plugin config to top level, removed old claude-code-plugin/ dir - Added MCP dependencies (@modelcontextprotocol/sdk, zod) - SessionEnd hook automatically syncs and indexes conversations - Improved summarization prompt with context about search usage
16 lines
470 B
Bash
Executable File
16 lines
470 B
Bash
Executable File
#!/bin/bash
|
|
# MCP Server entry point for episodic-memory
|
|
# This runs the MCP server using stdio transport
|
|
|
|
# Resolve symlinks to find the actual script directory
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ]; do
|
|
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
SOURCE="$(readlink "$SOURCE")"
|
|
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
done
|
|
SCRIPT_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
|
|
# Run the MCP server
|
|
npx tsx "$SCRIPT_DIR/../src/mcp-server.ts" "$@"
|