Skip to main content
Glama

set_proxy

Configure HTTP proxy settings on Android devices to debug network requests and analyze traffic during development.

Instructions

Set HTTP proxy for the device - useful for debugging network requests

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
portYes
device_serialNo

Implementation Reference

  • The implementation of the 'set_proxy' tool. This function is the handler that executes the tool logic by setting the global HTTP proxy settings on the Android device via ADB. It is automatically registered as an MCP tool via the @mcp.tool() decorator, which also infers the input schema from type hints.
    @mcp.tool() def set_proxy(host: str, port: int, device_serial: str | None = None) -> str: """Set HTTP proxy for the device - useful for debugging network requests""" return run_adb([ "shell", "settings", "put", "global", "http_proxy", f"{host}:{port}" ], device_serial)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulkr/r_adb_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server