-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi, this project looks really cool and promising. From the examples, it seems especially useful when you’re creating your own tools as small JS apps.
I’m wondering about a slightly different use case: dynamically wrapping existing MCP servers instead of building new ones.
For example, there is already a GitHub MCP server available. Normally, you would register it conventionally and load all of its tools into the LLM context up front.
Instead, is it possible to do something like this:
-
Initially register only a lightweight “meta” tool with the LLM that says:
“There is a GitHub MCP available. If you need to perform GitHub-related actions, dynamically register it.”
-
Then, when the user prompt is something like:
“Create an issue on GitHub…”
The system would:
- Dynamically register/connect to the GitHub MCP at runtime
- Trigger its OAuth flow (popup authentication handled already by the GitHub MCP)
- Fetch its available tools after authentication
- Invoke the appropriate tool (e.g., create issue)
In other words, can dynamic-mcp act as a lazy loader or runtime registry for already-existing MCP servers, instead of preloading all tools into the LLM context?
Is this supported today? Are there any examples of this pattern?