| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An embedded Tomcat server module for the tinystruct framework. It starts an embedded Tomcat (11.x), wires tinystruct's dispatcher as a Filter/Servlet, and serves dynamic actions via the q parameter as well as static assets from the working directory.
mvnw clean packageArtifacts:
You can run via the provided dispatcher scripts (recommended) or manually with java.
The bin/dispatcher (Unix) and bin/dispatcher.cmd (Windows) scripts bootstrap tinystruct actions from the CLI.
bin/dispatcher start --import org.tinystruct.system.TomcatServer --server-port 8080bin\dispatcher.cmd start --import org.tinystruct.system.TomcatServer --server-port 8080Flags you can pass through the CLI (examples):
When the server starts, it attempts to open the default browser at http://localhost:<port>.
After building the jar-with-dependencies:
java -cp target/tinystruct-tomcat-server-1.1.4-jar-with-dependencies.jar;lib/* org.tinystruct.application.Dispatcher start --import org.tinystruct.system.TomcatServer --server-port 8080Note: On Unix-based shells, replace ; with : in the classpath.
Core classes:
Tinystruct Settings are read at startup. You can set these via your runtime environment or tinystruct configuration files. Relevant keys include:
Proxy (optional via CLI context):
To initiate an SSE stream, send requests with Accept: text/event-stream and a q pointing to an SSE-capable tinystruct action.
For MCP SSE, q must equal the MCP endpoint (see MCPSpecification.Endpoints.SSE). The server selects MCPPushManager vs SSEPushManager automatically.
Useful Maven commands:
mvnw -q -DskipTests package
mvnw testApache License 2.0. See LICENSE-2.0.txt.
<dependency>
<groupId>org.tinystruct</groupId>
<artifactId>tinystruct-tomcat-server</artifactId>
<version>1.1.4</version>
</dependency>
| Back | FazBrowse Home | New Git URL |