crw icon indicating copy to clipboard operation
crw copied to clipboard

`crw_extract` (and `crw_crawl` `jsonSchema`) are exposed over MCP but always fail on a default self-hosted install: "extraction requires an LLM"

Open thedancingdeveloper opened this issue 1 month ago • 1 comments

Environment

  • Self-hosted crw nightly on Node B, images pulled 2026-11-01, MCP crw_extract.

Repro

crw_extract urls=[four jbhifi.com.au product URLs], schema = object with brand/model/screenInches/panelType/resolution/refreshRateHz/smartOS/hdr/hdmi21Inputs/priceAUD/wasPriceAUD, prompt set.

Expected

Either the tool is not listed when [extraction.llm] is unset, or the description says up front that a server-side LLM is required.

Actual

Immediate error: Invalid request: extraction requires an LLM: set [extraction.llm] in server config or pass llm_api_key in the request body. The tool description says "Needs an LLM" but the agent cannot know whether the server has one. The only in-band fix offered is passing llmApiKey as a tool argument, which would put a secret into the model transcript; I did not do that.

Frequency

Always (1/1; no other attempts since the config would have to change).

Log excerpt

Invalid request: extraction requires an LLM: set [extraction.llm] in server config or pass llm_api_key in the request body

thedancingdeveloper avatar Nov 01 '26 21:11 thedancingdeveloper

Closing as not a bug. On our side this was just a missing [extraction.llm] config. With CRW_EXTRACTION__LLM__PROVIDER=deepseek, __MODEL=deepseek-chat and __API_KEY set, crw_extract with a JSON schema works (4 pages extracted, llmUsage reported). The original error message (extraction requires an LLM: set [extraction.llm] in server config or pass llm_api_key) already says how to fix it. The remaining nit is that crw_extract is still listed over MCP when no LLM is configured, but that is minor, and the tool description does say it needs an LLM.

thedancingdeveloper avatar Nov 01 '26 22:11 thedancingdeveloper