Skip to main content
Glama

interceptor_docker_detach

Remove proxy configuration from Docker containers and clean up injected files to restore original network settings after traffic interception.

Instructions

Remove proxy configuration from a Docker container and clean up injected files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
target_idYesTarget ID from interceptor_docker_attach

Implementation Reference

  • The tool 'interceptor_docker_detach' is registered and implemented in src/tools/interceptors.ts using server.tool. It calls interceptorManager.deactivate("docker", target_id) to perform the detachment.
    server.tool(
      "interceptor_docker_detach",
      "Remove proxy configuration from a Docker container and clean up injected files.",
      {
        target_id: z.string().describe("Target ID from interceptor_docker_attach"),
      },
      async ({ target_id }) => {
        try {
          await interceptorManager.deactivate("docker", target_id);
          return {
            content: [{
              type: "text",
              text: JSON.stringify({ status: "success", message: `Docker container ${target_id} detached.` }),
            }],
          };
        } catch (e) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] };
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