Skip to content

Commit 79d9701

Browse files
xion-chokimohiomanbo
authored andcommitted
fix: correct name typo from 'Specificaiton' to 'Specification'
Signed-off-by: Changho Kim <[email protected]>
1 parent 268a7fb commit 79d9701

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

mcp/common/src/test/java/org/springframework/ai/mcp/ToolUtilsTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void constructorShouldBePrivate() throws Exception {
9797
}
9898

9999
@Test
100-
void toSyncToolSpecificaitonShouldConvertSingleCallback() {
100+
void toSyncToolSpecificationShouldConvertSingleCallback() {
101101

102102
ToolCallback callback = createMockToolCallback("test", "success");
103103

@@ -138,7 +138,7 @@ void toSyncToolSpecificationShouldConvertMultipleCallbacks() {
138138
}
139139

140140
@Test
141-
void toAsyncToolSpecificaitonShouldConvertSingleCallback() {
141+
void toAsyncToolSpecificationShouldConvertSingleCallback() {
142142
ToolCallback callback = createMockToolCallback("test", "success");
143143

144144
AsyncToolSpecification toolSpecification = McpToolUtils.toAsyncToolSpecification(callback);
@@ -160,10 +160,10 @@ void toAsyncToolSpecificaitonShouldConvertSingleCallback() {
160160
void toAsyncToolSpecificationShouldHandleError() {
161161
ToolCallback callback = createMockToolCallback("test", new RuntimeException("error"));
162162

163-
AsyncToolSpecification toolSpecificaiton = McpToolUtils.toAsyncToolSpecification(callback);
163+
AsyncToolSpecification toolSpecification = McpToolUtils.toAsyncToolSpecification(callback);
164164

165-
assertThat(toolSpecificaiton).isNotNull();
166-
StepVerifier.create(toolSpecificaiton.call().apply(mock(McpAsyncServerExchange.class), Map.of()))
165+
assertThat(toolSpecification).isNotNull();
166+
StepVerifier.create(toolSpecification.call().apply(mock(McpAsyncServerExchange.class), Map.of()))
167167
.assertNext(result -> {
168168
TextContent content = (TextContent) result.content().get(0);
169169
assertThat(content.text()).isEqualTo("error");

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-helpers.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ Async::
115115
[source,java]
116116
----
117117
List<ToolCallback> toolCallbacks = // obtain tool callbacks
118-
List<AsyncToolSpecification> asyncToolSpecificaitons = McpToolUtils.toAsyncToolSpecifications(toolCallbacks);
118+
List<AsyncToolSpecification> asyncToolSpecifications = McpToolUtils.toAsyncToolSpecifications(toolCallbacks);
119119
----
120120
+
121121
then you can use the `McpServer.AsyncSpecification` to register the tool specifications:
122122
+
123123
[source,java]
124124
----
125125
McpServer.AsyncSpecification asyncSpec = ...
126-
asyncSpec.tools(asyncToolSpecificaitons);
126+
asyncSpec.tools(asyncToolSpecifications);
127127
----
128128
======
129129

0 commit comments

Comments
 (0)