@@ -3,11 +3,17 @@ import { McpMetadataStdio } from '@/types/mcp'
33import { reactive , ref } from ' vue'
44import { useStdioStore } from ' @/renderer/store/stdio'
55import { getRawServers } from ' @/renderer/store/mcp'
6+
67import McpEditPage from ' @/renderer/components/pages/McpEditPage.vue'
8+
9+ import MarkdownCard from ' @/renderer/components/common/MarkdownCard.vue'
10+
711const stdioStore = useStdioStore ()
812
913const editDialog = ref (false )
1014
15+ const show = ref (false )
16+
1117const showPassword = reactive <Record <string , boolean >>({})
1218
1319const props = defineProps ({
@@ -33,7 +39,15 @@ const editConfig = () => {
3339 </script >
3440
3541<template >
36- <v-card title =" Stdio Config" >
42+ <v-card :title =" $t('mcp.stdio')" >
43+ <template v-if =" metadata .description ?.implementation " #subtitle >
44+ {{ metadata.description?.implementation.title ?? metadata.description?.implementation.name }}
45+ </template >
46+ <template v-if =" metadata .description ?.implementation .version " #append >
47+ <v-chip size =" small" class =" font-weight-bold" color =" primary" >{{
48+ metadata.description.implementation.version
49+ }}</v-chip >
50+ </template >
3751 <v-divider ></v-divider >
3852 <v-card-text >
3953 <div v-for =" (value, key) in metadata.config" :key =" key" class =" ma-2" >
@@ -104,6 +118,11 @@ const editConfig = () => {
104118 </v-card-text >
105119 <v-divider ></v-divider >
106120 <v-card-actions >
121+ <v-btn
122+ v-if =" metadata.description?.instructions"
123+ :icon =" show ? 'mdi-chevron-up' : 'mdi-chevron-down'"
124+ @click =" show = !show"
125+ ></v-btn >
107126 <v-spacer > </v-spacer >
108127 <v-btn
109128 v-if =" metadata.name in (getRawServers() ?? {})"
@@ -133,6 +152,15 @@ const editConfig = () => {
133152 >
134153 </v-btn >
135154 </v-card-actions >
155+ <v-expand-transition v-if =" metadata.description?.instructions" >
156+ <div v-show =" show" >
157+ <v-divider ></v-divider >
158+
159+ <v-card-text class =" ma-2" >
160+ <MarkdownCard :model-value =" metadata.description.instructions" ></MarkdownCard
161+ ></v-card-text >
162+ </div >
163+ </v-expand-transition >
136164 </v-card >
137165 <McpEditPage v-model =" editDialog" v-model:name =" metadata.name" ></McpEditPage >
138166</template >
0 commit comments