Repository navigation
Project Tracker
Pummelchen edited this page Sep 11, 2026
·
113 revisions
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 26dc7ce — "Remove a phantom resource bundle that broke
clean checkouts". CI is green.
Legend: ✅ done · 🔧 open ·
- ✅ 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. - ✅
SearchProviderabstraction; 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.
- ✅ Reconciliation with the GitHub repository: MIT
LICENSEpreserved, README retitled to match the repo, branch renamed tomain, pushed. - ✅ No token stored in
.git/config; pushes authenticate through the keychain.
- ✅
web_openno longer blames a search provider for fetch failures (SearchError.fetchFailed). - ✅
WebFetcherno 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
ProviderIDso it cannot drift.
- 🔧 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 optionalupstreamEnginesonSearchResult, 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_enginesand the Parallelexcerptsshape. - 🔧
JinaSearchProvideris wired but unreachable.SearchPipelineFactoryconstructs it whenJINA_API_KEYis set, but the registry excludes.jinafrom selection. Either make it a selectable opt-in provider or stop constructing it. - 🔧
URLError.localizedDescriptionreacheslast_error. It is surfaced throughweb_search_statusandproviders_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.
- ✅ GitHub Actions
CIworkflow onmacos-26(Xcode 26.x, Swift 6.3): debug build,swift test, release build, stdio smoke test, thenswift testagain 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:
-
macos-14ships Swift 5.10 and cannot parse aswift-tools-version: 6.3manifest. -
Package.swiftdeclared.copy("Fixtures")for a directory that git does not track, so a clean checkout failed to build while local builds passed. - A trailing
deferwarning that only a clean build surfaced.
- 🔧 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.
⚠️ 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_opendoes 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 behindSEARCH_ENABLE_PARALLEL.⚠️ "Open Web Search" has no authoritative published specification. The adapter is a configurable, defensively parsed aggregator, active only whenOPEN_WEB_SEARCH_URLis set.⚠️ SearXNG needs JSON enabled. The shippedsettings.ymlserves onlyhtml, soformat=jsonreturns 403 until the operator addsjsontosearch.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.
- 💡 Disk cache for repeated coding-agent workflows (v1 is in-memory only).
- 💡 Optional provider-specific parameter passthrough behind an explicit flag.
- 💡
web_openPDF text extraction (currently returned as raw bytes only if the content type is textual).