fix: make mcp suggestions runtime-backed
This commit is contained in:
@@ -414,12 +414,14 @@ function completeDynamicToolTurn(thread, turnId, text) {
|
||||
function completeMcpToolTurn(thread, turnId) {
|
||||
const itemId = 'mcp-ccweb-list';
|
||||
const ccwebConfig = thread.config?.['mcp_servers.ccweb'] || null;
|
||||
const projectConfig = thread.config?.['mcp_servers.reg-app-project'] || null;
|
||||
const env = ccwebConfig?.env || {};
|
||||
const payload = {
|
||||
ok: true,
|
||||
currentConversationId: env.CC_WEB_SOURCE_SESSION_ID || null,
|
||||
sourceHopCount: env.CC_WEB_CROSS_HOP_COUNT || null,
|
||||
hasCcwebMcpConfig: Boolean(ccwebConfig),
|
||||
hasProjectMcpConfig: Boolean(projectConfig),
|
||||
};
|
||||
const itemBase = {
|
||||
id: itemId,
|
||||
|
||||
Reference in New Issue
Block a user