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

claude-session-share

v1.2.2

Published

MCP server for sharing Claude Code sessions via GitHub Gist with privacy protection

Readme

claude-session-share

MCP server for sharing Claude Code sessions via GitHub Gist with automatic privacy protection.

npm version License: MIT

Features

  • One-Click Sharing - Export sessions to GitHub Gist through natural language
  • Privacy First - Automatically strips thinking blocks, sanitizes paths, and redacts secrets
  • Seamless Import - Import shared sessions that work exactly like native Claude Code sessions
  • Full Compatibility - Imported sessions appear in claude --resume

Installation

Prerequisites

  • Node.js 18+
  • Claude Code CLI
  • GitHub Personal Access Token with gist scope

Setup GitHub Token

  1. Go to GitHub Settings > Personal Access Tokens
  2. Click "Generate new token (classic)"
  3. Check the gist scope
  4. Generate and copy the token

Configure MCP Server

Option 1: One-liner (recommended)

Run this in terminal, replacing YOUR_TOKEN with your GitHub token:

mkdir -p ~/.claude && cat > ~/.claude/mcp.json << 'EOF'
{
  "mcpServers": {
    "claude-session-share": {
      "command": "npx",
      "args": ["-y", "claude-session-share"],
      "env": {
        "GITHUB_TOKEN": "YOUR_TOKEN"
      }
    }
  }
}
EOF

Option 2: Manual edit

Create or edit ~/.claude/mcp.json:

{
  "mcpServers": {
    "claude-session-share": {
      "command": "npx",
      "args": ["-y", "claude-session-share"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here"
      }
    }
  }
}

Note: If the file already exists with other MCP servers, add the "claude-session-share": {...} block inside the existing "mcpServers" object.

Verify Installation

claude  # Start (or restart) Claude Code
# Type: /mcp
# You should see "claude-session-share" in the list

Important: If Claude Code was already running, restart it for the new MCP server to load.

Usage

Share a Session

In any Claude Code conversation:

"Share my current session to GitHub Gist"

Claude will:

  1. Find your current session
  2. Remove thinking blocks and sanitize paths/secrets
  3. Upload to a secret GitHub Gist
  4. Return a shareable link

Import a Session

"Import this session: https://gist.github.com/username/abc123"

Resume an Imported Session

claude --resume
# Select the imported session from the list

Or directly:

claude --resume <session-id>

Privacy Protection

Every shared session is automatically sanitized:

Removed/Sanitized

  • Thinking blocks (internal reasoning)
  • Absolute paths → relative paths
  • API keys, tokens, secrets → [REDACTED]

Preserved

  • Conversation flow and context
  • Code examples
  • Relative file paths
  • Tool use history

MCP Tools

share_session

Exports current session to GitHub Gist.

import_session

Imports session from GitHub Gist URL.

Troubleshooting

"Not authenticated" Error

Ensure GITHUB_TOKEN is set in MCP configuration.

Imported Session Doesn't Appear

Restart Claude Code to refresh the session list.

MCP Server Not Listed

Verify ~/.claude/mcp.json and restart Claude Code.

Development

git clone https://github.com/OmkarKovvali/claude-session-share.git
cd claude-session-share
npm install
npm run build
npm test

License

MIT © Omkar Kovvali