Skip to content

MCP: 2026-07-28 core, legacy MCP as a deletable edge (#1671, #1670) - #1672

Open
jlouvel wants to merge 2 commits into
3.0from
feat/mcp-dual-era-client
Open

jlouvel wants to merge 2 commits into
3.0from
feat/mcp-dual-era-client

Keep legacy request ids, refuse sessionless server requests, bound se…

c2350ac
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 13, 2026 in 1m 1s

Annotations

Check warning on line 86 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/McpModernFeatures.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this method into "Tools".

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfvpQicrZCirpjl&open=AaHS5bfvpQicrZCirpjl&pullRequest=1672

Check warning on line 202 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/McpLegacyClient.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Mono>'

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfnpQicrZCirpjk&open=AaHS5bfnpQicrZCirpjk&pullRequest=1672

Check warning on line 98 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/RestletMcpClientTransport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Constructor has 9 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5banpQicrZCirpjb&open=AaHS5banpQicrZCirpjb&pullRequest=1672

Check failure on line 257 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/McpLegacyServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "params" 3 times.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfkpQicrZCirpjh&open=AaHS5bfkpQicrZCirpjh&pullRequest=1672

Check failure on line 317 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/McpClientAdapter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "stdio:" 3 times.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfypQicrZCirpjm&open=AaHS5bfypQicrZCirpjm&pullRequest=1672

Check warning on line 471 in org.restlet.ext.mcp/src/test/java/org/restlet/ext/mcp/McpDualEraClientTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bgUpQicrZCirpjr&open=AaHS5bgUpQicrZCirpjr&pullRequest=1672

Check warning on line 437 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/RestletMcpClientTransport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHUmTQxbmDfq4YYRXza&open=AaHUmTQxbmDfq4YYRXza&pullRequest=1672

Check warning on line 540 in org.restlet.ext.mcp/src/test/java/org/restlet/ext/mcp/McpServerAdapterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bgFpQicrZCirpjq&open=AaHS5bgFpQicrZCirpjq&pullRequest=1672

Check failure on line 173 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/McpLegacyServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "_meta" 3 times.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfkpQicrZCirpjf&open=AaHS5bfkpQicrZCirpjf&pullRequest=1672

Check failure on line 190 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/RestletMcpClientTransport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5banpQicrZCirpjd&open=AaHS5banpQicrZCirpjd&pullRequest=1672

Check failure on line 60 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/McpLegacyServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "listChanged" 3 times.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfkpQicrZCirpjg&open=AaHS5bfkpQicrZCirpjg&pullRequest=1672

Check failure on line 176 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/McpLegacyServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "instructions" 3 times.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfkpQicrZCirpje&open=AaHS5bfkpQicrZCirpje&pullRequest=1672

Check warning on line 312 in org.restlet.ext.mcp/src/test/java/org/restlet/ext/mcp/McpDualEraClientTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHUmTXEbmDfq4YYRXzb&open=AaHUmTXEbmDfq4YYRXzb&pullRequest=1672

Check warning on line 330 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/McpClientAdapter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfypQicrZCirpjn&open=AaHS5bfypQicrZCirpjn&pullRequest=1672

Check warning on line 132 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/RestletMcpClientTransport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Mono>'

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5banpQicrZCirpjc&open=AaHS5banpQicrZCirpjc&pullRequest=1672

Check failure on line 236 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/StdioMcpClientTransport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfmpQicrZCirpjj&open=AaHS5bfmpQicrZCirpjj&pullRequest=1672

Check warning on line 91 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/internal/legacy/StdioMcpClientTransport.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Mono>'

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfmpQicrZCirpji&open=AaHS5bfmpQicrZCirpji&pullRequest=1672

Check warning on line 375 in org.restlet.ext.mcp/src/main/java/org/restlet/ext/mcp/McpClientAdapter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "cleanup" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bfypQicrZCirpjo&open=AaHS5bfypQicrZCirpjo&pullRequest=1672

Check warning on line 229 in org.restlet.ext.mcp/src/test/java/org/restlet/ext/mcp/McpStdioTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaHS5bf8pQicrZCirpjp&open=AaHS5bf8pQicrZCirpjp&pullRequest=1672