chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

MCP support for more commands

Open Aki-community opened this issue 10 months ago • 4 comments

Is your feature request related to a problem? Please describe. It's related to MCP usage. When I add a local MCP tool, it says only 'npx' or 'uvx' commands are allowed.

Describe the solution you'd like Please don't set limitation on this or add a configuration to allow cusomized mcp command. Many local mcp servers doesn't onboard to npx or uvx.

Aki-community avatar Mar 14 '25 16:03 Aki-community

What command are you using out of curiosity?

willydouhard avatar Mar 14 '25 23:03 willydouhard

npm/node/python and customized command. For example, I've developed a mcp server and I have shared it with hundreds of people in my company. They installed the tool through a command similar to pip install xxx. Then they only need to add xxx as command in their mcp clients.

zhou-san avatar Mar 15 '25 00:03 zhou-san

If it's security concern, it would be nice to be able to config the allow list.

zhou-san avatar Mar 15 '25 00:03 zhou-san

@Ryuya1995 , you can update .chainlit/config.toml and add the commands to this list:

[features.mcp.stdio]
    enabled = true
    # Only the executables in the allow list can be used for MCP stdio server.
    # Only need the base name of the executable, e.g. "npx", not "/usr/bin/npx".
    # Please don't comment this line for now, we need it to parse the executable name.
    allowed_executables = [ "npx", "uvx", "python" ]

ainamdar-ag avatar Apr 25 '25 09:04 ainamdar-ag