Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0950521

Browse files
committed
Update MCPApplication.java
1 parent 90e82ef commit 0950521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tinystruct/mcp/MCPApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public abstract class MCPApplication extends AbstractApplication {
3434

3535
// Generic registries for tools, resources, prompts, and custom RPC handlers
3636
protected final Map<String, MCPTool> tools = new java.util.concurrent.ConcurrentHashMap<>();
37-
protected final Map<String, MCPTool.MCPToolMethod> toolMethods = new java.util.concurrent.ConcurrentHashMap<>();
3837
protected final Map<String, MCPDataResource> resources = new java.util.concurrent.ConcurrentHashMap<>();
3938
protected final Map<String, MCPPrompt> prompts = new java.util.concurrent.ConcurrentHashMap<>();
4039
protected final Map<String, RpcMethodHandler> rpcHandlers = new java.util.concurrent.ConcurrentHashMap<>();
40+
protected static final Map<String, MCPTool.MCPToolMethod> toolMethods = new java.util.concurrent.ConcurrentHashMap<>();
4141

4242
/**
4343
* Initializes the MCP application, setting up authentication, SSE, JSON-RPC handler,

0 commit comments

Comments
 (0)