Feature Request: Allow for defining MCP server connections
Is your feature request related to a problem? Please describe. It's a bit of a pain that the client needs to provide the connection details through the Chainlit interface. In particular when the MCP server definitions that the interface is intended for are known upfront.
Describe the solution you'd like My ideal solution would be to add support for defining MCP server configurations in the Python code, as they are known at runtime for my specific use-case and available from where the client is running. For example, this could be achieved with Pydantic AI and Streamlit (see here).
Describe alternatives you've considered An alternative solution would be to allow a user to provide a set of MCP server descriptions via a config file orJSON-formatted input (or similar), such as with Claude Desktop. This would allow for most flexibility, but is less optimal for my use-case where the MCP server definitions are known in advance, as it requires an extra step from the user.
Source: Chainlit/chainlit