Module db

Module db 

Source
Expand description

MCP Database Access - Connect to the CSM database for csm-web integration

This module provides read-only access to the CSM database, enabling the MCP server to expose csm-web’s chat sessions without modifying VS Code’s workspace storage.

Functions§

count_sessions_by_provider
Count sessions by provider
csm_db_exists
Check if the CSM database exists
get_csm_db_path
Get the default CSM database path
get_db_messages
Get messages for a session
get_db_session
Get a specific session by ID
get_db_workspace
Get a specific workspace by ID
list_db_sessions
List sessions from the CSM database
list_db_workspaces
List all workspaces from the CSM database
open_csm_db
Open the CSM database (read-only mode)
search_db_sessions
Search sessions by title or content