-
Notifications
You must be signed in to change notification settings - Fork 649
Instructions #365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions #365
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
<dependency> | ||
<groupId>io.modelcontextprotocol.sdk</groupId> | ||
<artifactId>mcp</artifactId> | ||
<version>0.11.0-SNAPSHOT</version> | ||
<version>0.12.0-SNAPSHOT</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this change back to 0.11.0-SNAPSHOT |
||
</dependency> | ||
|
||
<dependency> | ||
|
@@ -131,4 +131,4 @@ | |
</dependencies> | ||
|
||
|
||
</project> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
<artifactId>mcp-test</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Tests for the Java MCP SDK</name> | ||
<description>Provides some shared test fasilities for the MCP Java SDK</description> | ||
<description>Provides some shared test facilities for the MCP Java SDK</description> | ||
<url>https://github.com/modelcontextprotocol/java-sdk</url> | ||
|
||
<scm> | ||
|
@@ -24,7 +24,7 @@ | |
<dependency> | ||
<groupId>io.modelcontextprotocol.sdk</groupId> | ||
<artifactId>mcp</artifactId> | ||
<version>0.11.0-SNAPSHOT</version> | ||
<version>0.12.0-SNAPSHOT</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this change back to 0.11.0-SNAPSHOT |
||
</dependency> | ||
|
||
<dependency> | ||
|
@@ -94,4 +94,4 @@ | |
</dependencies> | ||
|
||
|
||
</project> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
</parent> | ||
<artifactId>mcp</artifactId> | ||
<packaging>jar</packaging> | ||
<version>0.12.0-SNAPSHOT</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this change back to 0.11.0-SNAPSHOT |
||
<name>Java MCP SDK</name> | ||
<description>Java SDK implementation of the Model Context Protocol, enabling seamless integration with language models and AI tools</description> | ||
<url>https://github.com/modelcontextprotocol/java-sdk</url> | ||
|
@@ -205,4 +206,4 @@ | |
</dependencies> | ||
|
||
|
||
</project> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
import org.slf4j.LoggerFactory; | ||
import reactor.core.publisher.Flux; | ||
import reactor.core.publisher.Mono; | ||
import reactor.util.annotation.Nullable; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the reactor Nullable. |
||
|
||
/** | ||
* The Model Context Protocol (MCP) server implementation that provides asynchronous | ||
|
@@ -236,6 +237,15 @@ public McpSchema.Implementation getServerInfo() { | |
return this.serverInfo; | ||
} | ||
|
||
/** | ||
* Get the server instructions if available | ||
* @return The preset instructions for communication with the server | ||
*/ | ||
@Nullable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the reactor Nullable. |
||
public String getInstructions() { | ||
return this.instructions; | ||
} | ||
|
||
/** | ||
* Gracefully closes the server, allowing any in-progress operations to complete. | ||
* @return A Mono that completes when the server has been closed | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import io.modelcontextprotocol.spec.McpSchema; | ||
import io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification; | ||
import io.modelcontextprotocol.util.Assert; | ||
import reactor.util.annotation.Nullable; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the reactor Nullable. |
||
|
||
/** | ||
* A synchronous implementation of the Model Context Protocol (MCP) server that wraps | ||
|
@@ -134,6 +135,15 @@ public McpSchema.Implementation getServerInfo() { | |
return this.asyncServer.getServerInfo(); | ||
} | ||
|
||
/** | ||
* Get the server instructions if available | ||
* @return The preset instructions for communication with the server | ||
*/ | ||
@Nullable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the reactor Nullable. |
||
public String getInstructions() { | ||
return this.getAsyncServer().getInstructions(); | ||
} | ||
|
||
/** | ||
* Notify clients that the list of available resources has changed. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change back to 0.11.0-SNAPSHOT