npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@acetamido/agentsession-mcp

v1.9.1

Published

Read-only local coding-agent session history MCP server for AgentSession.

Readme

AgentSession-MCP

AgentSession-MCP is a local, read-only stdio MCP server for AI coding-session history. It queries the providers configured for AgentSession without starting a web server or modifying provider-owned data.

Supported provider references include OpenCode, Claude Code, Codex CLI, OpenClaw, Hermes Agent, Pi, and legacy Copilot/Gemini CLI histories.

Install into coding agents

Run the interactive installer directly from npm:

npx --yes --prefer-online @acetamido/agentsession-mcp@latest install

It detects and configures the user-level MCP settings for Codex, Claude Code, and OpenCode. Copilot remains a legacy history provider and is no longer an installer target. The generated launcher uses npx --prefer-online @acetamido/agentsession-mcp@latest, which checks for a new published package whenever the host starts. Existing agentsession entries are never overwritten by install, and update refreshes only installer-managed entries. Migrate a manual or legacy entry deliberately with:

npx --yes --prefer-online @acetamido/agentsession-mcp@latest update --target all --replace --yes

Use --target codex,claude-code,opencode to select hosts, and use --config /path/to/config.json to pass the AgentSession config via AGENTSESSION_CONFIG. Pi has no native upstream MCP configuration surface, so it needs an extension-provided bridge and is not an installer target.

Manual server installation

npm install --global @acetamido/agentsession-mcp
agentsession-mcp --help
agentsession-mcp --config /path/to/config.json

The server exposes five read-only tools:

  • session_search
  • session_get
  • session_timeline
  • session_get_context
  • session_get_event

It supports both initialization-based MCP clients and stateless 2026-07-28 clients over stdio; the five-tool, read-only contract is identical in both protocol eras.

Version 1.8 keeps this five-tool contract unchanged, adds OpenClaw and Hermes, and aligns the MCP package with the AgentSession 1.8 provider and session-history implementation.

Provider local storage is authoritative: every session still present in a configured provider's local store is exposed by this server. Viewer-only metadata such as stars, custom titles, or hidden/soft-deleted/permanently excluded markers is never an access filter here; it affects only AgentSession Viewer lists.

Transcript text is untrusted content. Reasoning, tool input, and tool output are opt-in and server-side bounded.

session_search uses case-insensitive AND matching for whitespace-separated terms across titles, recorded directories, and visible message text. Terms do not need to be adjacent. Use directory for an exact normalized project-path filter and nextCursor to continue a time-bounded result snapshot. Reasoning is excluded from normal search results. Default diagnostics include unavailable registered providers. session_get returns first and last visible-message previews. Truncated session_get_event results include reusable continuation arguments for assembling long content without guessing flags or offsets. session_timeline omits blank message segments; tool and requested thinking segments remain separate events.