Files
ruflo/v2/tests/docker-test-stdio.sh
T
rUvandClaude Opus 4.5 1b6a1971f7 feat(v3): add comprehensive v3 implementation plans and swarm architecture
- Reorganize v3/ into implementation/ subfolders:
  - planning/, architecture/, migration/, integration/
  - security/, adrs/, research/, swarm-plans/

- Add 15-agent concurrent swarm implementation plans:
  - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases
  - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities
  - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology
  - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x)
  - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback
  - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies

- Update .claude/settings.json with proper hooks format
- Add bash aliases for claude --dangerously-skip-permissions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 15:40:51 +00:00

52 lines
1.9 KiB
Bash
Executable File

#!/bin/bash
# Docker test for MCP stdio mode fix
# This runs in a clean container to verify the npm package works correctly
set -e
echo "🐳 Testing claude-flow@2.7.8 MCP stdio mode in Docker..."
echo ""
# Create a temporary Dockerfile
cat > /tmp/Dockerfile.claude-flow-test <<'EOF'
FROM node:20-alpine
# Install claude-flow@2.7.8
RUN npm install -g claude-flow@2.7.8
# Create test script
RUN echo '#!/bin/sh' > /test-stdio.sh && \
echo 'echo "Testing MCP stdio mode..."' >> /test-stdio.sh && \
echo 'timeout 2s claude-flow mcp start > stdout.txt 2> stderr.txt || true' >> /test-stdio.sh && \
echo 'echo ""' >> /test-stdio.sh && \
echo "echo '=== STDOUT (should be clean JSON-RPC) ==='" >> /test-stdio.sh && \
echo 'cat stdout.txt' >> /test-stdio.sh && \
echo 'echo ""' >> /test-stdio.sh && \
echo "echo '=== STDERR (should have startup messages) ==='" >> /test-stdio.sh && \
echo 'head -5 stderr.txt' >> /test-stdio.sh && \
echo 'echo ""' >> /test-stdio.sh && \
echo 'if grep -q "✅ Starting" stdout.txt; then' >> /test-stdio.sh && \
echo ' echo "❌ FAIL: Startup message found on stdout"' >> /test-stdio.sh && \
echo ' exit 1' >> /test-stdio.sh && \
echo 'elif grep -q "jsonrpc" stdout.txt; then' >> /test-stdio.sh && \
echo ' echo "✅ PASS: JSON-RPC on stdout, startup messages on stderr"' >> /test-stdio.sh && \
echo ' exit 0' >> /test-stdio.sh && \
echo 'else' >> /test-stdio.sh && \
echo ' echo "⚠️ WARNING: No JSON-RPC found (server may not have started)"' >> /test-stdio.sh && \
echo ' exit 1' >> /test-stdio.sh && \
echo 'fi' >> /test-stdio.sh && \
chmod +x /test-stdio.sh
CMD ["/test-stdio.sh"]
EOF
# Build and run the test
docker build -t claude-flow-stdio-test -f /tmp/Dockerfile.claude-flow-test /tmp
echo ""
echo "Running test in container..."
docker run --rm claude-flow-stdio-test
echo ""
echo "✅ Docker test completed successfully!"