Sign In

@squidcode/forever-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squidcode/forever-plugin

MCP plugin for Forever - Claude Memory System

Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
15
400%
Maintainers
1
Weekly downloads
 
Created
Source

@squidcode/forever-plugin

MCP (Model Context Protocol) plugin for Forever — a centralized persistent memory layer for Claude Code instances.

Forever lets multiple Claude Code sessions share memory and files across machines, projects, and time. This plugin connects Claude Code to your Forever server via MCP.

Prerequisites

  • Node.js 18+
  • A Forever account (register here)

Setup

1. Authenticate

npx @squidcode/forever-plugin login

You'll be prompted for:

  • Server URL: https://forever.squidcode.com
  • Email: your registered email
  • Password: your password

Credentials are saved to ~/.forever/credentials.json (mode 0600).

2. Add to Claude Code

claude mcp add forever -- npx @squidcode/forever-plugin

This registers the plugin as an MCP server that Claude Code will start automatically.

Tools

The plugin exposes the following MCP tools:

Memory Tools

memory_log

Log an entry to Forever memory.

ParameterTypeRequiredDescription
projectstringnoProject name or git remote URL (auto-detected)
typeenumyessummary, decision, or error
contentstringyesThe content to log
tagsstring[]noTags for categorization
sessionIdstringnoSession ID for grouping entries

memory_get_recent

Get recent memory entries for a project.

ParameterTypeRequiredDescription
projectstringnoProject name or git remote URL (auto-detected)
limitnumbernoNumber of entries (default 20)

memory_get_sessions

Get recent sessions grouped by session with machine info. Use at startup to detect cross-machine handoffs.

ParameterTypeRequiredDescription
projectstringnoProject name or git remote URL (auto-detected)
limitnumbernoNumber of sessions (default 10)

Search memory entries across projects.

ParameterTypeRequiredDescription
querystringyesSearch query
projectstringnoFilter by project
typeenumnoFilter by entry type
limitnumbernoMax results (default 20)

File Tools

memory_store_file

Store a file in Forever for cross-machine access.

ParameterTypeRequiredDescription
filePathstringyesPath to the file (relative or absolute)
projectstringnoProject name (auto-detected)

memory_restore_file

Restore a file from Forever to the local disk.

ParameterTypeRequiredDescription
filePathstringyesPath of the file to restore
projectstringnoProject name (auto-detected)

memory_share_file

Mark a file for auto-sync across machines (also stores it immediately).

ParameterTypeRequiredDescription
filePathstringyesPath to the file to share
projectstringnoProject name (auto-detected)

memory_unshare_file

Stop auto-syncing a file across machines.

ParameterTypeRequiredDescription
filePathstringyesPath of the file to stop sharing
projectstringnoProject name (auto-detected)

memory_sync_files

Sync all shared files for a project — downloads newer versions, uploads local changes.

ParameterTypeRequiredDescription
projectstringnoProject name (auto-detected)

How It Works

  • The plugin runs as an MCP stdio server, started by Claude Code on demand.
  • Each machine gets a unique ID (stored in ~/.forever/machine.json) for tracking which machine produced each memory entry.
  • All API calls are authenticated via JWT token obtained during login.
  • Files up to 1MB are supported; binary files are automatically base64-encoded.
  • File deduplication uses MD5 hashing — unchanged files are not re-uploaded.

Development

git clone https://github.com/squidcode/forever-plugin.git
cd forever-plugin
npm install
npm run build

Scripts

ScriptDescription
npm run buildCompile TypeScript
npm run devWatch mode
npm run lintRun ESLint
npm run formatFormat with Prettier
npm run typecheckType-check without emit

Pre-commit Hooks

This project uses Husky + lint-staged to enforce code quality on every commit:

  • ESLint auto-fix + Prettier formatting on staged .ts files
  • Full TypeScript type-check

License

MIT

Keywords

mcp

FAQs

Package last updated on 22 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts