ai-hist-mcp
v0.3.7
Published
Thin npx wrapper for the ai-hist stdio MCP server.
Readme
ai-hist-mcp
Thin npx wrapper for the ai-hist stdio MCP server.
npx -y ai-hist-mcpPair one-command setup
Install the project MCP config and advisory Pair hooks for Claude Code / Codex:
npx -y ai-hist-mcp setupThe setup is idempotent and secret-free. It writes .mcp.json, .claude/settings.json,
and .codex/hooks.json entries that call the package wrappers; it never embeds internal
auth keys or relayhistory tokens.
For the hook command alone:
npx -y ai-hist-mcp hookThe wrapper depends on ai-hist and launches its ai-hist/mcp-server export. It preserves the same environment contract:
AI_HIST_DBpoints to the ai-hist SQLite database.TRAJECTORY_ROOTpoints to the root containing**/compacted/*.jsontrajectory files.
Project scoping is configured with CLI args:
npx -y ai-hist-mcp --project .
npx -y ai-hist-mcp --project /path/to/projectBoth forms restrict all MCP tools to one project path, including child paths.
The MCP server exposes:
search_historyrecent_entriesget_sessionget_contextstatssearch_trajectorieswhy_for_task
