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

jurukasa-mcp

v1.2.0

Published

A small, self-contained Model Context Protocol (MCP) server implementation for Jurukasa accounting operations.

Readme

Jurukasa MCP Server

A small, self-contained Model Context Protocol (MCP) server implementation for Jurukasa accounting operations.

This repository provides an MCP server that exposes accounting-related tools and resources, including account management, tagging, journal entry workflows, reporting, and SQL execution. It includes lightweight repository adapters for SQLite (local or in-memory) and LibSQL backends.

Features

  • MCP Server Tools:
    • Account management (ensure, rename, set control, hierarchical chart, list)
    • Account tagging (set/unset multiple tags)
    • Journal entry lifecycle (draft, update, post, delete drafts, reverse)
    • Reporting (trial balance, balance sheet, generate reports)
    • SQL execution tool for ad-hoc queries
    • Configuration get/set
  • Storage Adapters:
    • SqliteAccountingRepository — Supports local file or in-memory SQLite with bundled schema
    • LibsqlAccountingRepository — For hosted LibSQL backends
  • Additional Features:
    • Typed TypeScript codebase
    • Small CLI wrapper for running the MCP server via stdio transport

Prerequisites

  • Node.js (with ESM support)
  • npm (for installing dependencies)

Installation

Clone the repository and install dependencies:

npm install

Build

The build process compiles TypeScript to the dist/ directory and copies SQL schema files into dist/app/data/ so the compiled code can read them using the same relative paths as the source.

Run the build:

npm run build

After building, the runnable CLI is available at dist/cli.js (referenced in package.json as the bin entry). The project package.json defines the build and test scripts; run npm run build to produce dist/ and npm test to run the test suite using Node's built-in test runner.

Usage

The CLI starts the MCP server using stdio for MCP transport. It accepts an optional database URL as an argument or reads DATABASE_URL and DATABASE_AUTH_TOKEN from environment variables.

Examples

  • In-memory SQLite (default if no DB URL is provided):

    node dist/cli.js
    # Or, for development (before building):
    npx tsx ./app/cli.ts
  • SQLite file:

    node dist/cli.js "sqlite:/absolute/path/to/jurukasa.db"
  • LibSQL backend:

    export DATABASE_AUTH_TOKEN="<your-token>"
    node dist/cli.js "libsql:https://your-libsql-endpoint"

If no DATABASE_URL is provided, the server logs a warning and defaults to an in-memory SQLite instance.

Database Options and Schema

  • In-memory SQLite: Pass no DB URL or use :memory:. Ideal for tests and small ad-hoc runs.
  • File-backed SQLite: Pass sqlite:/path/to/file as the first CLI argument.
  • LibSQL: Pass a libsql: URL and set DATABASE_AUTH_TOKEN if authentication is required.

The SQL schema files are located in app/data/*.sql and are applied by the SqliteAccountingRepository and exposed as an MCP resource by app/mcp-server/resources/sqlite-accounting-schema.ts. The build process copies these files into dist/app/data/ so the compiled code can read them at runtime.

Testing

Run the tests using Node's built-in test runner:

npm test

Unit tests are located near the tools and data directories.

Development

  • The project uses TypeScript and compiles to dist/. The build script runs tsc-alias to handle path aliases.
  • Use tsx (available as a dev dependency) to run TypeScript files directly during development: npx tsx ./app/cli.ts.
  • When modifying SQL schema files, rebuild the project (npm run build) or manually copy updated schemas to dist/data/ to keep the packaged schema in sync.

Developer Note: A .profile file is included in the repository to set helpful environment variables (e.g., IMPORT_MAP_PATH and NODE_OPTIONS). Source it in your shell for convenience:

source .profile

This is optional but simplifies running the TypeScript CLI with tsx and the import map.

License

This project is licensed under the FSL-1.1-MIT license. See the LICENSE file for details.