Skip to content

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Sep 16, 2025

  • Replace @valuesource with @MethodSource for parameterized tests
  • Add clientsForTesting() methods to provide test arguments consistently
  • Remove hardcoded Spring-related labels from framework-agnostic mcp-test module
  • Move mcp-test's utility classes from io.modelcontextprotocol.utils to io.modelcontextprotocol.util (minor breaking change)

@tzolov tzolov added this to the 0.13.0 milestone Sep 16, 2025
static McpTransportContextExtractor<ServerRequest> TEST_CONTEXT_EXTRACTOR = (r) -> McpTransportContext
.create(Map.of("important", "value"));

static Stream<Arguments> getTestParameters() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider a more concrete name, like "clientsForTesting".


import java.util.stream.Stream;

import io.modelcontextprotocol.server.transport.WebFluxSseServerTransportProvider;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and potentially in other places there are some undesired imports like this one.

- Replace @valuesource with @MethodSource for parameterized tests
- Add clientsForTesting() methods to provide test arguments consistently
- Remove hardcoded Spring-related labels from framework-agnostic mcp-test module
- Move mcp-test's utility classes from io.modelcontextprotocol.utils to io.modelcontextprotocol.util

Signed-off-by: Christian Tzolov <[email protected]>
Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov force-pushed the improve-mcp-test-structure branch from e70da86 to cab0f01 Compare September 17, 2025 10:08
@tzolov tzolov merged commit 8ac7eae into modelcontextprotocol:main Sep 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants