Skip to content

Commit 2078805

Browse files
kimsunghyun1995namsoo2
authored andcommitted
fix: typo specification (spring-projects#2791)
Signed-off-by: kimsunghyun <[email protected]> Signed-off-by: minsoo.nam <[email protected]>
1 parent ebac3b5 commit 2078805

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mcp/common/src/main/java/org/springframework/ai/mcp/McpToolUtils.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ public static String prefixedToolName(String prefix, String toolName) {
9393
}
9494

9595
/**
96-
* Converts a list of Spring AI tool callbacks to MCP synchronous tool specificaiton.
96+
* Converts a list of Spring AI tool callbacks to MCP synchronous tool specification.
9797
* <p>
9898
* This method processes multiple tool callbacks in bulk, converting each one to its
9999
* corresponding MCP tool specification while maintaining synchronous execution
100100
* semantics.
101101
* @param toolCallbacks the list of tool callbacks to convert
102-
* @return a list of MCP synchronous tool specificaiton
102+
* @return a list of MCP synchronous tool specification
103103
*/
104104
public static List<McpServerFeatures.SyncToolSpecification> toSyncToolSpecification(
105105
List<ToolCallback> toolCallbacks) {
@@ -113,7 +113,7 @@ public static List<McpServerFeatures.SyncToolSpecification> toSyncToolSpecificat
113113
* This is a varargs wrapper around {@link #toSyncToolSpecification(List)} for easier
114114
* usage when working with individual callbacks.
115115
* @param toolCallbacks the tool callbacks to convert
116-
* @return a list of MCP synchronous tool specificaiton
116+
* @return a list of MCP synchronous tool specification
117117
*/
118118
public static List<McpServerFeatures.SyncToolSpecification> toSyncToolSpecifications(
119119
ToolCallback... toolCallbacks) {
@@ -201,7 +201,7 @@ public static Optional<McpSyncServerExchange> getMcpExchange(ToolContext toolCon
201201
}
202202

203203
/**
204-
* Converts a list of Spring AI tool callbacks to MCP asynchronous tool specificaiton.
204+
* Converts a list of Spring AI tool callbacks to MCP asynchronous tool specification.
205205
* <p>
206206
* This method processes multiple tool callbacks in bulk, converting each one to its
207207
* corresponding MCP tool specification while adding asynchronous execution
@@ -217,7 +217,7 @@ public static List<McpServerFeatures.AsyncToolSpecification> toAsyncToolSpecific
217217

218218
/**
219219
* Convenience method to convert a variable number of tool callbacks to MCP
220-
* asynchronous tool specificaiton.
220+
* asynchronous tool specification.
221221
* <p>
222222
* This is a varargs wrapper around {@link #toAsyncToolSpecifications(List)} for
223223
* easier usage when working with individual callbacks.
@@ -264,13 +264,13 @@ public static McpServerFeatures.AsyncToolSpecification toAsyncToolSpecification(
264264
* This method enables Spring AI tools to be exposed as asynchronous MCP tools that
265265
* can be discovered and invoked by language models. The conversion process:
266266
* <ul>
267-
* <li>First converts the callback to a synchronous specificaiton</li>
267+
* <li>First converts the callback to a synchronous specification</li>
268268
* <li>Wraps the synchronous execution in a reactive Mono</li>
269269
* <li>Configures execution on a bounded elastic scheduler for non-blocking
270270
* operation</li>
271271
* </ul>
272272
* <p>
273-
* The resulting async specificaiton will:
273+
* The resulting async specification will:
274274
* <ul>
275275
* <li>Execute the tool without blocking the calling thread</li>
276276
* <li>Handle errors and results asynchronously</li>

0 commit comments

Comments
 (0)