This example demonstrates how to load an MCP Any server configuration from a remote URL. This is useful for sharing and reusing configurations without having to manually copy and paste files.
Running the Example
Start the mock server:
In a separate terminal, run the mock server to serve the remote configuration file:
go run mock_server.go
Run the MCP Any server:
In another terminal, run the MCP Any server with the remote configuration URL:
make run ARGS="--config-paths http://localhost:8080/config.yaml"
List the available tools:
You should see the hello-remote tool from the remote configuration file in the list of available tools: