Skip to content
eggstackPublic

Repository files navigation

eggsearch

Crates.io PyPI PyPI Downloads docs.rs License Downloads

Eggsearch adds live search and bounded source fetching to MCP-compatible AI clients. It combines public search sources, returns evidence as source cards, and can package selected material into deterministic evidence bundles. Connect it over client-owned stdio or run an explicit loopback-only Streamable HTTP server.

No API keys are required for the default installation. The default install is keyless across web, fetch, advisory, package-registry, and scholarly paths. Credentialed providers are opt-in.

Install

curl -fsSL https://github.com/eggstack/eggsearch/releases/latest/download/install.sh | bash
irm https://github.com/eggstack/eggsearch/releases/latest/download/install.ps1 | iex

Pin a release version when reproducibility matters. cargo install eggsearch --locked installs the published crate. To build the current checkout, run cargo build --release. The installer verifies its SHA-256 checksum and version, and never elevates. See Installation for supported targets and fallback rules.

Install the native asyncio Python package separately:

python -m pip install eggsearch

On ARMv7 SBCs, require a prebuilt wheel so unsupported targets fail without attempting a source build:

python -m pip install --only-binary=:all: eggsearch

Quickstart

eggsearch doctor          # look for "healthy": true
eggsearch providers       # per-provider enabled / configured / routable
eggsearch search "rust tokio" --max-results 3

Search uses live public sources, so results vary and an individual provider can fail without making the whole query fail.

$ eggsearch fetch "https://example.com" --metadata-only
# Fetch: https://example.com

Final URL: https://example.com/
Title: <<<EXTERNAL_UNTRUSTED field=title id=https://example.com/>>>
Example Domain
<<<END>>>
Status: 200
Content-Type: text/html; charset=utf-8
Fetched: true
Truncated: false

Every card carries a content-derived stable ID and an <<<EXTERNAL_UNTRUSTED>>> frame: treat fetched text as data, never instructions. Results merge across providers, so one provider failing is reported as a warning rather than failing the query. The MCP fetch tool accepts one or more explicitly selected web or repository items. Use --json for machine-readable CLI output.

Preview client configuration first. Rendering is read-only; --apply is opt-in:

eggsearch integrate list
eggsearch integrate claude --transport stdio --apply

Or run the server yourself, as a client-owned child process:

eggsearch mcp stdio

or a persistent loopback endpoint:

$ eggsearch mcp serve --bind 127.0.0.1:11320 --path /mcp &
$ curl -s http://127.0.0.1:11320/healthz
{"service":"eggsearch","status":"ready","version":"0.4.4","protocol":"streamable-http"}

mcp serve accepts loopback binds only and does not register a service. See Deployment and Managed service.

MCP tools

Tool Purpose
web_search Live metasearch over configured providers
fetch Bounded fetch of selected web URLs or repository locators
provider_status Diagnostic provider config, health, and recipes
repo_search Structured repository evidence discovery
repo_map Bounded repository structure discovery
security_search Vulnerability and advisory search
research_search Multi-source evidence discovery
knowledge_brief Cutoff-aware candidate developments; not a claim that a model lacks a fact
build_evidence_bundle Deterministic, non-summarizing evidence packaging

web_fetch, batch_fetch, and repo_fetch remain callable compatibility aliases with unchanged request and response shapes; they are not advertised in tools/list.

Start with the tool that matches the task: web_search for research, repo_search for codebases, security_search for advisories, research_search for comparisons. provider_status is for hosts and troubleshooting, not a first research step. Responses include machine-readable next_actions, so keep the working set small and load specialized tools only as needed. web_search returns source cards, not a synthesized answer; read useful sources with fetch. See the Tool matrix and Agent workflows for details.

Safety

  • Fetched content is external_untrusted: data, not instructions. sanitize_output defaults to true, with injection markers reported as injection_hits.
  • Fetch is bounded and explicit. fetch reads only selected web or repository targets and checks for blocked address ranges.
  • Current source builds enable PDF extraction and browser rendering by default. Published v0.4.4 binaries predate that change and include neither feature. Browser rendering requires an existing Chrome or Chromium installation; when none is found, browser functionality reports itself unavailable and the rest of the product keeps working. The Python wheels are built from the same source and compile both features; the published eggsearch==0.4.4 wheel is PDF-only. The opt-in egress proxy route is limited to provider upstreams and is excluded from prebuilt binaries.

See Safety and Threat model.

Documentation

Using it: Quickstart · Configuration · Tool matrix · Agent workflows · Provider setup · Optional features · Safety

Operating it: Installation · Deployment · MCP integrations · Managed service · Update

Developing it: Architecture overview · MCP response contract · CodeGG integration · Test inventory · Release process

The in-process asyncio Python package is published separately on PyPI. See the Python library guide for its API, platform limits, and experimental ARMv7 SBC support.

Build

cargo build --release        # target/release/eggsearch
make check                   # fmt, clippy, tests, hygiene, dependency policy, packaging

The routine gate is network-free. Current source builds include PDF extraction and browser rendering by default. --no-default-features omits them, and --features egress enables the source-build-only provider proxy route.

Native forge smoke tests call provider APIs directly with operator tokens. They are maintainer-only diagnostics, not user-facing or release evidence.

License

MIT. See LICENSE.