mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-05 06:13:15 +00:00
connector_sessions already holds one row per signed-in account or MCP server. Migration 0038 names each row (connector_key, auth_kind, display_name, account_label) and lets sources and tools point at the row they use through connection_id, backfilling the links it can prove. docsgpt/connectors/catalog.py declares every service DocsGPT connects to, with the server settings it needs and what a connection provides. New endpoints: GET /api/connectors/catalog, GET /api/connections, GET /api/connections/<id> and POST /api/connections/<id>/disconnect. /api/available_tools now groups tools into built_in, service and custom, and source listings carry connectionId.
7 lines
242 B
Python
7 lines
242 B
Python
"""Connectors: one place to connect accounts that feed Sources and Tools.
|
|
|
|
``catalog`` declares the services, ``service`` manages connections (the rows
|
|
of ``connector_sessions``), ``permissions`` classifies tool actions as read
|
|
or write.
|
|
"""
|