Repository navigation
Project Tracker
Home · Installation · Compatibility · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Self-Hosting · Monitor · Testing · Troubleshooting · Project Tracker
Working record for MCPSearch: what is open, what was observed, and why decisions were made. Updated after each push.
Last updated: implementation 41d5693. Suite at 287 tests, clean build
warning-free. The wiki revision is deliberately no longer inlined here: a page cannot name
the commit that contains it, and the previous pointer was one commit stale every time.
Last work: added grounded answer synthesis (web_answer) after measuring why the model
cannot be a search provider.
Housekeeping pass: local build artifacts and stale refs cleaned, the CI status below
corrected (it was wrong), and the action plan recorded. No product code changed.
How to read this page. Open issues are things to fix, each with evidence and a proposed action. The action plan turns them into a numbered, ordered task list with acceptance criteria. Observations are measurements and findings that are not defects but would otherwise have to be rediscovered. Decisions record choices that are easy to reverse by accident. Recently resolved is the audit trail.
| Area | State |
|---|---|
| MCP server (stdio) | Working; 287 hermetic tests plus live verification against Tavily and DeepSeek |
| HTTP transport | Working; loopback by default, no auth and no TLS |
| Client compatibility | Schemas satisfy OpenAI strict mode, Anthropic and Open Responses |
| Self-hosted search | 5 SearXNG instances (this Mac + node1–4), all healthy |
| Answer synthesis |
web_answer working; opt-in, grounded in fetched results only |
| Monitor |
mcps-mon working; provider probing is opt-in for cost reasons |
| CI |
Red at 41d5693: step 8 (stdio smoke) fails, so the HTTP smoke and the hermeticity re-run have not executed since web_answer landed (ISSUE-14) |
Ordered by how likely each is to bite. ID is stable for reference in commits.
Severity: high for anyone running one provider · Area: reliability
Measured: DuckDuckGo alone failed 41 of 50 queries once its throttle was reached. The local token bucket allows roughly one query per 10s and refuses rather than waiting, and with no other provider configured that refusal becomes a hard error. The same run with a second provider produced 241 results and one error.
Action: either let the limiter back off within a search's wall-clock budget, or return a clear "throttled, retry in Ns" per query instead of an error.
Severity: medium · Area: provider selection
balanced picks the two highest-ranked providers. If one is skipped by its breaker or
limiter the slot is wasted, even though a third provider was eligible and free. Measured:
DuckDuckGo contributed 0 of 50 queries in a balanced soak because Tavily and Parallel
outranked it, so the free provider that matched Tavily on quality was never consulted.
Action: refill from the remaining candidates when a selected provider is skipped.
Severity: medium · Area: fusion correctness
The aggregator duplication discount relies on the upstream engines a provider reports
for the whole response. SearXNG exposes per-result engine/engines, which the
adapter currently uses only for provenance metadata. Without per-result attribution the
discount cannot be exact.
Action: carry an optional upstream-engine list on SearchResult, populate it from
the SearXNG adapter, and fold same-family contributions during clustering.
Severity: low-medium · Area: payload size
openText writes a synthesised # Title heading followed by result.text, and a page
body usually begins with that same title, so it appears twice. Confirmed by inspection of
Sources/SwiftWebSearchMCP/ToolSchemas.swift; not yet measured on a live page.
Action: drop the leading heading from the body when it duplicates the title, or omit the synthesised heading when the document already starts with one.
Severity: medium · Area: testing
ProviderContractTests covers Tavily, Brave, Mojeek, Exa, SearXNG and DuckDuckGo.
Startpage has only configuration and parsing coverage; Open Web Search,
Parallel Search MCP and Jina Search have no adapter tests at all.
LiveProviderTests exercises Tavily only, because it is the only key available, so
every other adapter is verified against stubs and documentation rather than live.
Action: add contract tests for the four uncovered adapters, and live tests as keys become available.
Severity: medium · Area: compatibility
The schemas satisfy the documented rules for OpenAI, Anthropic and Open Responses, and the HTTP transport speaks the protocol correctly, but no real vendor MCP client has completed a handshake. The compatibility claims rest on documentation, not on a round trip.
Action: expose the HTTP transport through a tunnel and connect an actual OpenAI or Anthropic MCP client.
Severity: high if exposed · Area: security
By design for now: it binds 127.0.0.1, warns when it does not, and expects a
TLS-terminating reverse proxy. Both vendors prefer OAuth for remote servers, and the
no-auth path is only appropriate behind a proxy.
Action: decide whether to implement bearer-token auth, or document the reverse-proxy requirement as the only supported deployment.
Severity: low · Area: deployment
The container has --restart unless-stopped, but that only helps once the Docker daemon
is running — and on this machine the daemon is not registered to start at login, unlike
the cluster nodes, where deploy/provision-node.sh registers Colima as a service. After
a reboot the Mac's instance stays down until Docker is started by hand.
Action: register the daemon for login on this machine too, or note it as expected.
Severity: informational (architectural, not fixable locally) · Area: self-hosting
Measured per node, with each account matching its hostname (node1@node1, …):
| Machine | Public egress v4 | Public egress v6 | Exit node |
|---|---|---|---|
| this Mac | 91.99.176.243 | 2a01:4f8:c17:ecab::1 |
deltasona (Germany) |
| node1 | 182.253.9.73 | 2404:8000:1060:3a62:396e:cf18:6055:8576 | none |
| node2 | 182.253.9.73 | 2404:8000:1060:3a62:5c1d:ccbb:f747:bad7 | none |
| node3 | 182.253.9.73 | 2404:8000:1060:3a62:1d40:4136:97c9:2dcd | none |
| node4 | 182.253.9.73 | 2404:8000:1060:3a62:50d6:2095:2b0b:2f36 | none |
The Tailscale overlay addresses (100.x, fd7a:…) are a separate thing again and are how
the instances are reached, not what an engine sees.
The nodes hold distinct public IPv6, and IPv6 egress works — but it is useless as an
independence lever, because DuckDuckGo publishes no AAAA record (html.duckduckgo.com
is a CNAME to duckduckgo.com, A 40.114.177.156 only). Every node therefore reaches it
over IPv4 from the same 182.253.9.73.
The earlier write-up called this IP reputation. That was wrong, and the correction matters because it changes what is fixable. Pinning the real address bypasses the problem entirely, from the node, without leaving the LAN:
dig html.duckduckgo.com -> rpz.biznet. / 202.169.44.80 (serves nothing)
dig @8.8.8.8 html.duckduckgo.com -> 202.169.44.80 (hijacked too)
dig @1.1.1.1 html.duckduckgo.com -> 202.169.44.80 (hijacked too)
curl --resolve html.duckduckgo.com:443:40.114.177.156 ... -> HTTP 200, "swift at DuckDuckGo"
So the Indonesian ISP blocks DuckDuckGo by poisoning the name for every resolver, not
by refusing the address. www.bing.com and search.brave.com resolve normally and both
answer HTTP 200 from the node.
The second, independent fault is SearXNG's own engine: even from the Mac's clean German
egress, where a plain GET returns results, SearXNG logs
SearxEngineCaptchaException: CAPTCHA (wt-wt) and curl_cffi ... SSLError, because its
DuckDuckGo engine uses scripted form POSTs. That is request shape, not IP.
Action: no action needed for correctness — the Mac's egress serves DuckDuckGo
10/10 through our own adapter, which does not share SearXNG's fault. If a node ever
needs DuckDuckGo, pin the verified address in the container with an extra_hosts entry
(node-local, no /etc/resolv.conf change), and accept that the pinned address needs
maintenance. Giving the nodes genuinely independent public IPv4 remains impossible while
they stay on this LAN; distinct IPv6 does not help because the engines do not publish AAAA.
Note:
deploy/provision-node.shand the monitor use the Tailscale addresses as reachability, not as egress. The distinction above does not change that.
Severity: low · Area: deployment
node5@100.99.92.66 rejects authentication with
Permission denied (publickey,password,keyboard-interactive).
This was assumed to be explained by the shared-login mistake on node1–4, where the account
matches the hostname (node1@node1, …). That hypothesis is now disproved: node5,
andreborchert and admin, each with the node1–4 password, are all rejected. node5 is
therefore a genuinely different machine state, not a naming mistake.
Action: needs a fact only an operator has — the correct account, or a password reset, or the public key installed. Until then node5 stays out of the cluster; the other four and the Mac do not depend on it.
Severity: low · Area: reproducibility
deploy/docker-compose.yml uses searxng/searxng:latest. A rebuild can silently pick up
a different version, and SearXNG changes engine definitions frequently — exactly the kind
of change that alters which engines work. The pulled image already has a digest recorded.
Action: pin to that digest.
Severity: low · Area: security hygiene
HTTPError.from uses urlError.localizedDescription, and that string reaches
ProviderFailure.message, which web_search_status and providers_failed display.
Darwin descriptions do not normally include the URL, and Mojeek's key travels in a query
string, so a credential could in principle appear in a diagnostic. No leak has been
observed.
Action: replace the platform description with a curated reason string.
Severity: low · Area: process
Runs have queued for 15+ minutes and been superseded by the cancel-in-progress
concurrency group. This is capacity, not code: every run that obtained a runner passed.
It is recorded because "the check did not run" must not be mistaken for "the check
failed".
Action: none; note it when reporting CI status. The claim that every run which
obtained a runner passed held until 41d5693, which failed on a stale assertion — that is
ISSUE-14, not capacity.
Severity: blocking · Area: process / CI
scripts/mcp_smoke.py:53 still asserts the three-tool set (web_search, web_open,
web_search_status) and compares for equality at :182-183, while MCPServerFactory
registers four tools (Sources/SwiftWebSearchMCP/MCPServer.swift:34-114; the count is
logged as 4 at :131). The module docstring at :6-7 repeats "three documented tools".
git log -- scripts/mcp_smoke.py ends at f4f452c, before web_answer landed.
Measured on CI run 34668664152 for 41d5693: steps 4-7 (build debug, test, build
release) pass; step 8 fails with expected tools ['web_open','web_search', 'web_search_status'], got ['web_answer','web_open','web_search','web_search_status'].
The HTTP half of step 8 and the whole hermeticity re-run in step 9 have therefore never
run green since web_answer landed.
The Swift suite asserts the four tools correctly, so the script is the only duplicated
copy of the list. A stale local .build (executables 05:57/05:59 against 09:37 sources)
makes a local run of the script falsely pass, which is how this survived review.
Action: correct the constant and the docstring, re-run both smoke modes against a fresh build, and remove the duplication so the list cannot drift again (tasks 1-3).
Severity: high (security) · Area: security
IPAddress.isLoopback/isPrivate/isLinkLocal/isCloudMetadata/isReserved
(Sources/WebSearchCore/Fetch/URLPolicy.swift:266-296) classify ::1, fc00::/7,
fe80::/10, ff00::/8, 2001:db8::/32 and fd00:ec2::254 — but not IPv4-mapped IPv6.
isIPLiteral() is only "contains :", and IPAddress() parses with
inet_pton(AF_INET6), so ::ffff:a.b.c.d is treated as an ordinary public literal and
validate(_:) returns allow with no resolution stage (:110-115, :138).
Reproduced on this machine, not merely read:
-
URL(string: "http://[::ffff:127.0.0.1]:8765/")!.host()returns::ffff:127.0.0.1(brackets stripped, so the IP-literal path is taken rather than the unparseable-literal denial). - Against a throwaway loopback listener,
curl http://[::ffff:127.0.0.1]:8765/returned HTTP 200.
So web_open will fetch mapped loopback, and by the same gap mapped RFC 1918 and mapped
link-local/metadata addresses (http://[::ffff:169.254.169.254]/) wherever such a service
is present. SEARCH_ALLOW_PRIVATE_NETWORK=false does not prevent it, and no ::ffff:
case exists in URLPolicyTests (which does cover [::1], [fe80::1], [fc00::1],
[fd00::ec2::254]).
Action: normalise embedded-IPv4 forms before classification — v4-mapped, NAT64
64:ff9b::/96, 6to4 2002::/16, Teredo 2001::/32 — add the negative matrix, and decide
the separate DNS-rebinding question (tasks 4-6).
Severity: high (cost) · Area: monitor / deployment
Sources/MCPSMonitor/main.swift:330-334:
let shouldProbeProviders =
!probedProviders.isEmpty == false // i.e. probedProviders.isEmpty
|| options.probeProviders
|| forceProbeProviders
|| cycle % 6 == 0 // every 6th refresh, unconditionallyThe unconditional term issues real per-adapter searches on cycles 6, 12, 18, … — about
one credit per minute per configured keyed provider at the default 10s interval — although
the README, the Monitor page and the tool's own option text describe free mode as "node
health only — free, no provider credits", and the 60s floor that protects a metered tier is
applied only when options.probeProviders is set (:186-199). The comment directly above
the expression states the opposite intent ("then only when asked").
Action: drop or gate the unconditional term, simplify the expression, and add a test that a non-probe refresh performs zero provider searches (task 9).
Severity: medium · Area: error reporting
Two independent defects with one effect: the caller is told the wrong thing.
(a) Sources/WebSearchCore/Fetch/DirectHTTPFetcher.swift:108-111 throws
SearchError.networkFailure(.tavily, "upstream returned HTTP …") for any non-2xx page
fetch, although SearchError.fetchFailed exists precisely because web_open
"previously surfaced as 'Tavily timed out' for unrelated hosts"
(SearchError.swift:40-44).
(b) FailureCategory.isLocalSkip includes .rateLimited and .authentication
(SearchRequest.swift:187-192), but upstream 429/401 map to exactly those categories
(HTTPStatusMapper.swift:23-31), so a search in which every provider answered 429 or
401 is reported as temporarilyUnavailable ("nothing was attempted") instead of
providersFailed with the real per-provider reasons
(SearchOrchestrator.swift:149-155).
Action: use fetchFailed for page fetches, separate "skipped locally" from "answered
with an error", and test both (tasks 7-8).
Numbered so a task can be named in a commit message. Ordered by risk: restore the build
first, then the security hole, then what callers actually see, then quality, tests,
documentation, and finally decisions only an operator can make. Each task ships on main
— no branches — and follows the same loop: code, test, audit, document, update this
page. A task is finished only when its "done when" condition is met and CI is green.
Dependencies, merges and deliberate exclusions are recorded in the audit note.
-
Fix the stale smoke-test tool list.
scripts/mcp_smoke.py:53and the docstring at:6-7must expect four tools. Done when: both smoke modes pass locally against a fresh release build and CI is green at the new HEAD, including the previously unreachable steps. -
Stop duplicating the tool list. Keep the authoritative assertion in
StdioServerTests/SchemaCompatibilityTests; have the Python script require the four documented tools and their schemas rather than owning an exhaustive set. Done when: adding a throwaway tool to the server breaks exactly one layer, not two. -
Refresh the local build artifacts. The local executables predate
web_answer, so a local smoke run can falsely pass. Done when: local binaries postdate the sources andmcp_smoke.pyandsoak.py --queries 1both run against them.
-
Fix the embedded-IPv4 SSRF bypass (ISSUE-15): normalise v4-mapped, NAT64, 6to4 and
Teredo forms before classification. Done when:
http://[::ffff:127.0.0.1]/is denied by a test, and no embedded form reachesallow. - Decide the DNS-rebinding TOCTOU: either pin the validated address for the connection or record it as an accepted limitation with measured evidence in Security and here. Done when: the behaviour is deliberate and documented, not incidental.
-
Extend
URLPolicyTestswith the embedded-IPv4 negative matrix and theSEARCH_ALLOW_PRIVATE_NETWORKboundary. Done when: the matrix covers every form the fix normalises. -
Fix
web_openerror attribution (ISSUE-17.1): reportfetchFailed, never a Tavily network failure. Done when: a test asserts a non-2xx page fetch names no provider. -
Separate local skips from upstream errors (ISSUE-17.2). Done when: all-providers-429
yields
providersFailedwith the real categories, and all-locally-skipped still yieldstemporarilyUnavailable. -
Stop
mcps-monprobing without--probe(ISSUE-16). Done when: a non-probe refresh performs zero provider searches, asserted by a test, and the docs match. -
Curate provider failure messages (ISSUE-12): replace
urlError.localizedDescriptionso a key in a query string can never reachweb_search_status. Done when: a Mojeek-shaped failure carries no URL.
-
Make health registration deterministic: no fire-and-forget
Taskforhealth.register, so an early request cannot bypass breaker and limiter. Done when: a test proves the limiter applies to the first request after construction. - Serialise breaker transitions so concurrent searches cannot apply a failure before an earlier success. Done when: ordering is asserted under concurrent load.
- Stop the mode deadline from opening breakers: deadline cancellation is not a provider failure. Done when: three budget-expired searches leave every breaker closed.
-
SEARCH_CONNECT_TIMEOUT_MS: make it real or remove it from the code,example.envand the wiki. Done when: the variable either has an observable effect or no longer exists. -
Transport flags must not silently switch transports.
--port/--host/--http-pathcurrently force HTTP order-dependently. Done when: conflicting flags fail loudly or the override is documented and tested. - Rate limiting that does not turn into a hard error (ISSUE-1): back off inside the search budget, or return a clear "throttled, retry in Ns". Done when: the measured single-provider failure mode is gone.
- Refill a wasted fan-out slot (ISSUE-2) when a selected provider is skipped. Done when: a balanced soak shows the free provider participating.
-
Per-result upstream-engine attribution (ISSUE-3) so the aggregator discount is exact.
Done when:
SearchResultcarries the engines and clustering folds same-family votes. -
Stop
web_openduplicating the page title (ISSUE-4). Done when: a titled page renders its title once.
-
Decide
JinaSearchProvider: make it selectable or delete it with its key plumbing and hints. It is currently unreachable. Done when: no registered adapter is unselectable. -
Honour or delete
ProviderCapabilities— pagination is advertised by three adapters and sent by none. Done when: no advertised capability is a fiction. -
Exa content: request
contents.textor drop the deadcontent: item.textmapping. -
Remove the remaining unreachable surface and no-ops:
RankFusion.ClusterDiagnostics,HTMLDocument.canonicalURL,allProvidersFailed,notFoundIsEmpty,fusionWeight(_:),ProviderHealth.reset,SearchCache.clear,Log.withLevel,isConfiguration,Data.truncatedPreview, and the emptyifinSearchOrchestrator.swift:87. Done when: the library has no dead public surface, or it is documented as API. - Port convention: document or remove the SearXNG-8080 versus MCP-HTTP-8080 collision.
-
Move the hardcoded Tailscale node addresses out of production source into a
documented default, and cover them with an assertion stronger than
contains(":8888").
-
Adapter contract tests (ISSUE-5): Startpage happy path, Open Web Search, Parallel MCP,
Jina Reader, and call the shared
assertFailureTaxonomyfor every adapter instead of Tavily alone. Done when: dropping a 401 case from any adapter fails a test. -
Cover the untested surfaces:
HTTPMCPHost/HTTP transport in Swift, a successfulweb_open, the direct-to-Jina fallback,ProviderRegistry,ProviderHealth,NodeProbe,ProviderProbe,SearchPipelineFactory. - Make the 28 silent skips loud: fail in CI when the executable is missing instead of skipping, and single-source the three environment scrub lists.
-
Remove or use the dead test helpers (
assertNoCredentialLeak,ImmediateClock). -
soak.py: make--providersactually restrict the run, and broaden the credential-leak scan beyond two hardcoded substrings. -
Small test repairs: the malformed declaration at
StdioServerTests.swift:659, and an assertion on the negotiated protocol revision rather than none. -
Make live tests an explicit opt-in instead of a key-shape heuristic, so a plain
swift testcannot spend credits by accident. - CI hygiene: SwiftPM cache against the 30-minute budget, SHA-pinned actions, and a scheduled live smoke once credentials exist.
-
Home and Security: delete the false claim that scrapers are discounted or down-weighted
during fusion —
scraperWeightis 1.0 by deliberate design. -
Installation: three dependencies, not two, and add
mcps-monto the product table. -
Monitor and README: document
--allow-expensive-probing, the--watchalias and the 60s probe auto-raise. -
Resolve the
config.envcontradiction: implement the executable-relative fallback or correctAppConfiguration.load's doc comment andexample.env. The Configuration page is already accurate; the promise of a fallback is not kept anywhere. -
Fix stale code comments:
ToolHandlers.swift:5("three tools"),main.swift:11,DuckDuckGoProvider.swift:10(scraper down-weighting),deploy/docker-compose.yml:7-9. -
README and docs drift: the no-key route count, the Parallel and DuckDuckGo figures
(upstream tiers, not our limiters), and the OpenAI report's requirement for a JSON copy of
structuredContentagainst the deliberate human-readable rendering.
- ISSUE-7: decide bearer-token auth versus reverse-proxy-only for the HTTP transport.
- ISSUE-11: pin the SearXNG image digest.
- ISSUE-8: register the container daemon for login on this Mac.
-
SearXNG posture: replace the placeholder
secret_key, decidelimiter: false, and decide the node bind address (all interfaces versus Tailscale only). -
provision-node.sh: verify the replacement before removing the running container, check forpython3andcurl, and stop advertising a fallback address when Tailscale is absent. - ISSUE-10 (blocked): node5 needs the correct account, a password reset or the public key.
- ISSUE-6 (blocked): complete one real OpenAI or Anthropic MCP handshake through a tunnel.
Reviewed as a whole after it was written.
- Dependencies. 1 → 2, 3 (nothing can be verified until the smoke test passes); 4 → 5, 6; 9 and 26 need task 3's fresh build; 27 needs task 1 so the HTTP smoke actually runs; 34-39 must follow the behaviour changes in 11-19 or they will be written twice.
- Merges made during the audit. The unrelated no-op statement became part of task 23 rather than its own item. ISSUE-17 stayed one issue with two tasks because the caller-visible symptom is identical. The port convention moved out of the security phase, where it did not belong.
-
Deliberately not tasks (they are Ideas or Known limitations, not defects): a disk-backed
result cache, fanning out across several SearXNG instances, a genuinely independent index,
Google CSE and Bing support, JavaScript execution in
web_open. - Blocked, not neglected: 45 and 46 need facts or accounts only the operator has; task 33's scheduled live job needs CI secrets, and there are none configured; ISSUE-5's live coverage for adapters without keys cannot be written until keys exist.
-
Corrections made in this pass. The status table said CI was green and it is not; ISSUE-13
said every run that obtained a runner passed, which stopped being true at
41d5693; the self-referential wiki SHA was removed because no page can name its own commit. - Evidence standard. Every new issue cites a file and line or a measured run. ISSUE-15 was additionally reproduced end to end on this machine rather than inferred from reading.
Measured behaviour worth keeping. None of it is a defect.
Measured against deepseek-flash (DeepSeek-V4.1-Flash), which is the model the account
exposes alongside deepseek-v4-pro. The API lists exactly those two.
| Property | Measurement |
|---|---|
| Latency | ~2 s to synthesise; ~7 s for a whole balanced call including search |
| Cost | ~$0.0003 per answer (1063 in / 229 out at off-peak rates) — ~3 000 answers per dollar |
| Fabricated URLs | none in any run; citations are range-checked and renumbered |
| Grounding failure mode | Abstention, not invention |
| Concurrency limit | 2500 (Flash) versus 500 (Pro) |
It has no web access. That is the finding everything else follows from:
- Asked for the newest macOS it answered "macOS Tahoe 26, version 26.4.1"; the machine actually runs 26.6.2. Confident, specific, wrong.
- Asked for the current Bitcoin price unaided it correctly refused, saying it cannot access live data.
- Grounded in real results for "why unix failed the top 500 list" it replied
INSUFFICIENT— the results established Linux dominates but never explained why Unix declined. Free-running, it invented a plausible explanation instead. - Grounded in real results for the Bitcoin price it produced live figures from six exchanges and noted they disagreed, quoting each with its source.
So the useful configuration is not "send search requests to the LLM", which would return uncited training-data text. It is "search for real documents, then answer only from them". The model's one weakness becomes the safety property: it cannot cite a document the search never fetched.
Two traps worth remembering, both of which shaped the implementation:
-
Thinking mode can return an empty answer with HTTP 200. The API default is
enabled, and the reasoning pass shares the output-token budget. Measured:
completion=4000, reasoning=4000, content="",finish_reason: length. Three of the first five calls returned nothing. Fix: disable thinking explicitly, and retry once with it disabled if content still comes back empty.reasoning_effortmapsminimal→low,medium→high;lowworked,thinking.disabledwas faster still. -
A JSON fixture in a Swift multiline string can silently be invalid.
\\inside"""emits a literal backslash, so a line-continued JSON body becomes unparseable and the test failure points at the server rather than the fixture. Worth recognising before debugging the wrong layer.
Also confirmed: DeepSeek's API is OpenAI-compatible and natively supports the Responses
API and the Anthropic Messages format (https://api.deepseek.com/anthropic) — the same
three surfaces this project targets.
| Provider | Observation |
|---|---|
| Tavily | 50/50 in a soak, 1 credit each, ~1.2–3.2s. Weak on interpretive queries: for "why unix failed the top 500 list" it returned six off-topic technical-support pages while free providers found the actual story. |
| Parallel (anonymous) | Exactly 20 successes, then HTTP 429. Reproduced deliberately. |
| DuckDuckGo | Good results when it works, but throttles to about one query per 10s; a bot challenge arrives as HTTP 202, not 403. |
| Startpage | Blocked by an Anubis proof-of-work challenge. Effectively unusable through plain HTTP. |
| SearXNG (self-hosted) | Aggregates Google CSE and Brave. Served 25/25 queries alongside Tavily with 0 failures — a strictly better no-key fallback than Parallel, though slower. |
Tailscale assigns every device a private overlay IPv4/v6 plus a MagicDNS name. It does not change the public egress, which is whatever NAT or exit node the traffic leaves through. Both matter, for different things: the overlay is how the instances are reached, the egress is what an engine sees and blocks on. Four machines on one router share one public IPv4 no matter how many overlay addresses they hold.
Requesting each engine directly with a browser user agent, which separates "the engine refused us" from "our client is wrong":
| Engine | this Mac (Germany) | node1 (Indonesia) |
|---|---|---|
| DuckDuckGo | HTTP 200, real results | HTTP 000 — name poisoned (rpz.biznet.) |
| Bing | HTTP 200 | HTTP 200 |
| Brave | HTTP 200 | HTTP 200 |
| Mojeek | — | HTTP 200, CAPTCHA page |
| Startpage | HTTP 200 | HTTP 200, challenge page |
Through SearXNG the picture differs from the direct one, which is the single most
useful thing learned here: SearXNG's DuckDuckGo engine is CAPTCHA-challenged even from
the clean German egress, its Bing engine returns "HTTP connection error" from the
Indonesian egress while a plain curl to Bing succeeds there, and Brave answers from
both. A SearXNG engine failing therefore does not mean the network is at fault.
- Google CSE and Brave contribute everywhere, about 20 results each.
- Brave rate limits per IP: rapid successive queries returned "too many requests", and it is measurably less reliable from the nodes than from the Mac.
- DuckDuckGo is the one engine that works from the Mac's egress and nowhere else: our own adapter returned 10/10 there, against SearXNG's persistent CAPTCHA.
- Instances report
unresponsive_enginesper request, which is why the monitor surfaces it — but the same query can succeed on a retry, so a single entry is not a verdict.
- Provider registry weights are all 1.0. The score is
weight / (k + rank), so a weight ratio wider than the reachable rank ratio(k + maxRank) / (k + 1)— about 1.07 for five results atk = 60— lets one provider's entire list outrank another's regardless of relevance. The previous weights spanned 0.8 to 1.1, a ratio of 1.375, and Tavily's sixth result beat Parallel's first by 1.82×. - Quality is carried by corroboration and the per-domain cap, which cannot override rank.
- Nodes are faster as providers than the Mac's local instance: node1 0.48s, node3 0.98s, this Mac 1.32s per query, because their VMs are otherwise idle.
- The server accepts one
SEARXNG_BASE_URLat a time, so the extra instances are a choice of endpoint, not parallel fan-out. - Instance configuration is genuinely identical — all five report the same 15 enabled engines out of 267 known. Earlier per-instance engine differences were per-request flakiness, not drifted config, so a "which instance is better configured" hunt is wasted effort. What differs is reach, and that follows the egress.
-
mcps-mon --probecosts one credit per keyed provider per refresh. A 10s interval would spend ~360 credits/hour and exhaust a 1000-credit month in under three hours, which is why a 60s floor now applies.
Each of these presented as something else during the node rollout:
| Symptom | Real cause |
|---|---|
brew: command not found on a machine that has Homebrew |
An ssh command runs a non-login shell, so brew shellenv never applies |
brew install docker exits non-zero yet installs fine |
It cannot symlink Docker Desktop completions into an absent /Applications/Docker.app
|
docker: command not found after a successful install |
lima's docker.lima already occupies the name, so linking is skipped |
Every pull fails: docker-credential-desktop: executable file not found
|
A leftover ~/.docker/config.json points at the Desktop credential helper |
ssh -n host 'bash -s' < script runs nothing, exit 0 |
-n redirects stdin from /dev/null, so the script is never fed in |
| SSH to a node refuses a password that works elsewhere | Each node's account matches its hostname (node1@node1); there is no shared login |
dig returns rpz.biznet. for a public hostname |
The ISP blocks that name by DNS policy, and it answers the same for 8.8.8.8 and 1.1.1.1, so changing the resolver does not help |
A domain resolves and answers curl from the host, but not from inside a container |
Check whether the failure is the resolver or the request shape before blaming the container network |
Choices that would look arbitrary later without the reasoning.
| Decision | Why |
|---|---|
| No blanket aggregator discount in fusion | It degenerates into provider preference; see the weights note above |
Schemas closed with additionalProperties: false and fully required
|
OpenAI strict mode requires it; the common failure is a missing one, not a present one |
Optional arguments are nullable types, not omitted from required
|
The documented strict-mode idiom; default is not a supported keyword |
try! removed from the server |
An encoding failure should become a tool error, not a crash. The MCP SDK's generic Codable initializer outranks its non-throwing one, so one documented helper handles it |
| Scrapers are opt-in and disabled by default | Their markup is not a contract, and both targets actively defend against automation |
| Testable monitor code lives in the library, not the executable | An executable's symbols cannot be imported by a test target |
A locally skipped provider raises a retryable error, not invalidRequest
|
A transient local rate limit was blaming the caller's query |
The LLM is not a SearchProvider
|
It has no web access, so as a provider it would emit plausible text with invented URLs. It runs only after real results exist and may cite only those |
web_answer is a separate tool, not a web_search mode |
Answering changes the shape of the response (prose + citations, not a result list) and needs a different timeout; overloading web_search would break callers that want documents |
| Synthesis has its own timeout | Generative traffic legitimately takes tens of seconds; the shared 10 s search timeout would turn slow successes into failures |
| Thinking mode disabled by default | With it on the reasoning pass can consume the entire output budget and return empty content under HTTP 200 |
| A synthesis failure still returns the search results | Losing prose is not a reason to lose documents the caller can still use |
SEARCH_SYNTHESIS_REASONING is opt-in rather than auto |
Enabling it silently would reintroduce the empty-answer failure mode by configuration |
| 60s floor on probe intervals | Protects a metered free tier from an accidental 360-credit/hour loop |
Newest first. Each entry names the commit so the change can be found.
| Item | Commit |
|---|---|
Added web_answer: grounded synthesis over fetched results (256 → 287 tests) |
41d5693 |
| Corrected the DuckDuckGo diagnosis to DNS poisoning and documented the egress tables |
81aae9f, edd8c90
|
Cleared 24 build warnings, including an unsafe ChannelHandlerContext capture |
b2a6b82 |
Organised the README and indexed docs/
|
cb10bd2 |
Monitor r key did nothing; probe interval could drain a free tier |
fbe27f9 |
| Provider-kind column cramped; provider header and footer overflowed an 80-column terminal |
edac578, 738411c
|
Added the mcps-mon dashboard (216 → 256 tests) |
edac578 |
| Provisioned SearXNG on node1–4, with Colima and start-at-login | 39ba7db |
| Added self-hosted SearXNG on this machine as a no-key provider | e150388 |
| Fusion degenerated into provider preference (found by live comparison) | 2f20cbd |
| Placeholder credentials were activating the live test suite | 5204fda |
| Added the Streamable HTTP transport | eebab38 |
| Hardened schemas for OpenAI, Anthropic and Open Responses | c7dca46 |
Fixed Tavily published_date never decoding |
34e01bb |
| Fixed error misattribution, silent provider fallback and double discount | 15eeac5 |
| Reconciled histories and pushed the implementation |
7bd7a5c, ae65097
|
Accepted, not scheduled.
-
web_opendoes not execute JavaScript; JS-heavy pages depend on the Jina Reader fallback. - Startpage cannot work through a plain HTTP client.
- Parallel Search MCP's upstream contract is third-party and unverified.
- "Open Web Search" has no authoritative published specification; it is a configurable, defensively parsed aggregator.
- SearXNG needs
jsoninsearch.formats; the stock image enables onlyhtml. - The HTTP transport has no auth or TLS, and no server-initiated streaming.
-
web_answerinherits the search layer's coverage limits: if the providers find nothing usable, there is nothing to ground an answer in, so it returnsresults_onlyor fails at the search phase like any other search. - Google Custom Search JSON and Bing Search are deliberately unsupported: Google's is closed to new customers and retires in 2027, Bing's was retired in August 2025.
Not scheduled, possibly useful.
- A disk-backed result cache. The in-process cache holds 256 entries; this machine has 24 GB of RAM and ~69 GB free disk. Would cut upstream calls for repeated developer queries.
- Query several SearXNG instances in one search. They are faster than the local instance; the limitation is that provider selection takes one URL.
- A launch agent for the container daemon on this Mac, so the local instance survives a reboot (ISSUE-8).