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

pce-memory

v0.14.0

Published

PCE Memory - MCP server for Process-Context Engine

Readme

pce-memory

PCE Memory is the MCP server implementation of Process-Context Engine (PCE).

MCP Configuration

Use a per-project database path.

Claude Code

Add this to .mcp.json:

{
  "mcpServers": {
    "pce-memory": {
      "command": "npx",
      "args": ["-y", "pce-memory"],
      "env": {
        "PCE_DB": "~/.pce/your-project.db"
      }
    }
  }
}

Claude Desktop

Add the same server to ~/Library/Application Support/Claude/claude_desktop_config.json.

Cline / Roo Code

Register the same stdio server in settings.json.

Quick Start

# run directly
npx pce-memory

# or install globally
npm install -g pce-memory
pce-memory

Recommended v2 workflow

The current write path is:

observe -> distill -> promote -> activate(intent) -> feedback -> rollback

Rules:

  • observe is raw-only and does not create durable claims inline.
  • upsert is only for already-distilled durable knowledge.
  • upsert rejects scope: "session" and boundary_class: "secret".
  • use activate as the task-facing recall API.
  • send feedback for durable claim_ids that were actually used.

Core tools

pce_memory_policy_apply

Initialize the policy and state machine.

{ yaml?: string }

pce_memory_observe

Store raw session evidence with TTL.

{
  source_type: "chat" | "tool" | "file" | "http" | "system",
  content: string,
  boundary_class?: "public" | "internal" | "pii" | "secret",
  tags?: string[],
  ttl_days?: number
}

pce_memory_distill

Create a promotion candidate from observations, claims, or an active context.

{
  source_observation_ids?: string[],
  source_claim_ids?: string[],
  active_context_id?: string,
  proposed_kind?: "fact" | "preference" | "task" | "policy_hint",
  proposed_scope?: "project" | "principle",
  proposed_memory_type?: "working_state" | "knowledge" | "procedure" | "norm",
  note?: string
}

pce_memory_promote

Promote a pending candidate into durable memory.

{
  candidate_id: string,
  provenance: {
    at: string,
    actor?: string
  },
  reviewers?: string[],
  review_note?: string
}

pce_memory_activate

Recall task-relevant knowledge.

{
  q?: string,
  scope: ("session" | "project" | "principle")[],
  allow: string[],
  intent?: "resume_task" | "debug_incident" | "design_decision" | "policy_check",
  kind_filter?: ("fact" | "preference" | "task" | "policy_hint")[],
  memory_type_filter?: ("working_state" | "knowledge" | "procedure" | "norm" | "evidence")[],
  include_observations?: boolean,
  top_k?: number
}

pce_memory_upsert

Escape hatch for already-distilled durable knowledge.

{
  text: string,
  kind: "fact" | "preference" | "task" | "policy_hint",
  scope: "project" | "principle",
  boundary_class: "public" | "internal" | "pii",
  memory_type?: "working_state" | "knowledge" | "procedure" | "norm" | "evidence",
  provenance: {
    at: string,
    actor?: string
  },
  content_hash?: string
}

pce_memory_rollback

Append-only repair for invalid durable claims.

{
  claim_id: string,
  reason: string,
  provenance: {
    at: string,
    actor?: string
  }
}

pce_memory_boundary_validate

Validate and redact text before reuse or output.

{
  payload: string,
  scope?: string,
  allow?: string[]
}

pce_memory_feedback

Record quality feedback for a durable claim.

{
  claim_id: string,
  signal: "helpful" | "harmful" | "outdated" | "duplicate",
  score?: number
}

pce_memory_state

Read the current state machine status.

{ debug?: boolean }

Other tools

The server also exposes:

  • pce_memory_health
  • pce_memory_upsert_entity
  • pce_memory_upsert_relation
  • pce_memory_query_entity
  • pce_memory_query_relation
  • pce_memory_sync_push
  • pce_memory_sync_pull
  • pce_memory_sync_status

State machine

The server restores and enforces these states:

Uninitialized -> PolicyApplied -> HasClaims -> Ready

Notes:

  • observe can be used after policy initialization and does not create durable claims by itself.
  • activate becomes available once durable claims exist.
  • feedback is intended for durable claims that were activated and used.

Requirements

  • Node.js >= 22.18.0

License

MIT