jsonv-ts
Verified Safeby dswbx
Overview
Provides a type-safe JSON Schema builder and validator in TypeScript, with integrated Hono middleware for OpenAPI generation and request validation, and an MCP (Model Context Protocol) server/client for agent-based interactions.
Installation
bun run src/mcp/examples/test.tsSecurity Notes
The library primarily enhances security through robust JSON schema validation and type-safety. No direct use of `eval` or obvious code injection vectors were found within the MCP-related source code. The `RegExp` constructor is used for pattern validation, which is a potential ReDoS vector if patterns are derived from unsanitized user input, but in typical usage, patterns are developer-defined in the schema. Logging mechanisms could potentially expose sensitive data if not configured appropriately at the application layer.
Similar Servers
mcp-openapi-server
Exposes OpenAPI endpoints as Model Context Protocol (MCP) tools, enabling Large Language Models (LLMs) to discover and interact with REST APIs through a standardized protocol.
tmcp
OAuth 2.1 authorization helper for Model Context Protocol (MCP) servers.
frontmcp
A TypeScript-first framework for building Model Context Protocol (MCP) servers, enabling AI models to interact with typed tools, resources, and rich UI widgets through decorators and dependency injection.
mcp-typescript-template
A TypeScript template for building remote Model Context Protocol (MCP) servers with robust tooling, best practices, and an example 'echo' tool for AI model interaction.