Skip to main content
Glama
mako10k

Web Proxy MCP Server

by mako10k

ssl_switch_ca

Change the Certificate Authority used by the Web Proxy MCP Server to manage SSL/TLS certificates for secure traffic monitoring.

Instructions

Switch to a different Certificate Authority

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caNameYesName of the CA to switch to

Implementation Reference

  • The MCP tool handler for 'ssl_switch_ca' that validates input, calls SSLManager.switchCA, and returns formatted success response.
    case 'ssl_switch_ca':
      const switchResult = await this.sslManager.switchCA(args.caName);
      return {
        content: [{
          type: "text",
          text: `๐Ÿ”„ Switched to CA: ${switchResult.caName}\n๐Ÿ“ CA Directory: ${switchResult.caDir}`
        }]
      };
  • JSON schema definition for the 'ssl_switch_ca' tool input validation.
    ssl_switch_ca: {
      name: "ssl_switch_ca",
      description: "Switch to a different Certificate Authority",
      inputSchema: {
        type: "object",
        properties: {
          caName: {
            type: "string",
            description: "Name of the CA to switch to"
          }
        },
        required: ["caName"]
      }
    },
  • Core implementation of CA switching logic in SSLManager class: updates current CA path, verifies existence, loads metadata, and returns new configuration.
    async switchCA(caName) {
      this.currentCA = caName;
      this.caDir = path.join(this.caBaseDir, this.currentCA);
      
      const caExists = await this._checkCAExists();
      if (!caExists) {
        throw new Error(`CA '${caName}' does not exist`);
      }
    
      await this._loadCAInfo();
      return { caName, caDir: this.caDir };
    }

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