Class InMemorySyncCompletionRepository

java.lang.Object
org.springframework.ai.mcp.modern.InMemorySyncCompletionRepository
All Implemented Interfaces:
io.modelcontextprotocol.modern.server.feature.McpSyncCompletionRepository

public final class InMemorySyncCompletionRepository extends Object implements io.modelcontextprotocol.modern.server.feature.McpSyncCompletionRepository
An in-memory McpSyncCompletionRepository that dispatches completion/complete to the SyncCompletionRegistration registered for the request's prompt or resource reference.
Since:
2.1.0
Author:
Christian Tzolov
  • Method Details

    • builder

    • add

      public void add(SyncCompletionRegistration registration)
    • remove

      public boolean remove(io.modelcontextprotocol.modern.McpSchema.CompleteReference reference)
    • complete

      public io.modelcontextprotocol.modern.McpSchema.CompleteResult complete(io.modelcontextprotocol.modern.server.McpRequestContext ctx, io.modelcontextprotocol.modern.McpSchema.CompleteRequest request)
      Specified by:
      complete in interface io.modelcontextprotocol.modern.server.feature.McpSyncCompletionRepository