Skip to content

Add in-memory repositories - #1322

Draft
Kehrlann wants to merge 3 commits into
mainfrom
dgarnier/in-memory-repo
Draft

Kehrlann wants to merge 3 commits into
mainfrom
dgarnier/in-memory-repo

Conversation

@Kehrlann

@Kehrlann Kehrlann commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Adds in-memory tool, prompt and resource repositories (sync and async) for the 2026-07-28 server, adapted from Spring AI. They support pagination, change notifications and resource templates.

var tools = InMemorySyncToolRepository.builder()
    .tool(McpSyncTool.of(tool, (ctx, req) -> ...))
    .changeBroadcaster(broadcaster)
    .build();

The conformance server and most test repositories now use them.

First stab at #1200 , users don't need to implement a repo anymore.

@Kehrlann
Kehrlann requested review from chemicL and tzolov November 9, 2026 17:17
@Kehrlann Kehrlann added enhancement New feature or request area/server modern v3 covering the 2026-07-28 spec labels Nov 9, 2026
@Kehrlann
Kehrlann force-pushed the dgarnier/in-memory-repo branch from 64537f7 to 62cebb6 Compare November 9, 2026 17:18
@Kehrlann
Kehrlann force-pushed the dgarnier/in-memory-repo branch from 62cebb6 to 1702ef3 Compare November 9, 2026 17:47

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/server enhancement New feature or request modern v3 covering the 2026-07-28 spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant