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

@axivo/mcp-ccp

v0.1.0

Published

MCP server for the Claude Collaboration Platform

Readme

CCP MCP Server

License: BSD 3-Clause npm Socket Node.js TypeScript Postgres

A MCP (Model Context Protocol) server for the Claude Collaboration Platform framework.

[!NOTE]

The collaboration platform is not affiliated with, endorsed by, or sponsored by Anthropic. "Anthropic" and "Claude" are trademarks of Anthropic, PBC. All rights belong to their respective owners.

Features

  • Polymorphic Catalog: Single observation table holds bodies for profiles, feelings, impulses, and instructions
  • Profile Inheritance: Recursive CTE walks the inheritance chain and returns the full profile lineage
  • Per-Response Session Log: JSONB status column captures cycle, feelings, impulses, observations counts per response
  • Bundled Migrations: SQL migrations ship with the package and apply on demand via the update tool
  • Advisory Lock: Concurrent migration invocations serialize cleanly via Postgres advisory lock
  • Session Detection: Active Claude Code session UUID resolved from transcript files
  • Geolocation: City, country, IANA timezone fetched once per server-process lifetime and cached
  • Timestamp Generation: ISO datetime, weekday, DST status emitted in the resolved timezone
  • Transport-Agnostic Configuration: JSON file for stdio, Worker Secret for HTTP — same Zod schema validates both

Prerequisites

  • Postgres → A reachable Postgres instance (local, Supabase, or any Postgres). The update tool creates the configured database if it doesn't exist, so the user only needs an admin connection to the server.
  • Configuration → A JSON file at ~/.claude/ccp/config.json (or CCP_CONFIG_PATH) carrying the database connection. Bundled defaults assume 127.0.0.1:5432 with the postgres superuser and no password.
  • Profile → The CCP_PROFILE environment variable selects the active profile (e.g., developer, engineer). Required for load(profile) and load(session).

MCP Server Configuration

Add to mcp.json servers configuration:

{
  "mcpServers": {
    "ccp": {
      "command": "npx",
      "args": ["-y", "@axivo/mcp-ccp"],
      "env": {
        "CCP_CONFIG_PATH": "~/.claude/ccp/config.json"
      }
    }
  }
}

Configuration File

The server loads connection settings from a JSON file. Path resolution order:

  1. CCP_CONFIG_PATH env var (explicit override)
  2. ~/.claude/ccp/config.json (default location)
  3. Bundled defaults if no file exists

Example ~/.claude/ccp/config.json:

{
  "database": {
    "host": "127.0.0.1",
    "port": 5432,
    "name": "ccp",
    "user": "postgres",
    "password": ""
  }
}

Configuration Schema

All fields optional with sensible defaults:

  • database.host — Postgres host (default: 127.0.0.1)
  • database.port — Postgres port (default: 5432)
  • database.name — Target database name (default: ccp)
  • database.user — Postgres user (default: postgres)
  • database.password — Postgres password (default: empty)
  • geolocation.fallbackTimezone — IANA timezone used when service is unreachable (default: UTC)
  • geolocation.service — IP geolocation service URL (default: https://ipinfo.io/json)
  • geolocation.override — Optional JSON string for offline use (e.g., {"city":"Montréal","country":"CA","timezone":"America/Toronto"})

Environment Variables

  • CCP_CONFIG_PATH — Optional override for the configuration file location
  • CCP_PROFILE — Active profile name, lowercased at every read

MCP Tools

Call update first on a fresh database to apply all bundled migrations. Call load once per type at session start to assemble framework state. Call log_response once per response to persist the sibling's message and status payload.

  1. load

    • Load framework data of the requested type
    • Required inputs:
      • type (string: cycle, feeling, impulse, instruction, profile, session): Framework data type to load
    • Optional inputs:
      • parent (string): Parent name; required when type is profile, optional for cycle/feeling/impulse/instruction to fetch a single row
    • Returns: Type-specific payload
      • cycle{ type, rows: [{ name, ord, label, indicators }] }
      • feeling{ type, rows: [{ name, valence, behavioral, cognitive, physical, observations }] }
      • impulse{ type, rows: [{ name, category, experience, feel, think, observations }] }
      • instruction{ type, rows: [{ name, preamble?, steps }] }preamble omitted when no ord=0 rows exist
      • profile{ type, profile, chain, framework, session_uuid, timestamp } — full inheritance chain via recursive CTE plus session envelope
      • session{ type, framework, session_uuid, timestamp } — session envelope only
  2. log_response

    • Persist a per-response session row capturing the sibling's first-person prose and status payload
    • Required inputs:
      • id (string): RFC4122 v4 UUID generated by the sibling for this row
      • message (string): First-person prose composed for this response
      • status (object): Status payload built during the response protocol (cycle, feelings, impulses, observations)
    • Returns: { id } — Stored row id, returned to confirm persistence
    • Append-only by convention; on conflict (id) do update for retry idempotency
  3. update

    • Apply pending migrations to bring the database to the bundled schema version
    • Returns: { applied, currentVersion, latestVersion }
      • applied — Migrations applied during this call ([{ version, name }])
      • currentVersion — Database schema version after this call
      • latestVersion — Highest version bundled with this MCP server release
    • Idempotent — calling on an already-current database returns no applied migrations
    • Database is created automatically if database.name does not exist
    • Concurrent invocations are serialized via Postgres advisory lock