Skip to content

Commit 5056e14

Browse files
#115157 - expose transport (#3)
1 parent a818a44 commit 5056e14

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎mcp/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<version>1.0.0</version>
1010
</parent>
1111
<artifactId>mcp</artifactId>
12+
<version>1.1.0</version>
1213
<packaging>jar</packaging>
1314
<name>Java MCP SDK</name>
1415
<description>Java SDK implementation of the Model Context Protocol, enabling seamless integration with language models and AI tools</description>

‎mcp/src/main/java/io/modelcontextprotocol/spec/McpServerSession.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ public Authentication getAuthentication() {
103103
return authentication;
104104
}
105105

106+
public McpServerTransport getTransport() {
107+
return transport;
108+
}
109+
106110
/**
107111
* Called upon successful initialization sequence between the client and the server
108112
* with the client capabilities and information.
@@ -243,7 +247,7 @@ private Mono<McpSchema.JSONRPCResponse> handleIncomingRequest(McpSchema.JSONRPCR
243247
.onErrorResume(error -> Mono.just(new McpSchema.JSONRPCResponse(McpSchema.JSONRPC_VERSION, request.id(),
244248
null, new McpSchema.JSONRPCResponse.JSONRPCError(McpSchema.ErrorCodes.INTERNAL_ERROR,
245249
error.getMessage(), null)))); // TODO: add error message
246-
// through the data field
250+
// through the data field
247251
});
248252
}
249253

0 commit comments

Comments
 (0)