MCP servers can communicate with clients using different connection protocols, each with its own advantages and use cases. This guide explains the three primary connection types supported by OmniMind:
Connection types are automatically inferred from your configuration file based on the parameters provided:
Copy
from omnimind import OmniMind# The connection type is automatically inferred based on your config fileagent = OmniMind(config_path="my_config.json")agent.run()
For example:
If your configuration includes command and args, an STDIO connection will be used
If your configuration has a url starting with http:// or https://, an HTTP connection will be used
This automatic inference simplifies the configuration process and ensures the appropriate connection type is used without requiring explicit specification.For more details on connection configuration, see the Configuration Guide.