Commit Graph

1 Commits (c50e583300a493093fe74766ff9cc8ff43104ad6)

Author SHA1 Message Date
Marcus Sanatan c50e583300
Add distribution settings for Asset Store vs git defaults (#404)
* Add distribution settings for Asset Store vs git defaults

Introduce McpDistributionSettings ScriptableObject to configure different defaults for Asset Store and git distributions without code forking. Add skipSetupWindowWhenRemoteDefault flag to bypass setup wizard when shipping with hosted MCP URL. Replace hardcoded localhost:8080 defaults with configurable defaultHttpBaseUrl from distribution settings in HttpEndpointUtility and WebSocketTransportClient.

* Improve local address detection in McpDistributionSettings with comprehensive IP range checks

Replace simple string-based localhost/127.0.0.1 checks with robust IsLocalAddress method that validates loopback addresses, private IPv4 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16), IPv6 link-local and loopback addresses, and .local hostnames using proper URI parsing and IPAddress validation.

* Fix error
2025-11-27 22:10:21 -04:00