Skip to content

Project Tracker

Pummelchen edited this page Sep 11, 2026 · 113 revisions

Project Tracker

Home · Installation · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Testing · Troubleshooting · Project Tracker


Status of work on MCPSearch. Updated after every push.

Last updated: commit 34e01bb — "Fix Tavily published_date never decoding, add opt-in live tests".

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.

Documentation (commit 6974d65)

  • ✅ Repository README slimmed from 296 to 105 lines: what the project is, why it is worth using, quick start, tool and provider tables, CI badge, and a linked index of wiki pages. Reference detail moved here rather than being duplicated.
  • ✅ Wiki expanded to eleven navigable pages with a consistent navigation strip and verified internal links: Home, Installation, Tools Reference, Architecture, Providers, Configuration, Reliability, Security, Testing, Troubleshooting and this tracker.
  • ✅ The two missing reference pages were written: Installation (requirements, building, client configuration, verification) and Tools Reference (every argument, response field, mode, error category and example call).
  • ✅ Reliability was added as its own page, documenting the timeouts, retries, circuit breakers, rate limits and cache that enforce the "one vendor outage never fails a search" rule, including the failover matrix.

Live verification against a real provider (commit 34e01bb)

  • ✅ Verified the Tavily adapter against the live API with a free-tier key: search, normalization, recency filtering, advanced depth, orchestration, caching and status all behave as designed. A basic search costs 1 credit, advanced 2.
  • ✅ Fixed a real bug the stub tests could not catch. published_date always decoded to nil: the DTO maps multi-word fields with explicit CodingKeys, but the adapter decoded with .convertFromSnakeCase, which rewrites the key to publishedDate before those mappings are consulted. Every stub fixture had omitted the field, and the RFC 1123 date test passed vacuously against a nil date.
  • ✅ Added LiveProviderTests, opt-in and self-skipping, written to be frugal with a metered tier, plus a stub-based regression test for the decoder bug.
  • ✅ .gitignore now excludes config.env and *.env while keeping example.env tracked, so a live key cannot be committed by accident.

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.

CI (commit 26dc7ce)

  • ✅ GitHub Actions CI workflow on macos-26 (Xcode 26.x, Swift 6.3): debug build, swift test, release build, stdio smoke test, then swift test again with provider credentials deliberately present to prove hermeticity.
  • ✅ scripts/mcp_smoke.py — dependency-free client that drives the built binary through a real handshake and asserts every stdout line is valid JSON-RPC.
  • ✅ Toolchain asserted up front, so an image change fails with a clear message.
  • ✅ CodeQL is also enabled on the repository by GitHub's default setup.

CI found three defects that local builds had hidden:

  1. macos-14 ships Swift 5.10 and cannot parse a swift-tools-version: 6.3 manifest.
  2. Package.swift declared .copy("Fixtures") for a directory that git does not track, so a clean checkout failed to build while local builds passed.
  3. A trailing defer warning that only a clean build surfaced.

Open — process

  • 🔧 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, now that CI is green.

Known limitations

  • ⚠️ A client that closes stdin before reading its replies can lose a response. The MCP SDK dispatches each request to a detached task and marks the transport disconnected as soon as stdin reaches EOF, so a reply already in flight cannot be written. Compliant clients keep stdin open until they have read every response, which is what the stdio transport contract requires, and the shipped smoke test does this. Fixing it properly means owning the stdio transport instead of using the SDK's, which is not justified for non-compliant clients. Recorded here rather than papered over with a sleep.
  • ⚠️ 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