Skip to content

Commit 83fb169

Browse files
authored
Update the README.md
1 parent e5dc7b2 commit 83fb169

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

README.md

-2.66 KB

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;

public class Main {
    public static void main(String[] args) {
        Context ctx = new ApplicationContext();
        ctx.setAttribute("--server-port", "8080");
        ApplicationManager.init();
        ApplicationManager.install(new org.tinystruct.mcp.GitHub());
        ApplicationManager.install(new org.tinystruct.mcp.FileSystem());
        ApplicationManager.install(new HttpServer());
        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:

0 commit comments

Comments
 (0)