-
Hello There, Is it possible to register MCP servers within my extension. my extension contains an AI agent and should use some default MCP servers. What would be the injectable service or is there any? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
cc @sdirix |
Beta Was this translation helpful? Give feedback.
-
Hi! In case you are using the Theia IDE, then you can add MCP servers via preferences. Afterwards you can start them manually, or configure If you are implementing an own Theia extension, then you can do the same, but you also have additional options available:
Is that what you are looking for? Let me know in case you need more information. |
Beta Was this translation helpful? Give feedback.
I would inject the
MCPServerManager
in aFrontendApplicationContribution
orBackendApplicationContribution
and then manage your server there. This makes sure that your MCP server is added (and potentially started) on startup.Note that you can also contribute MCP servers via VS Code extensions. So if that is also of interest for you, then you could also go this route.