Skip to content

Commit 757d722

Browse files
committed
Fix for #793
Signed-off-by: Scott Lewis <scottslewis@gmail.com>
1 parent e60a074 commit 757d722

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/server/McpAsyncServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public class McpAsyncServer {
128128
* @param features The MCP server supported features.
129129
* @param jsonMapper The JsonMapper to use for JSON serialization/deserialization
130130
*/
131-
McpAsyncServer(McpServerTransportProvider mcpTransportProvider, McpJsonMapper jsonMapper,
131+
public McpAsyncServer(McpServerTransportProvider mcpTransportProvider, McpJsonMapper jsonMapper,
132132
McpServerFeatures.Async features, Duration requestTimeout,
133133
McpUriTemplateManagerFactory uriTemplateManagerFactory, JsonSchemaValidator jsonSchemaValidator) {
134134
this.mcpTransportProvider = mcpTransportProvider;
@@ -153,7 +153,7 @@ public class McpAsyncServer {
153153
requestTimeout, transport, this::asyncInitializeRequestHandler, requestHandlers, notificationHandlers));
154154
}
155155

156-
McpAsyncServer(McpStreamableServerTransportProvider mcpTransportProvider, McpJsonMapper jsonMapper,
156+
public McpAsyncServer(McpStreamableServerTransportProvider mcpTransportProvider, McpJsonMapper jsonMapper,
157157
McpServerFeatures.Async features, Duration requestTimeout,
158158
McpUriTemplateManagerFactory uriTemplateManagerFactory, JsonSchemaValidator jsonSchemaValidator) {
159159
this.mcpTransportProvider = mcpTransportProvider;

mcp-core/src/main/java/io/modelcontextprotocol/server/McpServerFeatures.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class McpServerFeatures {
3939
* roots list changes
4040
* @param instructions The server instructions text
4141
*/
42-
record Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
42+
public record Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
4343
List<McpServerFeatures.AsyncToolSpecification> tools, Map<String, AsyncResourceSpecification> resources,
4444
Map<String, McpServerFeatures.AsyncResourceTemplateSpecification> resourceTemplates,
4545
Map<String, McpServerFeatures.AsyncPromptSpecification> prompts,
@@ -59,7 +59,7 @@ record Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities s
5959
* the roots list changes
6060
* @param instructions The server instructions text
6161
*/
62-
Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
62+
public Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
6363
List<McpServerFeatures.AsyncToolSpecification> tools, Map<String, AsyncResourceSpecification> resources,
6464
Map<String, McpServerFeatures.AsyncResourceTemplateSpecification> resourceTemplates,
6565
Map<String, McpServerFeatures.AsyncPromptSpecification> prompts,
@@ -153,7 +153,7 @@ static Async fromSync(Sync syncSpec, boolean immediateExecution) {
153153
* roots list changes
154154
* @param instructions The server instructions text
155155
*/
156-
record Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
156+
public record Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
157157
List<McpServerFeatures.SyncToolSpecification> tools,
158158
Map<String, McpServerFeatures.SyncResourceSpecification> resources,
159159
Map<String, McpServerFeatures.SyncResourceTemplateSpecification> resourceTemplates,
@@ -173,7 +173,7 @@ record Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities se
173173
* the roots list changes
174174
* @param instructions The server instructions text
175175
*/
176-
Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
176+
public Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
177177
List<McpServerFeatures.SyncToolSpecification> tools,
178178
Map<String, McpServerFeatures.SyncResourceSpecification> resources,
179179
Map<String, McpServerFeatures.SyncResourceTemplateSpecification> resourceTemplates,

mcp-core/src/main/java/io/modelcontextprotocol/server/McpStatelessAsyncServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class McpStatelessAsyncServer {
7777

7878
private final JsonSchemaValidator jsonSchemaValidator;
7979

80-
McpStatelessAsyncServer(McpStatelessServerTransport mcpTransport, McpJsonMapper jsonMapper,
80+
public McpStatelessAsyncServer(McpStatelessServerTransport mcpTransport, McpJsonMapper jsonMapper,
8181
McpStatelessServerFeatures.Async features, Duration requestTimeout,
8282
McpUriTemplateManagerFactory uriTemplateManagerFactory, JsonSchemaValidator jsonSchemaValidator) {
8383
this.mcpTransportProvider = mcpTransport;

mcp-core/src/main/java/io/modelcontextprotocol/server/McpStatelessServerFeatures.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class McpStatelessServerFeatures {
3838
* @param prompts The map of prompt specifications
3939
* @param instructions The server instructions text
4040
*/
41-
record Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
41+
public record Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
4242
List<McpStatelessServerFeatures.AsyncToolSpecification> tools,
4343
Map<String, AsyncResourceSpecification> resources,
4444
Map<String, McpStatelessServerFeatures.AsyncResourceTemplateSpecification> resourceTemplates,
@@ -56,7 +56,7 @@ record Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities s
5656
* @param prompts The map of prompt specifications
5757
* @param instructions The server instructions text
5858
*/
59-
Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
59+
public Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities,
6060
List<McpStatelessServerFeatures.AsyncToolSpecification> tools,
6161
Map<String, AsyncResourceSpecification> resources,
6262
Map<String, McpStatelessServerFeatures.AsyncResourceTemplateSpecification> resourceTemplates,

mcp-core/src/main/java/io/modelcontextprotocol/server/McpStatelessSyncServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class McpStatelessSyncServer {
2727

2828
private final boolean immediateExecution;
2929

30-
McpStatelessSyncServer(McpStatelessAsyncServer asyncServer, boolean immediateExecution) {
30+
public McpStatelessSyncServer(McpStatelessAsyncServer asyncServer, boolean immediateExecution) {
3131
this.asyncServer = asyncServer;
3232
this.immediateExecution = immediateExecution;
3333
}

0 commit comments

Comments
 (0)