Repository navigation
This release has breaking changes.
Changed
- BREAKING:
recencyhas no default. It used to default tomonth, so every query was nudged toward the last month; omit it now for no time limit. It is sent as Perplexity'ssearch_recency_filterinstead of a hint in the system prompt, acceptshour,day,week,month,year, and rejects other values - BREAKING: sources and images are appended to the text content (a numbered
Sources:list from the top-levelsearch_results, falling back to the deprecatedcitations, and anImages:list whenreturn_imagesis set) instead of being returned undermeta return_citationsis no longer sent to the API (Perplexity always returns sources); it controls whether theSources:list is appended- The publish workflow installs npm 11.21.0 instead of
npm@latest, so a release never runs an npm version that came out the same day
Removed
- BREAKING: the
metafield of the tool result, includingmeta.modelandmeta.usage, which clients did receive. Itscitationsandimageswere read fromchoices[0].message, where Perplexity does not put them, so they were always empty - BREAKING: the
streamparameter. The server parsed the reply as one JSON body, sostream: truemade the API return server-sent events and the call failed; an MCP tool result is returned whole anyway.streamis never sent to the API
Fixed
- A response without
choices[0].message.contentgives a clear error instead of a TypeError - The publish workflow runs when a release is published, not when it is created, so a release saved as a draft first still publishes to npm
Added
- Requests to the Perplexity API send an
X-Pplx-Integration: perplexity-mcpheader so Perplexity can attribute traffic to this server - Tests (
npm test,node --test) for the request builder, the response formatter and the tool schema over stdio, run in CI after the build
Install: npx -y @jschuller/perplexity-mcp@3.0.0. Published from GitHub Actions with npm provenance.