curl --request POST \
--url http://localhost:8080/api/mcp/client \
--header 'Content-Type: application/json' \
--data '{
"name": "filesystem",
"connection_type": "stdio",
"connection_string": "https://api.example.com/mcp",
"stdio_config": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
],
"envs": [
"HOME",
"USER"
]
},
"tools_to_execute": [
"read_file",
"list_directory"
]
}'