Skip to content

Commit 3e558d9

Browse files
committed
2 parents b70500a + 53ecbd5 commit 3e558d9

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

README.md

-2.63 KB

tinystruct-mcptinystruct mcp

tinystruct-mcp is a modular Java MCP server frameworkmodule based on Ttinystruct framework, providing built-in tools for file system and GitHub operations via the Model Context Protocol (MCP)) as an example. It's designed for easy integration, automation, and extensibility in modern DevOps and AI-driven workflows.


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)