You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 03:17:49 UTC

[PR] test(ai): cover McpServerImpl registry delegation [rocketmq-dashboard]

yyqdbngt opened a new pull request, #3260:
URL: https://github.com/apache/rocketmq-dashboard/pull/3260

   ## Summary
   
   Adds `McpServerImplTest`, a first unit test for the `McpServerRegistry` implementation that maps MCP registry calls onto the tool gateway and tool catalog. `ToolGatewayService` and `ToolCatalog` are mocked.
   
   Coverage:
   - `listTools()` discovers tools across the whole dashboard (null cluster scope);
   - `listTools(clusterId)` scopes discovery to a cluster;
   - `execute(name, input)` delegates with its input intact;
   - the catalog metadata (`version`, `digest`, `minimumClientVersion`) is exposed for capability negotiation.
   
   ## Why
   
   The MCP registry is the contract surface external MCP clients talk to; the delegation mapping had no direct test.
   
   ## Testing
   
   `mvn -B test -Dtest=McpServerImplTest` — 4/4 pass; checkstyle (validate) clean.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(ai): cover McpServerImpl registry delegation [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3260: test(ai): cover McpServerImpl registry delegation
URL: https://github.com/apache/rocketmq-dashboard/pull/3260


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org