Skip to main content
Glama
add-to-claude.sh1.14 kB
#!/bin/bash # Adicionar Docker MCP ao Claude Code CONFIG_FILE="$HOME/Library/Application Support/Claude/claude_desktop_config.json" echo "🔧 Adicionando Docker MCP ao Claude Code..." # Fazer backup cp "$CONFIG_FILE" "$CONFIG_FILE.backup" # Usar Python para modificar o JSON python3 << 'EOF' import json import os config_file = os.path.expanduser("~/Library/Application Support/Claude/claude_desktop_config.json") with open(config_file, 'r') as f: config = json.load(f) # Adicionar Docker MCP config['mcpServers']['docker'] = { "command": "/root/.claude/docker-mcp-py/start.sh" } # Adicionar RAG WebFetch se não existir if 'rag-webfetch' not in config['mcpServers']: config['mcpServers']['rag-webfetch'] = { "command": "/root/.claude/mcp-rag-server/start.sh" } # Salvar with open(config_file, 'w') as f: json.dump(config, f, indent=2) print("✅ Configuração atualizada!") EOF echo "" echo "📋 Servidores MCP configurados:" echo " - docker: Gerenciamento de containers Docker" echo " - rag-webfetch: Cache RAG local" echo "" echo "⚠️ Reinicie o Claude Code para aplicar as mudanças!"

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/diegofornalha/docker-mcp-py'

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