Skip to content

Commit 0268ffa

Browse files
committed
Update the tinystruct framework to be 1.7.6
1 parent af7bd0c commit 0268ffa

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

README.md

-12 Bytes

Java (Programmatic Startup)

import org.tinystruct.ApplicationContext;
import org.tinystruct.application.Context;
import org.tinystruct.system.ApplicationManager;
import org.tinystruct.system.Settings;
import org.tinystruct.system.HttpServer;
import org.tinystruct.system.TomcatServer;

public class Main {
    public static void main(String[] args) {
        Context ctx = new ApplicationContext();
        ctx.setAttribute("--server-port", "8080");
        ApplicationManager.install(new org.tinystruct.mcp.GitHub());
        ApplicationManager.install(new org.tinystruct.mcp.FileSystem());
        ApplicationManager.install(new HttpServer());
        ApplicationManager.install(new TomcatServer());
        ApplicationManager.call("start", ctx);
    }
}

CLI (Recommended for Most Users)

If you have the bin/dispatcher script (from the Tinystruct distribution), you can start the server directly from the command line:

To start the server with the built-in GitHub and FileSystem modules:

bin/dispatcher start --import org.tinystruct.system.HttpServer --import org.tinystruct.mcp.GitHub --import org.tinystruct.mcp.FileSystem --server-port 777 
bin/dispatcher start --import org.tinystruct.system.TomcatServer --import org.tinystruct.mcp.GitHub --import org.tinystruct.mcp.FileSystem --server-port 777 
  • You can add or remove imports to customize which modules and tools are loaded.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>org.tinystruct</groupId>
2727
<artifactId>tinystruct</artifactId>
28-
<version>1.7.2</version>
28+
<version>1.7.6</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>org.junit.jupiter</groupId>

0 commit comments

Comments
 (0)