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; }