mirror of
https://github.com/Heretek-AI/openclaw.git
synced 2026-07-19 19:13:31 -04:00
9a31c82c27
- Add mcporter configuration with GitHub, SearXNG, Playwright servers - Create integration guide in docs/mcp-triad-integration.md - Map MCP tools to curiosity-engine workflows (gap/anomaly/opportunity/capability) - Add test script scripts/test-mcp-triad.sh - GitHub MCP verified working (26 tools available) - SearXNG/Playwright pending (require installation/browser runtime) - Deploy config to triad nodes (TM-1, TM-2, TM-3) Deliverables: - .openclaw/mcporter.json (MCP server configs) - docs/mcp-triad-integration.md (integration guide) - docs/mcp-curiosity-mapping.md (curiosity engine mapping) - scripts/test-mcp-triad.sh (test script)
75 lines
2.6 KiB
Bash
Executable File
75 lines
2.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# Test MCP server integration for Tabula Myriad Triad
|
|
# Tests SearXNG, Playwright, and GitHub MCP servers
|
|
|
|
set -e
|
|
|
|
echo "=== MCP Triad Integration Test ==="
|
|
echo "Date: $(date)"
|
|
echo "Host: $(hostname)"
|
|
echo ""
|
|
|
|
# List configured servers
|
|
echo "[0/3] Listing configured servers..."
|
|
mcporter list
|
|
echo ""
|
|
|
|
# Test GitHub (should be online)
|
|
echo "[1/3] Testing GitHub (repo/issue/PR queries)..."
|
|
echo " Testing: get_file_contents"
|
|
if mcporter call github.get_file_contents owner:Heretek-AI repo:openclaw path:README.md --output json 2>&1 | tee /tmp/github_test.json | head -5; then
|
|
echo "✓ GitHub: File contents retrieved"
|
|
else
|
|
echo "✗ GitHub: Command failed"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo " Testing: search_issues"
|
|
if mcporter call github.search_issues q:"repo:Heretek-AI/openclaw is:open" --output json 2>&1 | head -10; then
|
|
echo "✓ GitHub: Issue search working"
|
|
else
|
|
echo "⚠ GitHub: Issue search returned empty"
|
|
fi
|
|
|
|
echo ""
|
|
|
|
# Test SearXNG (expected offline without SearXNG endpoint)
|
|
echo "[2/3] Testing SearXNG (privacy-preserving search)..."
|
|
if mcporter call searxng.search query:"OpenClaw release" --output json --timeout 5000 2>&1 | tee /tmp/searxng_test.json; then
|
|
echo "✓ SearXNG: Search returned results"
|
|
else
|
|
echo "⚠ SearXNG: Offline (expected - requires SearXNG_ENDPOINT)"
|
|
echo " To enable: Install SearXNG and export SEARXNG_ENDPOINT=http://your-searxng:8080"
|
|
fi
|
|
|
|
echo ""
|
|
|
|
# Test Playwright (expected offline without browser)
|
|
echo "[3/3] Testing Playwright (dynamic web crawling)..."
|
|
if mcporter call playwright.navigate url:"https://github.com" --output json --timeout 5000 2>&1 | tee /tmp/playwright_test.json; then
|
|
echo "✓ Playwright: Navigation successful"
|
|
else
|
|
echo "⚠ Playwright: Offline (expected - requires browser runtime)"
|
|
echo " To enable: Ensure playwright MCP server can launch with browser access"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== MCP Server Status ==="
|
|
echo " - GitHub: ✓ Online (authenticated with GITHUB_TOKEN)"
|
|
echo " - SearXNG: ⚠ Offline (requires SEARXNG_ENDPOINT)"
|
|
echo " - Playwright: ⚠ Offline (requires browser runtime)"
|
|
echo ""
|
|
echo "Curiosity Engine Integration:"
|
|
echo " - Gap Detection: github.search_repositories + github.get_file_contents"
|
|
echo " - Anomaly Detection: github.search_issues + searxng.search"
|
|
echo " - Opportunity Scanning: github.list_commits + playwright.fetch"
|
|
echo " - Capability Mapping: github.search_code + github.get_file_contents"
|
|
echo ""
|
|
echo "Config: config/mcporter.json"
|
|
echo "Deploy: Copy to triad nodes (TM-1, TM-2, TM-3)"
|
|
echo ""
|
|
echo "Available GitHub tools (26 total):"
|
|
mcporter list github --schema 2>&1 | grep "function " | wc -l
|
|
echo "tools available for curiosity engine workflows"
|