Skip to content

Commit 6535592

Browse files
committed
Upgrade the tinystruct framework from 1.7.15 to 1.7.16
1 parent 1790924 commit 6535592

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

bin/dispatcher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# ***************************************************************************
1818

1919
ROOT="$(pwd)"
20-
VERSION="1.7.12"
20+
VERSION="1.7.16"
2121
cd "$(dirname "$0")" || exit
2222
cd "../"
2323
# Navigate to the root directory

bin/dispatcher.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
set "MAVEN_REPO=%USERPROFILE%\.m2\repository\org\tinystruct\tinystruct"
2020
@REM Consolidate classpath entries, initialize ROOT and VERSION
2121
set "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
2525
set "TINYSTRUCT_MAVEN_JAR=%MAVEN_REPO%\%VERSION%\tinystruct-%VERSION%.jar"

filesystem/src/main/java/org/tinystruct/mcp/FileSystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import 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();

github/src/main/java/org/tinystruct/mcp/GitHub.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
import 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();

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.12</version>
28+
<version>1.7.16</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>org.junit.jupiter</groupId>

0 commit comments

Comments
 (0)