File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ bearer token:
127127@Service
128128public class MyToolsService {
129129
130- // Note: you can also use Spring Security 's @Tool
130+ // Note: you can also use Spring AI 's @Tool
131131 @McpTool (name = " greeter" , description = " A tool that greets a user, by name" )
132132 @PreAuthorize (" isAuthenticated()" )
133133 public String greet (@ToolParam (description = " The name of the user" ) String name , ToolContext toolContext ) {
@@ -271,7 +271,7 @@ That data is passed through
271271` McpTransportContext ` ([ MCP docs] ( https://modelcontextprotocol.io/sdk/java/mcp-client#adding-context-information ) ).
272272To make that information available, you also need to add an ` AuthenticationMcpTransportContextProvider ` to your MCP Sync
273273Client.
274- Tying it all together:
274+ Tying it all together, taking ` OAuth2AuthorizationCodeSyncHttpRequestCustomizer ` as an example :
275275
276276``` java
277277
You can’t perform that action at this time.
0 commit comments