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

@click-to-source-3d/mcp

v0.1.3

Published

MCP server exposing Click-to-Source 3D provenance to coding agents

Readme

@click-to-source-3d/mcp

An MCP server that gives a coding agent your scene's provenance — both what the source declares and what the running app actually built.

Part of Click-to-Source 3D.

Scope

React Three Fiber, behind a Vite dev server. The file tools read your project through @click-to-source-3d/vite-plugin; the scene tools need the app open in a browser with bridge: true and <ClickToSourceBridge /> mounted.

Install

npm install -D @click-to-source-3d/mcp

Register the binary with your MCP client:

{
  "command": "click-to-source-mcp",
  "env": {
    "CTS_DEV_SERVER": "http://localhost:5173",
    "CTS_PROJECT_ROOT": "/path/to/your/app"
  }
}

Tools

Reading source — these work without a browser:

get_source            read a file, or a line range
list_provenance       every declared provenance site, by static scan
search_by_generator   find sites by function or argument name
edit_parameter        rewrite one argument's literal, via the AST editor

Reading the running scene — these need the app open:

list_scene_provenance    every stamped object actually in the scene
resolve_at_point         what is under a point, in normalised device coords
get_instance_provenance  one object, or one instance within it

Why the scene tools exist

A static scan reports what the source says. In a dogfooded app, two declared sites in two files became eight instanced meshes at runtime, partitioned by material, with counts chosen by a seeded RNG. None of that is in the source, and no scan can find it.

What it will not do

Instanced provenance is read-only. An instance's transform comes from a seeded RNG, so no literal in source corresponds to it and there is nothing for an editor to rewrite.

Variant-class values are unrecoverable. Capture reads a Matrix4, so it returns x, y, z, scale and yaw. Colour group, species or material variant are not in the transform.

Every failure is named rather than timed out. disabled, disconnected, ambiguous (more than one page open — naming which is your choice, not the server's), no_scene, timeout. An instance with no record reports why: probe_not_installed, instance_out_of_range, no_records_for_mesh or record_swept.

Addresses are not stable across a world regeneration. They are derived from source location, so they survive a remount — but if your scene regenerates with different placements, the same address resolves to a different object and nothing reports that it changed.

License

MIT