You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: quickstart/server.mdx
+27-12
Original file line number
Diff line number
Diff line change
@@ -747,12 +747,12 @@ Save the file, and restart **Claude for Desktop**.
747
747
<Tabtitle='Java'>
748
748
749
749
<Note>
750
-
This is a quickstart demo based on Spring AI MCP auto-configuration and boot starters.
750
+
This is a quickstart demo based on Spring AI MCP auto-configuration and boot starters.
751
751
To learn how to create sync and async MCP Servers, manually, consult the [Java SDK Server](/sdk/java/mcp-server) documentation.
752
752
</Note>
753
753
754
754
755
-
Let's get started with building our weather server!
755
+
Let's get started with building our weather server!
756
756
[You can find the complete code for what we'll be building here.](https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/weather/starter-stdio-server)
757
757
758
758
For more information, see the [MCP Server Boot Starter](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-server-boot-starter-docs.html) reference documentation.
@@ -789,7 +789,7 @@ You will need to add the following dependencies:
@Tool(description = "Get weather alerts for a US state")
853
853
public String getAlerts(
854
854
@ToolParam(description = "Two-letter US state code (e.g. CA, NY") String state)
@@ -868,7 +868,7 @@ public class WeatherService {
868
868
The `@Service` annotation with auto-register the service in your application context.
869
869
The Spring AI `@Tool` annotation, making it easy to create and maintain MCP tools.
870
870
871
-
The auto-configuration will automatically register these tools with the MCP server.
871
+
The auto-configuration will automatically register these tools with the MCP server.
872
872
873
873
### Create your Boot Application
874
874
@@ -907,11 +907,11 @@ Let's now test your server from an existing MCP host, Claude for Desktop.
907
907
Claude for Desktop is not yet available on Linux.
908
908
</Note>
909
909
910
-
First, make sure you have Claude for Desktop installed.
910
+
First, make sure you have Claude for Desktop installed.
911
911
[You can install the latest version here.](https://claude.ai/download) If you already have Claude for Desktop, **make sure it's updated to the latest version.**
912
912
913
-
We'll need to configure Claude for Desktop for whichever MCP servers you want to use.
914
-
To do this, open your Claude for Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor.
913
+
We'll need to configure Claude for Desktop for whichever MCP servers you want to use.
914
+
To do this, open your Claude for Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor.
915
915
Make sure to create the file if it doesn't exist.
916
916
917
917
For example, if you have [VS Code](https://code.visualstudio.com/) installed:
@@ -929,7 +929,7 @@ For example, if you have [VS Code](https://code.visualstudio.com/) installed:
929
929
</Tab>
930
930
</Tabs>
931
931
932
-
You'll then add your servers in the `mcpServers` key.
932
+
You'll then add your servers in the `mcpServers` key.
933
933
The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured.
934
934
935
935
In this case, we'll add our single weather server like so:
@@ -1033,7 +1033,7 @@ For more information, see the [MCP Client Boot Starters](https://docs.spring.io/
1033
1033
1034
1034
## More Java MCP Server examples
1035
1035
1036
-
The [starter-webflux-server](https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/weather/starter-webflux-server) demonstrates how to create a MCP server using SSE transport.
1036
+
The [starter-webflux-server](https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/weather/starter-webflux-server) demonstrates how to create a MCP server using SSE transport.
1037
1037
It showcases how to define and register MCP Tools, Resources, and Prompts, using the Spring Boot's auto-configuration capabilities.
0 commit comments