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

jaegis-chat-export-mcp-server

v1.0.2

Published

JAEGIS Chat Export MCP Server

Readme

JAEGIS Chat Export MCP Server

A minimal HTTP + WebSocket server for chat export flows, built for Node 22 LTS, ESM-first, with CI coverage and Playwright e2e support.

Badges

CI codecov

Replace OWNER/REPO with your GitHub org/repo.

Features

  • Single port server (34675) serving:
    • HTTP GET /health (status JSON)
    • HTTP GET /export/:id (retrieve export payload)
    • WebSocket endpoint on same server for export protocol
  • ESM-first, Node 22 LTS baseline; CI tests Node 22 & 24
  • Jest 30 with coverage (lcov) and Codecov upload
  • Playwright e2e with env-configured endpoints (HTTP, WS)

Getting Started

Prerequisites:

  • Node 22.x (LTS)

Install:

npm install

Develop:

npm run dev

Build & Run:

npm run build
npm start

The server listens on PORT (default 34675)

  • /health returns { ok: true, uptime, exports }
  • /export/:id returns export payload stored via WS export messages

Export Protocol (WebSocket)

  • Client connects to ws://:
  • Send an export message:
{"type":"export","id":"123","data":{"messages":[{"role":"user","content":"hi"}]}}
  • Server stores payload and replies:
{"type":"export:ack","id":"123"}
  • Retrieve via HTTP: GET /export/123

Ping/Pong:

  • Send { "type": "ping" } => server replies { "type": "pong", "ts": <unix_ms> }

Playwright e2e

Set environment variables (locally or in CI):

  • PLAYWRIGHT_BASE_URL — base HTTP URL for UI tests (optional; tests skip if not set)
  • WS_URL — WebSocket URL for WS tests (optional; tests skip if not set)

Run e2e:

npm run test:e2e

Coverage & Codecov

Jest generates lcov reports automatically during CI and when running npm test.

  • Coverage output directory: coverage
  • lcov files: coverage/lcov.info

Codecov Setup

  1. Create a Codecov account and add your repository (https://codecov.io)
  2. For private repos: add CODECOV_TOKEN in GitHub → Settings → Secrets and variables → Actions → New repository secret
  3. Optionally set repository variables for e2e:
    • CI_E2E=true to enable the e2e job
    • PLAYWRIGHT_BASE_URL for HTTP e2e
    • WS_URL for WebSocket e2e
  4. The CI workflow uploads coverage artifacts per Node version and then the coverage job merges and uploads them to Codecov.

Interpreting Coverage Reports

  • In PRs, Codecov will comment with coverage deltas and overall project coverage
  • The badge updates automatically as coverage changes
  • You can view file-by-file and line-by-line coverage in the Codecov UI

Docker

docker build -t jaegis-mcp:dev .
docker run -p 34675:34675 jaegis-mcp:dev

Security & Performance

  • Non-root runtime user in Docker
  • better-sqlite3 notes: WAL mode recommended; see research.md
  • Logging: JSON logs via winston

License

MIT