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

@iflow-mcp/huntnight-unity-mcp-advanced

v1.0.0

Published

Набор MCP утилит

Readme

Unity MCP Server

The unity-mcp server acts as a bridge between Modern Context Protocol (MCP) clients (like Cursor) and the Unity Editor. It manages external tools and communication with the Unity instance.

Project Structure

unity-mcp/
├── index.js              # Server entry point
├── tools/                # Dynamic MCP modules
│   ├── unity.js          # Unity Bridge tools
│   └── terminal.js       # System tools
└── utils/                # Shared utilities
    ├── mcpServer.js      # Dynamic module loader
    └── logger.js         # Logging system

Adding New Modules

  1. Create a file tools/my-module.js.
  2. Export the module using the standard format:
export const myTools = [
  {
    name: "tool_name", // Will be available as my_tool_name
    description: "Tool description",
    handler: async (args) => {
      return `Result: ${args.param}`;
    }
  }
];

export const myModule = {
  namespace: "my",
  description: "Module description",
  tools: myTools
};
  1. Restart the MCP server in Cursor.

Available Modules

Unity Bridge (unity.js)

Tools for interacting with the Unity Editor. All tool names are prefixed with unity_.

  • unity_screenshot: Capture Game/Scene view screenshots.
  • unity_camera_screenshot: Capture screenshot from a custom camera position.
  • unity_scene_hierarchy: specific hierarchy analysis (supports glob/regex filtering).
  • unity_scene_grep: Advanced scene querying with SQL-like DSL.
  • unity_execute: Execute arbitrary C# code.
  • unity_play_mode: Control Play Mode.
  • unity_scene_radius: Find objects within a radius.

Terminal Tools (terminal.js)

System utilities. All tool names are prefixed with terminal_.

  • terminal_system_info: System diagnostics (ports, processes).
  • terminal_check_port: Check if a port is in use.
  • terminal_find_process: Find running processes by name.
  • terminal_safe_curl: Execute safe HTTP requests.
  • terminal_wait_for_user: Request user interaction.

Tool Decorators

The server supports a decorator system for middleware-like functionality (logging, performance metrics, etc.) applied at the tool, module, or system level.

Error Handling

Tools should throw standard JavaScript errors. The server automatically catches them and formats them into user-friendly error messages that do not crash the server.

throw new Error("Operation failed");

DSL Specification (scene_grep)

The unity_scene_grep tool uses a custom DSL for querying the scene.

  • WHERE Clause: Logic expressions (and, or, not), comparisons (==, !=, >, etc.), and string functions (contains, startswith, matches).
  • SELECT Clause: List of fields to retrieve (e.g., ["GameObject.name", "Transform.position"]).
  • Path: Hierarchy path filtering (supports Glob and Regex).