Skip to content

Project Tracker

Pummelchen edited this page Sep 11, 2026 · 113 revisions

Project Tracker

Status of work on MCPSearch. Updated after each push.

Last updated: commit 15eeac5 — "Fix error misattribution, silent provider fallback and double discount".

Legend: ✅ done · 🔧 open · ⚠️ known limitation · 💡 idea


Done

Foundation

  • ✅ Swift 6.3.3 package, strict concurrency (language mode 6), zero build warnings.
  • ✅ MCP stdio server on SDK 0.12.1 with web_search, web_open, web_search_status.
  • ✅ SearchProvider abstraction; MCP layer knows nothing about any vendor.
  • ✅ Weighted Reciprocal Rank Fusion with per-domain diversity capping.
  • ✅ Deterministic URL canonicalization used as the dedup key.
  • ✅ Circuit breakers, token-bucket rate limiting, retry with jitter, response caching.
  • ✅ Three-layer SSRF defence for web_open (lexical, resolution, per-hop redirect).
  • ✅ Nine search adapters plus Jina, each verified against live provider documentation.

Repository hygiene (commit ae65097)

  • ✅ Reconciliation with the GitHub repository: MIT LICENSE preserved, README retitled to match the repo, branch renamed to main, pushed.
  • ✅ No token stored in .git/config; pushes authenticate through the keychain.

Correctness fixes from the documentation audit (commit 15eeac5)

  • ✅ web_open no longer blames a search provider for fetch failures (SearchError.fetchFailed).
  • ✅ WebFetcher no longer discards the real fetch error.
  • ✅ Startpage parse failures no longer reported as DuckDuckGo.
  • ✅ provider=<x> no longer silently degrades to auto-selection.
  • ✅ Removed a double-applied aggregator discount that squared it to 0.49.
  • ✅ Removed four try! sites from the server.
  • ✅ End-to-end tests made hermetic (they inherited ambient API keys).
  • ✅ Provider enum pinned against ProviderID so it cannot drift.

Open — code

  • 🔧 Per-result upstream-engine attribution. Aggregators are discounted, but a URL returned by both Brave and a SearXNG instance that queried Brave still gets a (reduced) second vote instead of collapsing to one independent signal. SearXNG already exposes a per-result engine, which is currently discarded. Clean fix: carry an optional upstreamEngines on SearchResult, set it from the SearXNG adapter, and fold same-family contributions during clustering.
  • 🔧 Adapter test coverage gaps. Startpage has only configuration/parsing coverage; Open Web Search, Parallel Search MCP and Jina Search have no adapter tests. Add contract tests, especially for [[String]] unresponsive_engines and the Parallel excerpts shape.
  • 🔧 JinaSearchProvider is wired but unreachable. SearchPipelineFactory constructs it when JINA_API_KEY is set, but the registry excludes .jina from selection. Either make it a selectable opt-in provider or stop constructing it.
  • 🔧 URLError.localizedDescription reaches last_error. It is surfaced through web_search_status and providers_failed. Mojeek carries its key in the query string, so the risk of a credential appearing in a diagnostic is unverified but not eliminated. Prefer a curated reason string over the platform description.
  • 🔧 Eight force-unwrapped static URL literals in provider adapters (e.g. URL(string: "https://api.tavily.com/search")!). Safe in practice, but they are the only remaining force unwraps in production code.

Open — process

  • 🔧 CI. No GitHub Actions workflow exists. Add build + test on push and pull request, running with a scrubbed environment.
  • 🔧 Scheduled provider smoke test. Free tiers are not deterministic, so live provider checks belong in a scheduled job, not on every pull request.
  • 🔧 First tagged release once CI is green.

Known limitations

  • ⚠️ web_open does not execute JavaScript. JS-heavy pages depend on the Jina Reader fallback.
  • ⚠️ Startpage cannot work through a plain HTTP client. It serves an Anubis proof-of-work challenge, so it normally reports itself unavailable.
  • ⚠️ Parallel Search MCP's upstream tool contract is third-party and unverified. Disabled by default behind SEARCH_ENABLE_PARALLEL.
  • ⚠️ "Open Web Search" has no authoritative published specification. The adapter is a configurable, defensively parsed aggregator, active only when OPEN_WEB_SEARCH_URL is set.
  • ⚠️ SearXNG needs JSON enabled. The shipped settings.yml serves only html, so format=json returns 403 until the operator adds json to search.formats.
  • ⚠️ DuckDuckGo serves an "anomaly" bot challenge as HTTP 202, not 403. Handled, but scrape reliability is inherently poor.
  • ⚠️ Google Custom Search JSON and Bing Search APIs are deliberately unsupported: Google's is closed to new customers and retires in 2027; Bing's was retired in August 2025.

Ideas

  • 💡 Disk cache for repeated coding-agent workflows (v1 is in-memory only).
  • 💡 Optional provider-specific parameter passthrough behind an explicit flag.
  • 💡 web_open PDF text extraction (currently returned as raw bytes only if the content type is textual).

Clone this wiki locally