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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rockship/code-memory-mcp

v1.2.51

Published

A powerful Model Context Protocol (MCP) server implementation for seamless code memory integration, enabling AI assistants to interact with code memory data

Readme

Code Memory MCP

Project Overview

@rockship/code-memory-mcp is a Model Context Protocol (MCP) server that provides a powerful code‑memory integration layer for AI assistants. It enables AI agents to store, retrieve, and reason over project‑specific code artifacts, facilitating context‑aware interactions such as code search, documentation lookup, and automated refactoring.

The server is built with TypeScript and runs on Node.js. It leverages the @modelcontextprotocol/sdk to expose a set of handlers for:

  • Resource management (files, memories, configurations)
  • Prompt handling (custom system prompts for AI)
  • Tool integration (search, edit, version control)
  • Real‑time streaming of logs and notifications via SSE or standard I/O.

Key Features

  • MCP‑compliant server exposing a standard API for AI assistants.
  • Modular architecture with separate handlers for resources, prompts, tools, and completions.
  • Supports multiple transport modes: stdio, sse, and HTTP.
  • Automatic subscription handling for real‑time updates.
  • Configurable via a simple code-memory.json project file.

Installation

# Install dependencies
pnpm install

# Build the project
pnpm run build

Usage

The entry point is the code-memory-mcp CLI. Choose a script to run:

# Run the default stdio server (recommended for local development)
pnpm start

# Run the Server‑Sent Events server
pnpm run start:sse

# Run the streamable HTTP server
pnpm run start:streamableHttp

You can also invoke a specific script directly:

node dist/index.js stdio   # or sse, streamableHttp, init

Project Structure

src/
├─ adapters/            # Adapter layer for external clients
├─ interfaces/          # TypeScript interfaces for client & query contracts
├─ network/             # HTTP client implementation
├─ prompts/             # System prompts and instructions used by the AI
├─ server/              # Core server logic and handler registrations
│   ├─ handlers.ts      # Main request handlers
│   ├─ resources.ts     # Resource (file/memory) management
│   ├─ tools.ts         # Tool registration for AI actions
│   └─ …
├─ utils/               # Helper utilities and constants
├─ cli.ts               # CLI entry point for init script
├─ code-memory.ts       # Server factory and configuration
├─ index.ts             # Dynamic script loader
└─ sse.ts / stdio.ts   # Transport implementations

Configuration

The server reads its configuration from code-memory.json (generated on first run). Example:

{
  "project_id": "73d22542-6ef2-47c7-9a1e-89f6b5ed55e7",
  "project_name": "Code Memory MCP",
  "repo_url": "[email protected]:Rockship-Team/code-memory-mcp.git",
  "created_at": "2025-10-28T10:25:09.735230Z"
}

Development

  • Watch mode: pnpm run watch recompiles on file changes.
  • Testing: Add tests under a tests/ directory and run with your preferred test runner.
  • Release: Use pnpm run release (changesets) to publish a new version.

License

MIT © Rockship