SurfSense/surfsense_backend/app/routes
DESKTOP-RTLN3BA\$punk ab747e7a49 feat(agents): consolidate connectors under mcp_discovery; route web search through google_search
MCP consolidation:
- Route all MCP-capable connectors (Slack, Jira, Linear, ClickUp, Airtable,
  Notion, Confluence, interim Gmail/Calendar, custom MCP) through a single
  `mcp_discovery` subagent. Drive/OneDrive/Dropbox stay native to enrich the KB.
- Deprecate Discord/Teams/Luma: no viable official MCP server.

Google-only web search:
- Remove the main-agent `web_search` tool and the SearXNG platform service;
  all public web search now flows through the `google_search` subagent via task().
- Deprecate the Tavily/SearXNG/Linkup/Baidu search connectors (HTTP 410 on
  create, "Deprecated" badge); guide heavy users to the custom MCP connector.
- Remove web search from anonymous chat (pure Q&A).
- Tear SearXNG out of docker compose + install scripts; drop tavily-python
  and linkup-sdk deps and their config/env vars.

Fix:
- metrics._package_version() now swallows any metadata lookup failure. A
  malformed editable-install distribution with no `Version` field raised
  KeyError deep in importlib.metadata, and since it runs on every
  record_subagent_invoke_duration call it was crashing every task()
  delegation. Verified end-to-end against live GPT-5.4.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 21:06:04 -07:00
..
__init__.py feat(reddit): implement Reddit scraping subagent and associated capabilities 2026-07-04 17:31:11 -07:00
agent_action_log_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
agent_flags_route.py agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
agent_permissions_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
agent_revert_route.py refactor: unify authentication handling by replacing current_active_user with auth context across routes 2026-06-19 21:38:18 +05:30
airtable_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
anonymous_chat_routes.py feat(agents): consolidate connectors under mcp_discovery; route web search through google_search 2026-07-04 21:06:04 -07:00
auth_routes.py chore: fix linting 2026-06-25 04:31:22 +05:30
chat_comments_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
circleback_webhook_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
clickup_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
composio_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
confluence_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
discord_add_connector_route.py feat(agents): consolidate connectors under mcp_discovery; route web search through google_search 2026-07-04 21:06:04 -07:00
documents_routes.py refactor(youtube): remove legacy KB ingestion; use actor get_youtube_video_id 2026-07-03 12:00:22 +02:00
dropbox_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
editor_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
export_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
folders_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
gateway_webhook_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
gateway_whatsapp_baileys_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
gateway_whatsapp_webhook_routes.py chore: linting 2026-06-09 00:42:26 -07:00
google_calendar_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
google_drive_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
google_gmail_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
image_generation_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
incentive_tasks_routes.py feat(auth): require sessions for user-scoped routes 2026-06-20 01:57:48 +05:30
jira_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
linear_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
logs_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
luma_add_connector_route.py feat(agents): consolidate connectors under mcp_discovery; route web search through google_search 2026-07-04 21:06:04 -07:00
mcp_oauth_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
memory_routes.py feat(auth): require sessions for user-scoped routes 2026-06-20 01:57:48 +05:30
model_connections_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
model_list_routes.py feat(auth): require sessions for user-scoped routes 2026-06-20 01:57:48 +05:30
new_chat_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
notes_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
notion_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
oauth_connector_base.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
obsidian_plugin_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
onedrive_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
personal_access_tokens_routes.py feat: add personal access token API routes 2026-06-19 20:26:56 +05:30
prompts_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
public_chat_routes.py feat(auth): require sessions for user-scoped routes 2026-06-20 01:57:48 +05:30
rbac_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
reports_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
sandbox_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
search_source_connectors_routes.py feat(agents): consolidate connectors under mcp_discovery; route web search through google_search 2026-07-04 21:06:04 -07:00
slack_add_connector_route.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
stripe_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
team_memory_routes.py refactor(routes): rename to workspace + consolidate URL spellings (Phase 2 Wave E) 2026-06-26 18:35:08 +02:00
teams_add_connector_route.py feat(agents): consolidate connectors under mcp_discovery; route web search through google_search 2026-07-04 21:06:04 -07:00
users_routes.py chore: fix linting 2026-06-25 04:31:22 +05:30
video_presentations_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
workspaces_routes.py feat(native-connector): added google maps places & reviews scrapers 2026-07-02 21:58:24 -07:00
youtube_routes.py refactor(youtube): drop duplicate POST /youtube/scrape+comments routes (use capability doors) 2026-07-03 11:38:56 +02:00
zero_context_routes.py chore: fix linting 2026-06-25 04:31:36 +05:30