Back to Home
tinystruct icon

tinystruct

Verified Safe

by tinystruct

Overview

Implements the Model Context Protocol (MCP) for interacting with AI models, tools, resources, and prompts, offering both client and server functionalities.

Installation

Run Command
bin/dispatcher start --import org.tinystruct.mcp.examples.SampleMCPServerApplication

Environment Variables

  • mcp.auth.token
  • redis.host
  • redis.port
  • redis.password
  • http.proxyHost
  • http.proxyPort
  • https.proxyHost
  • https.proxyPort

Security Notes

The code utilizes `eval` for executing pre-defined Lua scripts on Redis for distributed locking, which is a controlled and acceptable use case. Authentication is implemented using a configurable `AUTH_TOKEN`, with a new token generated if none is provided, which is good practice. Configuration allows for securing network connections (e.g., Redis password, proxy settings). Main risks would stem from misconfiguration (weak auth tokens, publicly exposed Redis without authentication).

Similar Servers

Stats

Interest Score47
Security Score8
Cost ClassMedium
Avg Tokens100
Stars258
Forks38
Last Update2025-12-06

Tags

AIProtocolJSON-RPCServer-Sent EventsTools