
MCP服务器,用于搜索和访问你从Claude Code、Gemini CLI、opencode和OpenAI Codex的AI编码会话。同时也是一个上传器 aisessions.dev
概览
这是一个MCP服务器,使Claude Code、OpenAI Codex、Gemini CLI、opencode、Mistral Vibe和GitHub Copilot CLI的会话向任何兼容MCP的客户端开放。 允许 AI 代理搜索、列出并读取多个 CLI 编码代理的本地编码会话。适用于: - 寻找类似问题的过去解决方案 - 回顾你最近做过的工作 - 从之前的对话中学习 - 恢复中断的工作 在Codex CLI中恢复Claude Code会话。 这会将二进制文件安装到 ~/.aisessions/bin。按照说明将其添加到你的 PATH。 从GitHub Releases下载预构建的二进制文件。 安装后,配置你的MCP客户端使用二进制文件: 验证与 Claude MCP 获取 AI 会话的连接。
概述(AI 翻译)
这是一个MCP服务器,使Claude Code、OpenAI Codex、Gemini CLI、opencode、Mistral Vibe和GitHub Copilot CLI的会话向任何兼容MCP的客户端开放。
大部分内容使用Claude代码编写。
它的作用
允许 AI 代理搜索、列出并读取多个 CLI 编码代理的本地编码会话。适用于:
- 寻找类似问题的过去解法
- 回顾你最近做过的作品
- 从之前的对话中学习
- 恢复中断工作
演示
在Codex CLI中恢复Claude Code会话。
安装
快速安装
macOS(Intel 和 Apple Silicon)、Linux(amd64 和 arm64,包括 WSL)以及 Windows amd64(Git Bash):
这会将二进制文件安装到 ~/.aisessions/bin。按照说明将其添加到你的 PATH。
自定义安装目录:
手册下载
从GitHub Releases下载预构建的二进制文件。
从源头构建
前提条件:使用1.25.13或更高版本
布置
安装后,配置你的MCP客户端使用二进制文件:
Claude Code CLI
或者如果使用自定义安装地点:
用claude mcp get ai-sessions验证连接。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AI Sessions MCP Server
An MCP server that makes sessions from Claude Code, OpenAI Codex, Gemini CLI, opencode, Mistral Vibe, and GitHub Copilot CLI available to any MCP-compatible client.
Mostly written using Claude Code.
What It Does
Allows AI agents to search, list, and read your previous local coding sessions from multiple CLI coding agents. Useful for:
- Finding past solutions to similar problems
- Reviewing what you worked on recently
- Learning from previous conversations
- Resuming interrupted work
Demo
Resuming a Claude Code session in Codex CLI.
Installation
Quick Install
macOS (Intel and Apple Silicon), Linux (amd64 and arm64, including WSL), and Windows amd64 (Git Bash):
curl -fsSL https://aisessions.dev/install.sh | bash
This installs the binary to ~/.aisessions/bin. Follow the instructions to add it to your PATH.
Custom installation directory:
curl -fsSL https://aisessions.dev/install.sh | INSTALL_DIR=/custom/path bash
Manual Download
Download pre-built binaries from GitHub Releases.
Build from Source
Prerequisites: Go 1.25.13 or later
go build -o bin/aisessions ./cmd/ai-sessions
Setup
After installation, configure your MCP client to use the binary:
Claude Code CLI
claude mcp add --scope user --transport stdio ai-sessions -- ~/.aisessions/bin/aisessions
Or if using a custom install location:
claude mcp add --scope user --transport stdio ai-sessions -- /path/to/aisessions
Verify the connection with claude mcp get ai-sessions.
Codex CLI and ChatGPT desktop app
Add the server from the CLI:
codex mcp add ai-sessions -- ~/.aisessions/bin/aisessions
Codex CLI and the ChatGPT desktop app share ~/.codex/config.toml, so the server is available in both after you restart the desktop app. In ChatGPT, open Settings → MCP servers to check its status, or type /mcp in the composer.
For manual configuration, use an absolute path (the command is launched directly, without shell expansion):
[mcp_servers.ai_sessions]
command = "/Users/YOUR_USERNAME/.aisessions/bin/aisessions"
Replace YOUR_USERNAME with your actual username, or use your custom install path.
Claude Desktop
Add to the config file opened from Settings → Developer → Edit Config:
{
"mcpServers": {
"ai-sessions": {
"command": "/Users/YOUR_USERNAME/.aisessions/bin/aisessions"
}
}
}
Replace YOUR_USERNAME with your actual username, or use your custom install path.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"ai-sessions": {
"command": "/Users/YOUR_USERNAME/.aisessions/bin/aisessions"
}
}
}