wenjin272 commented on issue #1452:
URL: https://github.com/apache/flink-agents/issues/1452#issuecomment-7162517067

   Thanks for reporting this. I think we should complete Java MCP support in 
YAML rather than reject these declarations earlier.
   
   We already have a native Java MCP implementation. The current limitation is 
in the declaration path: Java MCP servers can be registered through 
`@MCPServer`, but the `Agent.addResource` path used by YAML still rejects them. 
Tool and prompt discovery now happens at runtime based on the registered 
providers, so it should be possible to reuse that mechanism.
   
   Could we update the title to:
   
   **[Feature][api] Support Java MCP server declarations in YAML for both Java 
and Python loaders**
   
   The scope would include:
   - Resolving `clazz: mcp` with `type: java` in both loaders.
   - Registering the appropriate Java resource provider, including from Python 
plans.
   - Verifying tool/prompt discovery and usage through both language entry 
points.
   - Checking the JDK 17+ requirement against the actual execution environment, 
rather than rejecting Java MCP unconditionally in the Python loader.
   
   Please also cover shared and agent-local declarations in the tests. Existing 
Java decision-model support should remain unchanged.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to