From e83b285f9eaa3c63d7b2d08a31f24616acbcc256 Mon Sep 17 00:00:00 2001 From: Endless Agent Date: Wed, 6 May 2026 09:38:05 +0000 Subject: [PATCH] =?UTF-8?q?feat(dev):=20=E4=BF=AE=E6=94=B9=20mcp=20?= =?UTF-8?q?=E4=B8=8B=20Available=20tools=20=E7=9A=84=20tool=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=94=A8=20title=20=E5=AD=97=E6=AE=B5,=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E8=AF=AD=E8=A8=80,=E7=94=A8=E5=B0=8F?= =?UTF-8?q?=E5=AD=97=E5=8F=B7=E6=A0=87=E8=AE=B0=E5=B1=9E=E4=BA=8E=E9=82=A3?= =?UTF-8?q?=E4=B8=AA=20socpe,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated by Endless task #7. Co-authored-by: 老袁 Yuan Zhanghong --- docs/.vitepress/theme/components/McpTools.vue | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/theme/components/McpTools.vue b/docs/.vitepress/theme/components/McpTools.vue index 0fef4a58..2efacc10 100644 --- a/docs/.vitepress/theme/components/McpTools.vue +++ b/docs/.vitepress/theme/components/McpTools.vue @@ -25,6 +25,7 @@ interface ToolSchema { interface Tool { name: string + title?: string description: string inputSchema?: ToolSchema } @@ -79,6 +80,7 @@ const filtered = computed(() => { return allTools.filter( (t) => t.name.toLowerCase().includes(q) || + t.title?.toLowerCase().includes(q) || t.description.toLowerCase().includes(q) ) }) @@ -181,7 +183,10 @@ function getParams(schema?: ToolSchema): ParamRow[] { > - {{ tool.name }} + + {{ tool.title || tool.name }} + {{ tool.name }} + @@ -329,16 +334,29 @@ function getParams(schema?: ToolSchema): ParamRow[] { color: var(--vp-c-brand-1); } -.mcp-tool-name { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; +.mcp-tool-header { + display: inline-flex; + flex-direction: column; + align-items: flex-start; + gap: 0.1rem; +} + +.mcp-tool-label { font-size: 1rem; color: var(--vp-c-text-1); + line-height: 1.3; +} + +.mcp-tool-scope { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; + font-size: 0.7rem; + color: var(--vp-c-text-3); background: transparent; padding: 0; } .mcp-tools-list :deep(.mcp-accordion-trigger) { - padding: 0.5rem 0; + padding: 0.6rem 0; font-size: 1rem; }