apache / apache/flink-agents

[Feature] Dynamic load MCP tools and prompts in runtime.

Open
#458 2 comments 0 reactions 0 assignees View on GitHub
feature fixVersion/0.4.0 priority/major
Dominant language
Java
Stars
452
Forks
167
Avg merge
5d 9h
Merged PRs (30d)
49

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar.

### Description

Currently, we load tools and prompts provided by MCP server during the compile time, which requires connecting remote MCP server in compilation.
We anticipate the need to support dynamic loading and unloading of tools, and the MCP Server may also dynamically update prompts or tools. In this case, statically obtaining the list of prompts and tools at compile time has limitations.

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by tracing how tools and prompts from MCP servers are obtained during compilation, then identify the runtime entry points involved. Done means tools and prompts can be loaded and unloaded dynamically, and updates from the MCP server can be reflected without requiring compilation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ai
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.