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 11, 2026. It is now read-only.
According to the documentation, McpAsyncRequestContext should be supported for @McpPrompt.
But when we add a parameter of type McpAsyncRequestContext to a method annotated with @McpPrompt, it is turned into a prompt argument.
Might this be caused by this code, which does not check for McpAsyncRequestContext (nor McpSyncRequestContext either, for that matter), but only for the deprecated McpAsyncServerExchange?
if (McpAsyncServerExchange.class.isAssignableFrom(parameter.getType())
Also, I am not sure this code even works for McpAsyncServerExchange, because it uses its own private "helper interface" instead of the real McpAsyncServerExchange one.
According to the documentation, McpAsyncRequestContext should be supported for @McpPrompt.
But when we add a parameter of type McpAsyncRequestContext to a method annotated with @McpPrompt, it is turned into a prompt argument.
Might this be caused by this code, which does not check for McpAsyncRequestContext (nor McpSyncRequestContext either, for that matter), but only for the deprecated McpAsyncServerExchange?
mcp-annotations/mcp-annotations/src/main/java/org/springaicommunity/mcp/adapter/PromptAdapter.java
Line 66 in b8aea21
Also, I am not sure this code even works for McpAsyncServerExchange, because it uses its own private "helper interface" instead of the real McpAsyncServerExchange one.