feat: library entry point + search filters (v1.1.0) - #125
Merged
rbuchmayer-pplx merged 3 commits intoJul 27, 2026
Conversation
The package was bin-only: dist/index.js starts a stdio server at import
time, so there was no way to embed the MCP server in another Node
process. Add a proper exports map pointing at dist/server.js (side
effect free) with TypeScript declarations, so hosts can
import { createPerplexityServer } and mount their own transport. The
perplexity-mcp bin and npx behavior are unchanged.
perplexity_ask and perplexity_reason already expose search_recency_filter and search_domain_filter; perplexity_search did not, even though the search endpoint supports both. Reuse the same shared schema fields and pass them through to the search request.
rbuchmayer-pplx
marked this pull request as ready for review
July 27, 2026 18:13
The MCP initialize response and User-Agent come from a VERSION constant that was still 1.0.0. Bump it, add a test pinning the advertised version to package.json so they cannot drift again, remove an accidentally committed pack tarball, and gitignore *.tgz.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two additions bundled into one 1.1.0 release.
Library entry point
exportsmap with.->dist/server.js(side effect free) so hosts canimport { createPerplexityServer }and mount their own transport.d.tsfiles in the tarballperplexity-mcpbin andnpxbehavior unchangedSearch filters
perplexity_searchnow supportssearch_recency_filterandsearch_domain_filter, the same fieldsperplexity_askandperplexity_reasonalready expose, passed through to the search endpointVerified by installing the packed tarball into a clean project (library import returns a working server, bin still runs) and by live calls confirming domain and recency filtering behavior.
Note: merging publishes 1.1.0 (the publish workflow triggers on
package.jsonchanges).