Skip to main content
Glama
mako10k

Web Proxy MCP Server

by mako10k

proxy_update_target

Modify domain settings in the web proxy server to adjust monitoring parameters like header capture, body capture, and enable/disable status.

Instructions

Update target domain configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain to update
descriptionNoNew description
enabledNoEnable/disable target
captureHeadersNoEnable/disable header capture
captureBodyNoEnable/disable body capture

Implementation Reference

  • Tool handler for proxy_update_target: prepares updates from args and calls targetManager.updateTarget, returns success message.
    case 'proxy_update_target': const updates = {}; if ('enabled' in args) updates.enabled = args.enabled; if ('description' in args) updates.description = args.description; if ('captureHeaders' in args) updates.captureHeaders = args.captureHeaders; if ('captureBody' in args) updates.captureBody = args.captureBody; const updated = this.targetManager.updateTarget(args.domain, updates); return { content: [{ type: "text", text: `Target updated: ${args.domain}\nStatus: ${updated ? 'success' : 'not found'}\nUpdates: ${JSON.stringify(updates, null, 2)}` }] };
  • Input schema definition for proxy_update_target tool including properties and required fields.
    proxy_update_target: { name: "proxy_update_target", description: "Update target domain configuration", inputSchema: { type: "object", properties: { domain: { type: "string", description: "Domain to update" }, description: { type: "string", description: "New description" }, enabled: { type: "boolean", description: "Enable/disable target" }, captureHeaders: { type: "boolean", description: "Enable/disable header capture" }, captureBody: { type: "boolean", description: "Enable/disable body capture" } }, required: ["domain"] } },
  • Core updateTarget method in TargetManager class that applies configuration updates to the target domain and regenerates PAC file.
    updateTarget(domain, updates) { const target = this.targets.get(domain.toLowerCase()); if (!target) { return false; } // Apply updates if ('enabled' in updates) target.enabled = updates.enabled; if ('description' in updates) target.description = updates.description; if ('includeSubdomains' in updates) target.includeSubdomains = updates.includeSubdomains; if ('captureHeaders' in updates) target.captureHeaders = updates.captureHeaders; if ('captureBody' in updates) target.captureBody = updates.captureBody; target.lastModified = new Date(); this._updatePacFile(); return true; }

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

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