MCP.Market

Flit Physics MCP server

by brashler·io.github.brashler/flit·v0.2.2·1 stars

Tiny sphere-physics engine for three.js games: spawn, step, raycast, InstancedMesh-ready positions

A89/100grade A
What users say
No reviews yet
Be the first
Safety scan
A89/100

full report

Adoption
Growing

1 stars32 downloads/wk

Reviews

Write one

Nobody has reviewed Flit Physics yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Flit Physics tools (7, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • flit_add_particles

    Add custom particles. Returns the assigned indices.

  • flit_info

    Flit engine metadata: what it is, current world state, and the repo. Good first call.

  • flit_raycast

    Cast a ray through the scene (Amanatides-Woo voxel walk over the broadphase grid).

  • flit_resetwrite action

    Destroy all particles and reconfigure the world.

  • flit_spawn

    One-shot scene spawners for games/demos: "rain" drops balls from above,

  • flit_state

    Flat xyz positions + per-ball radii (for InstancedMesh sync).

  • flit_step

    Advance the world. Returns flat xyz positions shaped for direct use in

Public scan report

scanner v0.1.10 · 2026-10-15 · same rubric, same numbers if you re-run it

no findings
  • Code scan17 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 23 days ago15/15
  • Maintainer identityregistry namespace matches repository owner6/10
Overall 89/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Flit Physics compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
89/100
higher than 80% of 48,243 servers
Tools
7
the typical server has 7
Tools that change things
14%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
1
more than 65% of 28,706 servers
Downloads a week
32
more than 20% of 12,306 servers with a package

What its tools let an agent do: 6 read · 1 change

Install Flit Physics in Claude Code, Cursor or VS Code

Runs npx -y flit-physics on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add flit -- npx -y flit-physics
Add to Cursor

What the publisher says

From the Flit Physics repository's README, as published. We do not edit it. Read it on GitHub

Flit

Flit is a tiny little physics engine for 3js. It doesn't do much yet! but I believe!

Spheres, collisions, raycasts, gravity, and a spatial-hash broadphase — nothing more, on purpose. All simulation state lives in flat Float32Arrays (structure-of-arrays), so the CPU path doubles as the reference implementation for a future WebGPU compute backend: same buffers, same kernels, no re-architecting.

What's in the box

impulse + positional-correction contact solver, infinite ground plane.

  • World — point-sphere particles, semi-implicit Euler integration,

cell codes. This is the Euclidean cousin in the LSH family: MinHash buckets documents by Jaccard similarity; this buckets positions so nearby points collide in the same bucket. Morton keys are bijective (no hash-collision pair bloat), invertible (no side table), and locality-ordered for a future sorted-array GPU backend.

  • SpatialHash — uniform grid broadphase keyed by Morton (Z-order)

chi-square/KL distances (ported from FLANN), Morton (Z-order) keys, float bit-flips for radix sorting, octagonal approximate distance. See THIRDPARTYNOTICES.md for provenance and licenses.

  • Distance & bit utilities — squared Euclidean/L1/Minkowski/L∞/Hellinger/

For agents

Building a little three.js game or demo? Two ways in:

your agent's skills path (e.g. .claude/skills/, ~/.code_puppy/skills/). It carries the 30-second integration recipe, the MCP option, measured performance envelope, and contributor rules.

  • Skill: skills/flit/SKILL.md — copy the skills/flit/ directory into
  • MCP server (no code needed): npm run mcp, or point your client at it:
{
  "mcpServers": {
    "flit": {
      "command": "npx",
      "args": ["vite-node", "mcp/server.ts"],
      "cwd": "<path-to-this-repo>"
    }
  }
}

Tools: flitinfo, flitreset, flitspawn (rain/explosion/grid/fountain presets), flitaddparticles, flitstep, flit_state — the last two return flat xyz positions shaped for InstancedMesh syncing.

Usage

npm i flit-physics
import { World } from 'flit-physics';

const world = new World({ restitution: 0.4 }); // gravity and a floor at y=0 included

const ball = world.addParticle({ position: [0, 10, 0], radius: 0.5, mass: 1 });

// fixed timestep, e.g. from your rAF loop
world.step(1 / 60);

// sync to three.js: positions is a live Float32Array, 3 floats per particle
mesh.position.set(
  world.positions[ball * 3],
  world.positions[ball * 3 + 1],
  world.positions[ball * 3 + 2],
);

Develop

npm install
npm test        # vitest
npm run build   # tsc -> dist/
npm run bench   # broadphase + full-step micro-benchmarks
npm run demo    # three.js demo scene (vite dev server)

Benchmarks

Deterministic seeds; numbers from a local dev machine, recorded at commit time (see commit messages for the full series, including rejected designs).

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Flit Physics: common questions

Is Flit Physics MCP server safe?
Yes, by our scan: it is graded A (89/100). Read the Flit Physics safety report
How do I install Flit Physics?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Flit Physics need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Flit Physics maintained?
The last commit was 44 days ago (2026-09-22). The latest release is v0.2.2.
How does Flit Physics compare with other MCP servers?
safety score 89/100 (higher than 80% of 48,243 servers); tools 7 (the typical server has 7); tools that change things 14% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.