UNPKG

pluggedin-random-number-generator-mcp

Version:

A state-of-the-art cryptographically secure random number generator MCP server

39 lines (31 loc) 1.76 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.0.0] - 2025-07-02 ### Added - Initial release of the Plugged.in Random Number Generator MCP Server - Cryptographically secure random number generation using Node.js crypto module - Support for generating random integers with customizable ranges - Support for generating random floating-point numbers with configurable precision - Support for generating random bytes in multiple encodings (hex, base64, binary) - Support for generating UUID v4 identifiers in standard and compact formats - Support for generating random strings with multiple character sets - Support for random selection from provided choice arrays - Support for generating random boolean values with configurable probability - Comprehensive input validation and error handling - Full Model Context Protocol (MCP) compliance - TypeScript implementation with complete type safety - Comprehensive test suite covering all functionality - Performance optimizations for high-throughput applications - Detailed documentation and usage examples ### Security - All random number generation uses cryptographically secure algorithms - Input validation prevents injection attacks and resource exhaustion - Secure error handling that doesn't leak system information - Rate limiting on generation counts to prevent abuse ### Performance - Efficient native crypto function usage - Minimal memory footprint with optimized buffer handling - Thread-safe design supporting concurrent requests - Scalable architecture suitable for production use