add a special token type for MCP

This commit is contained in:
MaysWind
2025-07-07 01:20:38 +08:00
parent fbaf6086e3
commit 0140fc7622
26 changed files with 424 additions and 17 deletions
+3 -1
View File
@@ -24,7 +24,7 @@
<f7-list strong inset dividers media-list class="margin-top" v-else-if="!loading">
<f7-list-item class="list-item-media-valign-middle" swipeout
:id="session.domId"
:title="tt(session.isCurrent ? 'Current' : 'Other Device')"
:title="session.deviceType === 'mcp' ? 'MCP' : (tt(session.isCurrent ? 'Current' : 'Other Device'))"
:text="session.deviceInfo"
:key="session.tokenId"
v-for="session in sessions">
@@ -107,6 +107,8 @@ function getTokenIcon(deviceType: string): string {
return 'device_tablet_portrait';
} else if (deviceType === 'tv') {
return 'tv';
} else if (deviceType === 'mcp') {
return 'wand_stars';
} else if (deviceType === 'cli') {
return 'chevron_left_slash_chevron_right';
} else {