improvement(mcp): restructure mcp tools caching/fetching info to improve UX (#2416)

* feat(mcp): improve cache practice

* restructure mcps fetching, caching, UX indicators

* fix schema

* styling improvements

* fix tooltips and render issue

* fix loading sequence + add redis

---------

Co-authored-by: waleed <walif6@gmail.com>
This commit is contained in:
Vikhyath Mondreti
2025-12-16 21:23:18 -08:00
committed by GitHub
parent b7228d57f7
commit de330d80f5
31 changed files with 9087 additions and 337 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "mcp_servers" ADD COLUMN "status_config" jsonb DEFAULT '{}';

File diff suppressed because it is too large Load Diff

View File

@@ -855,6 +855,13 @@
"when": 1765587157593,
"tag": "0122_pale_absorbing_man",
"breakpoints": true
},
{
"idx": 123,
"version": "7",
"when": 1765932898404,
"tag": "0123_windy_lockheed",
"breakpoints": true
}
]
}

View File

@@ -1547,6 +1547,8 @@ export const mcpServers = pgTable(
connectionStatus: text('connection_status').default('disconnected'),
lastError: text('last_error'),
statusConfig: jsonb('status_config').default('{}'),
toolCount: integer('tool_count').default(0),
lastToolsRefresh: timestamp('last_tools_refresh'),
totalRequests: integer('total_requests').default(0),