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

@vinkius-core/mcp-fusion-prisma-gen

v3.1.31

Published

Prisma Generator for MCP Fusion. Reads schema annotations (@fusion.hide, @fusion.describe, @fusion.tenantKey) and emits hardened Presenters and ToolBuilders with field-level security, tenant isolation, and OOM protection.

Downloads

2,019

Readme


A compile-time Prisma Generator that reads schema.prisma annotations and emits hardened MCP Fusion Presenters and ToolBuilders — with field-level security, tenant isolation, and OOM protection baked into the generated code.

Quick Start

generator mcp {
  provider = "vinkius-prisma-gen"
  output   = "../src/tools/database"
}

model User {
  id           String @id @default(uuid())
  email        String @unique
  passwordHash String /// @fusion.hide
  stripeToken  String /// @fusion.hide
  creditScore  Int    /// @fusion.describe("Score 0-1000. Above 700 is PREMIUM.")
  tenantId     String /// @fusion.tenantKey
}
npx prisma generate
# → src/tools/database/userPresenter.ts
# → src/tools/database/userTools.ts
# → src/tools/database/index.ts

Features

| Feature | Description | |---------|-------------| | Egress Firewall | @fusion.hide physically excludes columns from the generated Zod response schema — SOC2 at compile time | | Semantic Descriptions | @fusion.describe("...") injects domain semantics into generated Zod fields | | Tenant Isolation | @fusion.tenantKey injects tenant filters into every query's WHERE clause | | OOM Guard | Pagination enforced with take (capped at 50) and skip — unbounded queries are structurally impossible | | Inversion of Control | Generates ToolBuilder + Presenter files, not a server. You wire them in |

Schema Annotations

| Annotation | Effect | |---|---| | /// @fusion.hide | Excludes the field from the generated Zod response schema | | /// @fusion.describe("...") | Adds .describe() to the Zod field — LLM reads this as a business rule | | /// @fusion.tenantKey | Injects the field into every query's WHERE clause from ctx |

Installation

npm install @vinkius-core/mcp-fusion-prisma-gen @vinkius-core/mcp-fusion zod

Peer Dependencies

| Package | Version | |---------|---------| | @vinkius-core/mcp-fusion | ^2.0.0 | | zod | ^3.25.1 \|\| ^4.0.0 | | prisma | ^6.0.0 |

Requirements

  • Node.js ≥ 18.0.0
  • MCP Fusion ≥ 2.0.0 (peer dependency)
  • Prisma ≥ 6.0.0

License

Apache-2.0