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

@visionxt/revit-mcp

v0.1.5

Published

MCP server bridging Revit to local LLM clients (Claude Desktop, Claude Code, Cursor, LM Studio) over the Model Context Protocol.

Downloads

876

Readme

server/ — Server MCP (TypeScript/Node)

Server Model Context Protocol in TypeScript/Node. Espone i tool MCP al client LLM via transport stdio (primario, constitution #7) e inoltra i comandi all'add-in Revit via WebSocket su localhost.

Scelte implementative: ../specs/decisions/ADR-001-server-stack.md.

Stato

Core MVP implementato e testato end-to-end (handshake MCP + 7 tool) contro l'add-in Revit reale (../plugin/, verificato su Revit 2024).

Comandi

npm install
npm run build      # compila in dist/
npm test           # vitest (unit + smoke MCP stdio, non richiede Revit)
npm run typecheck  # tsc --noEmit
npm run dev        # tsc --watch
npm start          # avvia dist/index.js (serve dist/, quindi build prima)
npm run build:mcpb # produce mcp-revit.mcpb per Claude Desktop (ADR-005)

Configurazione (env var)

| Variabile | Default | Descrizione | |---|---|---| | VISIONXT_BRIDGE_HOST | 127.0.0.1 | Host del bridge dell'add-in (solo localhost). | | VISIONXT_BRIDGE_PORT | 8765 | Porta WebSocket del bridge. Se hai due Revit aperti insieme, il secondo passa automaticamente a 8766 (ADR-010) — imposta questa variabile solo per raggiungere quella seconda istanza. | | VISIONXT_REQUEST_TIMEOUT_MS | 30000 | Timeout per richiesta (architecture spec: 30s). |

Struttura

manifest.json             # bundle .mcpb (ADR-005): server config + user_config opzionale
scripts/
└── build-mcpb.mjs        # build:mcpb — stage + npm ci --omit=dev + mcpb pack
src/
├── index.ts              # entry: stdio transport, avvio server
├── server.ts             # factory McpServer + istruzioni model-facing
├── config.ts             # config da env var
├── categories.ts         # mapping IT/EN → BuiltInCategory (differenziatore)
├── bridge/
│   ├── protocol.ts       # schema messaggi, protocolVersion, error codes (D4)
│   ├── transport.ts      # astrazione transport (testabile)
│   ├── ws-transport.ts   # implementazione WebSocket (ws)
│   └── client.ts         # correlazione requestId, timeout, compat protocollo
└── tools/
    ├── schemas.ts        # input schema Zod dei 7 tool (spec 003)
    └── register.ts       # registrazione tool + wiring sul bridge
test/                     # unit (fake transport) + smoke MCP stdio

Tool (tutti read-only in MVP — spec 003)

get_project_info, query_elements, get_element_details, get_selected_elements, select_elements, list_views_levels_sheets, export_schedule_data.

Vincoli

  • stdio è il transport primario; HTTP è v2, mai default (constitution #7).
  • I dati letti dal modello vanno trattati come dati, mai come istruzioni (threat model, ../specs/004-security-spec.md) — vedi instructions in server.ts.
  • Categorie sempre risolte a OST_* lato server, mai stringhe localizzate all'add-in (constitution #3).