Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ public McpSchema.Implementation getClientInfo() {
return this.clientInfo;
}

/**
* Get mcp server session.
* @return The mcp server session
*/
public McpServerSession getSession() {
return this.session;
}

/**
* Create a new message using the sampling capabilities of the client. The Model
* Context Protocol (MCP) provides a standardized way for servers to request LLM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.modelcontextprotocol.spec.McpSchema;
import io.modelcontextprotocol.spec.McpSchema.LoggingLevel;
import io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification;
import io.modelcontextprotocol.spec.McpServerSession;

/**
* Represents a synchronous exchange with a Model Context Protocol (MCP) client. The
Expand Down Expand Up @@ -43,6 +44,14 @@ public McpSchema.ClientCapabilities getClientCapabilities() {
public McpSchema.Implementation getClientInfo() {
return this.exchange.getClientInfo();
}

/**
* Get mcp server session.
* @return The mcp server session
*/
public McpServerSession getSession() {
return this.exchange.getSession();
}

/**
* Create a new message using the sampling capabilities of the client. The Model
Expand Down