Package-level declarations

Types

Link copied to clipboard
class GetWifiInfoTool(context: Context) : McpTool

Reports the current WiFi connection. Requires ACCESS_WIFI_STATE; ssid/bssid also need ACCESS_FINE_LOCATION on API 26+ and are null (or filtered placeholder MAC) without it.

Link copied to clipboard

Lists saved WiFi network SSIDs via the legacy WifiManager.getConfiguredNetworks(). That API is deprecated on API 29+ and returns an empty list there (with an explanatory note); below 29 it needs location permission. Requires ACCESS_WIFI_STATE.

Link copied to clipboard
object WifiTools

Provider for WiFi read tools: GetWifiInfoTool and ListSavedNetworksTool. Requires ACCESS_WIFI_STATE and ACCESS_FINE_LOCATION (location gates SSID/BSSID on API 26+).