Commit graph

4 commits

Author SHA1 Message Date
8683267919 Fix MCP handler for JSON-RPC notifications
The handler now properly handles notifications (no 'id' field) by
returning 202 No Content instead of rejecting with method-not-found.
Fixes "sending notifications/initialized: Bad Request" error.

- Added notifications/initialized and notifications/cancelled handlers
- Unknown notifications silently ignored per JSON-RPC spec
- API route returns 202 for notifications

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4-flash-free
2026-06-12 06:18:52 +03:00
5a56e9f519 Update package-lock.json to match polysearch rename
Syncs lockfile with the project rename from image-search to polysearch.

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4-flash-free
2026-06-12 04:21:06 +03:00
1b56f32c72 Add MCP JSON-RPC endpoint for web_search and image_search tools
Introduces an HTTP-based MCP handler (POST /mcp) that exposes polysearch's
search capabilities to AI agents via the Model Context Protocol. Supports
tools/list, tools/call (web_search, image_search), and initialize methods.

The endpoint shares the existing SearchRunner, proxy pool, and Bearer auth,
so no additional infrastructure or credentials are needed.

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4-flash-free
2026-06-12 04:19:35 +03:00
amancca
5bd3b9d06b feat: initial polysearch - multi-engine search with proxy distribution, circuit breaker, REST API, and metrics 2026-06-05 14:39:11 +03:00