section

Testing

Testing

Overview

Test plan for Web Intelligence MCP server covering all tools and integration points.

Test File

/opt/mcp-servers/web/tests/test_plan.md

Test URLs

Safe Test Targets

URL Purpose
https://example.com Basic static page
https://httpbin.org/html Simple HTML response
https://httpbin.org/links/10 Multiple links
https://httpbin.org/status/200 Status verification
https://httpbin.org/delay/2 Timeout testing

Why These URLs?

  • example.com - IANA reserved, always available
  • httpbin.org - Designed for HTTP testing
  • No rate limiting concerns
  • Predictable responses

Test Cases (17 Total)

Core Tools (5 tests)

  1. web.status - Returns server info
  2. web.crawl - Single URL crawl
  3. web.crawl - Multi-page with depth
  4. web.scrape - Single page content
  5. web.scrape - Error handling (404)

Content Pipeline (4 tests)

  1. web.to_markdown - Basic HTML
  2. web.to_markdown - Complex tables
  3. web.extract - CSS selector targeting
  4. web.clean - Script/style removal
  1. web.discover_links - Link extraction
  2. web.save_link - Single save
  3. web.save_discovered - Batch save

Research (3 tests)

  1. web.research - Basic depth
  2. web.research - Standard depth
  3. web.research - Deep with competitors

Integration (2 tests)

  1. Full pipeline: crawl → extract → save
  2. Contact enrichment simulation

Test Execution

Via Gateway

gateway.run([{server:'web', tool:'status', args:{}}])
gateway.run([{server:'web', tool:'scrape', args:{url:'https://example.com'}}])

Expected Results

  • All tools return structured JSON
  • Errors are handled gracefully
  • Timeouts don't crash server
  • Rate limiting is respected

Success Criteria

  • [ ] All 17 test cases pass
  • [ ] No unhandled exceptions
  • [ ] Response times within acceptable limits
  • [ ] Redis data persists correctly
  • [ ] Links integration verified
ID: ac466ff8 Path: Web Intelligence > Testing Updated: 2026-01-08T12:35:14