File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
filesystem/src/main/java/org/tinystruct/mcp
github/src/main/java/org/tinystruct/mcp Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1717# ***************************************************************************
1818
1919ROOT=" $( pwd) "
20- VERSION=" 1.7.12 "
20+ VERSION=" 1.7.16 "
2121cd " $( dirname " $0 " ) " || exit
2222cd " ../"
2323# Navigate to the root directory
Original file line number Diff line number Diff line change 1919set " MAVEN_REPO = %USERPROFILE% \.m2\repository\org\tinystruct\tinystruct"
2020@ REM Consolidate classpath entries, initialize ROOT and VERSION
2121set " ROOT = %~dp0 .."
22- set " VERSION = 1.7.12 "
22+ set " VERSION = 1.7.16 "
2323
2424@ REM Define the paths for tinystruct jars in the Maven repository
2525set " TINYSTRUCT_MAVEN_JAR = %MAVEN_REPO% \%VERSION% \tinystruct-%VERSION% .jar"
Original file line number Diff line number Diff line change 1313import java .util .logging .Logger ;
1414
1515// Reference: see GitHub.java and SampleMCPServerApplication.java for the modern MCPServerApplication pattern
16- public class FileSystem extends MCPServerApplication {
16+ public class FileSystem extends MCPServer {
1717
1818 // FileSystem MCP specific constants
1919 private static final String FILESYSTEM_PROTOCOL_VERSION = "1.0.0" ;
@@ -24,7 +24,7 @@ public void init() {
2424
2525 // Register FileSystem tool methods as individual tools
2626 FileSystemTool fsTool = new FileSystemTool ();
27- this .registerToolMethods (fsTool );
27+ this .registerTool (fsTool );
2828
2929 // Register a sample prompt (can be customized for FileSystem context)
3030 Builder promptSchema = new Builder ();
Original file line number Diff line number Diff line change 1212import java .util .logging .Logger ;
1313
1414/**
15- * GitHub-specific MCP Application that extends the base MCP functionality
15+ * GitHub-specific MCP that extends the base MCP functionality
1616 * Implements Git and GitHub operations for repository management with SSE support
1717 */
1818// Reference: https://github.com/tinystruct/tinystruct/blob/master/src/main/java/org/tinystruct/mcp/MCPServerApplication.java
19- public class GitHub extends MCPServerApplication {
19+ public class GitHub extends MCPServer {
2020 private static final Logger LOGGER = Logger .getLogger (GitHub .class .getName ());
2121
2222 // GitHub MCP specific constants
@@ -35,7 +35,7 @@ public void init() {
3535
3636 // Register GitHub tool methods as individual tools
3737 GitHubTool githubTool = new GitHubTool ();
38- this .registerToolMethods (githubTool );
38+ this .registerTool (githubTool );
3939
4040 // Register a sample prompt (can be customized for GitHub context)
4141 Builder promptSchema = new Builder ();
Original file line number Diff line number Diff line change 2525 <dependency >
2626 <groupId >org.tinystruct</groupId >
2727 <artifactId >tinystruct</artifactId >
28- <version >1.7.12 </version >
28+ <version >1.7.16 </version >
2929 </dependency >
3030 <dependency >
3131 <groupId >org.junit.jupiter</groupId >
You can’t perform that action at this time.
0 commit comments