Skip to main content
Glama

proxy_remove_host_upstream

Remove per-host upstream proxy overrides to restore default proxy settings for specific hostnames in network traffic interception.

Instructions

Remove a per-host upstream proxy override.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostnameYesHostname to remove override for

Implementation Reference

  • The tool 'proxy_remove_host_upstream' is registered and implemented directly in this block. It calls 'proxyManager.removeHostUpstream' to perform the action.
    server.tool(
      "proxy_remove_host_upstream",
      "Remove a per-host upstream proxy override.",
      {
        hostname: z.string().describe("Hostname to remove override for"),
      },
      async ({ hostname }) => {
        const removed = await proxyManager.removeHostUpstream(hostname);
        if (!removed) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `No upstream override for '${hostname}'` }) }] };
        }
        return {
          content: [{
            type: "text",
            text: JSON.stringify({ status: "success", message: `Upstream override for '${hostname}' removed.` }),
          }],
        };
      },
    );
Install Server

Other Tools

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/yfe404/proxy-mcp'

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