Skip to content

feat(docs): add a public search route for the deprecated docs MCP server - #166

Merged
ChiragAgg5k merged 2 commits into
mainfrom
feat/docs-search-route
Nov 4, 2026
Merged

ChiragAgg5k merged 2 commits into
mainfrom
feat/docs-search-route

fix(docs): cap the search route body before parsing it

893286d
Select commit
Loading
Failed to load commit list.
hansi.codes / Hansi completed Nov 4, 2026 in 37s

Tier B: Needs changes before merging

The earlier finding about unauthenticated access to paid embeddings remains open; this incremental change only addresses request-body buffering.

This pull request adds a public POST /docs/search endpoint for clients of the deprecated docs MCP server and separates document ranking from MCP response formatting. The route uses the existing search index, fixes the page limit, validates queries, and includes end-to-end coverage for unauthenticated search and invalid requests.