sangkyoonnam commented on issue #606:
URL: https://github.com/apache/flink-agents/issues/606#issuecomment-6671469641

   As planned in my Oct 26 comment, the branch is ready, and it keeps 
yanand0909's #639 commit under their authorship.
   
   This moves MCP tool and prompt discovery out of `AgentPlan` construction 
(Java) and `agent_plan._add_mcp_server` (Python) into operator startup. 
Following weiqingy's lifecycle review on #639, discovery now registers the 
server itself in `ResourceCache`. The name checks (including `_subagent_`) now 
run at startup. Startup discovery errors now include the server name. I haven't 
reproduced the empty-discovery lifecycle failure or tested an actual 
unreachable-server timeout, and I haven't written a test for YAML-declared 
servers (#1303) yet.
   
   I ran each command below three times with the same result. The first command 
runs a new test in my branch, `test_mcp_resource_discovery.py`, so it isn't on 
main yet. That test only failed before the change on the missing module import, 
so that's not a behavior repro.
   
   ```sh
   python/.venv/bin/python -m pytest 
python/flink_agents/runtime/tests/test_mcp_resource_discovery.py -q --rootdir 
python  # new test on the branch, 9 passed (3/3)
   python/.venv/bin/python -m pytest 
python/flink_agents/plan/tests/test_agent_plan.py 
python/flink_agents/integrations/mcp/tests/test_mcp.py -q --rootdir python  # 
33 passed (3/3)
   mvn -o -pl plan,runtime test 
-Dtest='JavaMCPResourceDiscoveryTest,ActionExecutionOperatorTest#testOpen*,AgentPlanMCPDeferredDiscoveryTest'
 -Dsurefire.failIfNoSpecifiedTests=false  # 15 tests, 0 failures (3/3)
   ```
   
   Could you assign this to me so I can open the PR for the next release?


-- 
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