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
bin/dispatcher start --import org.tinystruct.mcp.examples.SampleMCPServerApplicationEnvironment 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
octocode
An intelligent code indexer and semantic search engine that builds knowledge graphs of codebases, providing AI-powered assistance for development tasks like natural language search, smart commits, and code reviews, with local-first and multi-language support.
mcp-servers
A foundational Python project providing basic components and utilities for building modular server-like applications.
dev-workflow-mcp-server
Enforce development workflow discipline by guiding developers through a sequence of best practices (testing, documentation, commit, release) using an MCP (Model Context Protocol) server.
Memo-MCP
Provides a local LLM Model Context Protocol (MCP) server for journaling with Retrieval-Augmented Generation (RAG) to search and retrieve personal memo and journal entries.