Files
Jesse Vincent c9c4e8ae31 Release v1.0.3: Auto-install dependencies via MCP server wrapper
Fix MCP server startup errors by implementing a wrapper script that
automatically runs npm install before starting the server. This solves
the "Cannot find module" errors that occurred because MCP servers start
before SessionStart hooks can run.

Changes:
- Add cli/mcp-server-wrapper that checks for node_modules and runs npm install
- Update plugin.json to use wrapper script instead of direct node execution
- Add esbuild bundling to reduce dependency size
- Remove cli/ensure-dependencies (no longer needed)
- Remove ensure-dependencies from SessionStart hook
- Bump version to 1.0.3 in package.json, plugin.json, marketplace.json
- Update CHANGELOG.md

Fixes: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@modelcontextprotocol/sdk'
2025-10-23 15:13:37 -07:00

17 lines
283 B
JSON

{
"hooks": {
"SessionStart": [
{
"matcher": "startup|resume",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/cli/episodic-memory",
"args": ["sync"]
}
]
}
]
}
}