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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -765,7 +765,7 @@ For manual MCP Server implementation, refer to the [MCP Server Java SDK document
765
765
766
766
### Set up your environment
767
767
768
-
Use the [Spring Initizer](https://start.spring.io/) to bootstrat the project.
768
+
Use the [Spring Initializer](https://start.spring.io/) to bootstrap the project.
769
769
770
770
You will need to add the following dependencies:
771
771
@@ -795,7 +795,7 @@ You will need to add the following dependencies:
795
795
</Tab>
796
796
</Tabs>
797
797
798
-
Then configure your application by setting the applicaiton properties:
798
+
Then configure your application by setting the application properties:
799
799
800
800
<CodeGroup>
801
801
@@ -822,7 +822,7 @@ Now let's dive into building your server.
822
822
823
823
### Weather Service
824
824
825
-
Let's implement a [WeatheService.java](https://github.com/spring-projects/spring-ai-examples/blob/main/model-context-protocol/weather/starter-stdio-server/src/main/java/org/springframework/ai/mcp/sample/server/WeatherService.java) that uses a REST client to query the data from the National Weather Service API:
825
+
Let's implement a [WeatherService.java](https://github.com/spring-projects/spring-ai-examples/blob/main/model-context-protocol/weather/starter-stdio-server/src/main/java/org/springframework/ai/mcp/sample/server/WeatherService.java) that uses a REST client to query the data from the National Weather Service API:
826
826
827
827
```java
828
828
@Service
@@ -865,12 +865,12 @@ public class WeatherService {
865
865
}
866
866
```
867
867
868
-
The `@Service` annotation with auto-register the service in your applicaiton context.
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
871
The auto-configuration will automatically register these tools with the MCP server.
872
872
873
-
### Create your Boot Applicaiton
873
+
### Create your Boot Application
874
874
875
875
```java
876
876
@SpringBootApplication
@@ -887,7 +887,7 @@ public class McpServerApplication {
887
887
}
888
888
```
889
889
890
-
Uses the the `MethodToolCallbackProvider` utils to convert the `@Tools` into actionalble callbackes used by the MCP server.
890
+
Uses the the `MethodToolCallbackProvider` utils to convert the `@Tools` into actionable callbacks used by the MCP server.
When you start your client applicaiton, the auto-configuration will create, automatically MCP clients from the claude_desktop_config.json.
1030
+
When you start your client application, the auto-configuration will create, automatically MCP clients from the claude_desktop_config.json.
1031
1031
1032
1032
For more information, see the [MCP Client Boot Starters](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-server-boot-client-docs.html) reference documentation.
Copy file name to clipboardExpand all lines: sdk/java/mcp-server.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The MCP Server is a foundational component in the Model Context Protocol (MCP) a
23
23
24
24
<Tip>
25
25
The [Spring-AI MCP Server](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-server-boot-starter-docs.html) integration extends the MCP Java SDK to
26
-
provide auto-configuration for MCP servdr functionality in Spring Boot applications.
26
+
provide auto-configuration for MCP server functionality in Spring Boot applications.
27
27
</Tip>
28
28
29
29
The server supports both synchronous and asynchronous APIs, allowing for flexible integration in different application contexts.
@@ -246,7 +246,7 @@ var capabilities = ServerCapabilities.builder()
246
246
.resources(false, true) // Resource support with list changes notifications
247
247
.tools(true) // Tool support with list changes notifications
248
248
.prompts(true) // Prompt support with list changes notifications
249
-
.logging() // Enable logging support (enabled by default with loging level INFO)
249
+
.logging() // Enable logging support (enabled by default with logging level INFO)
250
250
.build();
251
251
```
252
252
@@ -293,7 +293,7 @@ var schema = """
293
293
}
294
294
}
295
295
""";
296
-
var syncToolSpecification =newMcpServerFeatures.SyncToolSpecificaiton(
296
+
var syncToolSpecification =newMcpServerFeatures.SyncToolSpecification(
0 commit comments