Back to Home
tinystruct icon

tinystruct

by tinystruct

Overview

Provides a framework for building and interacting with AI models, managing tools, data resources, and prompts via the Model Context Protocol (MCP).

Installation

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

Environment Variables

  • mcp.auth.token
  • mcp.server.port
  • mcp.server.host
  • mcp.session.timeout
  • redis.host
  • redis.port
  • redis.password
  • http.proxyHost
  • http.proxyPort
  • https.proxyHost
  • https.proxyPort
  • default.language
  • charset
  • default.base_url

Security Notes

CRITICAL: The framework includes functionality for arbitrary code execution via `ScriptEngine.eval()` in `DefaultTemplate.java` and command injection via `Runtime.getRuntime().exec()` in `Dispatcher.java`. If user-controlled input reaches these functions, it can lead to severe security vulnerabilities. The MCP server component itself implements an authentication token mechanism (`mcp.auth.token`), which is a good practice, but the underlying framework elements present significant risks if not carefully managed or disabled in production environments. Default Redis URI is localhost:6379, which is safe for local development but risky if exposed publicly without authentication.

Similar Servers

Stats

Interest Score48
Security Score3
Cost ClassMedium
Avg Tokens300
Stars303
Forks43
Last Update2026-01-15

Tags

AIMLProtocolFrameworkServerMicroservices