Files
Jesse Vincent a4f14359be Add MCP server and Claude Code plugin integration with resume-based summarization
- 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
2025-10-15 10:56:15 -07:00

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" "$@"