Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Ai Hist Mcp

БесплатноПоддерживается

Thin npx wrapper for the ai-hist stdio MCP server.

GitHubEmbed

Описание

Thin npx wrapper for the ai-hist stdio MCP server.

README

RelayHistory indexes coding-agent sessions from Claude Code, Codex, Cursor, Grok, OpenCode, and Agent Relay in a local SQLite database.

Its production architecture has one implementation:

Rust engine (providers + SQLite + migrations + queries)
  → Node-API addon
    → TypeScript SDK
      → Node CLI / MCP server

TypeScript never opens SQLite, scans provider files, or invokes another executable. The native addon is mandatory and operates on the SQLite file in place, including WAL-backed databases.

Install

Node.js 20 or 22 is required. npm installs the SDK, CLI, MCP server, native loader, and matching prebuilt platform package:

npm install ai-hist

# Global CLI
npm install --global ai-hist
ai-hist sessions discover --limit 100
ai-hist sessions list --limit 100
ai-hist sessions hydrate codex 01a04f0c-... --json
ai-hist sessions tree codex 01a04f0c-...
ai-hist sessions tools codex 01a04f0c-... --limit 50 --json
ai-hist sessions edits codex 01a04f0c-... --limit 50 --json
ai-hist resume "the feature I was working on"          # prints the best match's native resume command
ai-hist pack "the feature I was working on" --tokens 1500  # compact context to hand another agent

sessions relationships and sessions tree read the delegation topology a session recorded: which subagent threads it spawned, what evidence established each link, and whether a child's events are addressable on their own.

Session-set commands share one mutually exclusive location scope:

ai-hist sessions list --local   # default; identical to omitting a scope flag
ai-hist sessions list --remote  # cached sessions with a remote presence
ai-hist sessions list --all     # union of both, with each session returned once

The same --local / --remote / --all contract applies to discovery, search, recent history, statistics, and sync. Local and remote are presences of a session, not separate catalogs: every result comes from the same session ledger. Reads only filter that cached ledger. Remote discovery and remote sync run through provider connectors: claude-web lists your claude.ai/code web sessions using the OAuth sign-in the Claude Code CLI stored, and codex-cloud lists Codex cloud tasks through codex cloud list --json. A connector is configured when the provider's own CLI is signed in on this machine — see docs/remote-connectors.md. With no connector configured, remote-only acquisition returns an unsupported-operation error; it never silently falls back to local work. --all runs the local adapters plus every configured connector, and an acquisition summary reports the requested scope alongside the locations_run that actually executed. Each catalog row's locations array reports where that session was actually observed.

No Rust toolchain, C/C++ compiler, standalone CLI, curl installer, or runtime binary download is used.

Checking your version

ai-hist --version prints the installed npm package version. In an interactive terminal it also checks npm for a newer release, with a three-second timeout and silent offline fallback. Suppress the notice with --no-warning or RELAYHISTORY_NO_UPDATE_CHECK=1:

ai-hist --version
ai-hist --version --no-warning

TypeScript

import {
  discoverSessions,
  hydrateSession,
  listSessionCatalog,
  getSessionEventsPage,
  getSessionToolCallsPage,
  getSessionFileEditsPage,
  search,
  sync,
} from 'ai-hist';

await discoverSessions({ limit: 100, scope: 'local' });
const sessions = await listSessionCatalog({ limit: 100, scope: 'all' });
if (sessions[0]) {
  await hydrateSession({ source: sessions[0].source, sessionId: sessions[0].sessionId });
}
const firstEvents = sessions[0]
  ? await getSessionEventsPage(sessions[0].sessionId, {
      source: sessions[0].source,
      limit: 200,
    })
  : null;
const firstTools = sessions[0]
  ? await getSessionToolCallsPage(sessions[0].source, sessions[0].sessionId, { limit: 200 })
  : null;
const firstEdits = sessions[0]
  ? await getSessionFileEditsPage(sessions[0].source, sessions[0].sessionId, { limit: 200 })
  : null;
const matches = await search('migration', { limit: 20, scope: 'all' });
await sync({ scope: 'local' }); // explicit full ingestion; local is the default

listSessionCatalog is cache-only. discoverSessions performs bounded shallow provider discovery and updates the shared ledger. hydrateSession indexes the richest evidence a connector safely exposes for one existing catalog identity and reports full, partial, or shallow_only capability with evidence counts; repeating it is safe as a live session grows. The tool call and file edit pages read that hydrated evidence back as structured rows and require both a source and a session ID, because provider session IDs collide. sync performs full global ingestion. Reads never silently turn into discovery, hydration, or sync. Hydration includes linked subagent evidence by default; CLI callers can pass --no-related.

MCP

npx -y ai-hist-mcp

MCP exposes thin adapters for search, recent history, catalog listing, discovery, targeted hydration, sessions, paged events, paged tool calls and file edits, statistics, and sync.

Supported production matrix

OS/runtime Architectures
macOS 12+ arm64, x64
Linux glibc arm64, x64
Linux musl arm64, x64
Windows 10/11 and Server 2022 x64 MSVC

Node-API level 4 is used. CI tests Node.js 20 and 22. Windows arm64, FreeBSD, Bun, Deno, browsers, Electron renderer processes, and other unlisted runtimes are not supported. Windows arm64 remains follow-up work until it can be built and executed reliably in CI.

See architecture, getting started, migration, and release validation.

Repository development

The ai-hist-engine Rust binary target remains an internal development harness while provider-ingestion code is being physically separated from command rendering. It is not published as a second user runtime. Normal users install with npm.

cargo test --workspace
cd crates/ai-hist-napi && npm ci && npm run build:debug
cd ../../sdk-ts && npm install && npm test

from github.com/AgentWorkforce/relayhistory

Установить Ai Hist Mcp в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install ai-hist-mcp

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add ai-hist-mcp -- npx -y ai-hist-mcp

Пошаговые гайды: как установить Ai Hist Mcp

FAQ

Ai Hist Mcp MCP бесплатный?

Да, Ai Hist Mcp MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Ai Hist Mcp?

Нет, Ai Hist Mcp работает без API-ключей и переменных окружения.

Ai Hist Mcp — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Ai Hist Mcp в Claude Desktop, Claude Code или Cursor?

Открой Ai Hist Mcp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

llm-analysis-assistant

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

xuzexin-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

MCPHub

Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.

автор: Community

MCP Servers Rating and User Reviews

Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)

автор: Community

Compare Ai Hist Mcp with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai