Declare servers once in .cfconfig.json and reference them by name.
// .cfconfig.json
// {
// "mcpServers": {
// "files": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"] },
// "remote": { "url": "https://example.com/mcp" }
// }
// }
client = mcpClient( "files" );
tools = client.tools();
client.close();
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.