Add MCP bridge configuration as STEP 0 in next session
- Install and configure MCP bridge in agent image - Bridge connects Claude Code stdio <-> HTTP endpoints - Verification steps included Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,41 @@ kubectl get pods -n agents
|
||||
|
||||
---
|
||||
|
||||
## 🎯 PASO 0: Configurar MCP Bridge en Agente (15 min)
|
||||
|
||||
### 0.1 Incluir MCP bridge en imagen del agente
|
||||
|
||||
**Modificar** `agents/Dockerfile` para copiar archivos MCP:
|
||||
|
||||
```dockerfile
|
||||
# ... después de instalar Claude Code
|
||||
|
||||
# Copy MCP bridge server and config
|
||||
COPY mcp-bridge-server.js /workspace/mcp-bridge-server.js
|
||||
COPY claude-code-config.json /root/.config/claude/config.json
|
||||
RUN chmod +x /workspace/mcp-bridge-server.js
|
||||
|
||||
# ...
|
||||
```
|
||||
|
||||
### 0.2 Verificar MCP funciona
|
||||
|
||||
**En terminal del agente**:
|
||||
|
||||
```bash
|
||||
# Entrar a claude.fuq.tv o kubectl exec al pod
|
||||
claude
|
||||
/mcp
|
||||
# Debería mostrar: "aiworker" server con 5 tools
|
||||
|
||||
# Probar una herramienta
|
||||
/mcp aiworker get_next_task {"agentId":"test"}
|
||||
```
|
||||
|
||||
**Si no funciona**: Configuración manual en `AGENT-ACCESS.md`
|
||||
|
||||
---
|
||||
|
||||
## 🎯 PASO 1: Agregar Auth a Usuarios (30 min)
|
||||
|
||||
### 1.1 Extender schema con relación user → agents
|
||||
|
||||
Reference in New Issue
Block a user