diff --git a/docs/.vitepress/theme/components/McpTools.vue b/docs/.vitepress/theme/components/McpTools.vue index 0fef4a58..dda22ab4 100644 --- a/docs/.vitepress/theme/components/McpTools.vue +++ b/docs/.vitepress/theme/components/McpTools.vue @@ -1,5 +1,6 @@ @@ -126,7 +219,7 @@ function getParams(schema?: ToolSchema): ParamRow[] { v-model="query" type="text" class="mcp-tools-input" - placeholder="Search tools by name or description..." + :placeholder="i18n.search" /> - No tools match "{{ query }}" + {{ i18n.noMatch(query) }} - - - - - - - - {{ tool.name }} - - - - {{ tool.description }} - - - No parameters - - - - Parameters - - + + + + - - {{ p.name }} - {{ p.type }} - Required - - - {{ p.description }} - - Enum: {{ p.enum.map((e) => `"${e}"`).join(' | ') }} - - - Default: {{ p.default }} - - - - - - - - + + + + {{ getTitle(tool) }} + + {{ getScopeLabel(tool)!.label }} + + + + + + {{ getDescription(tool) }} + + + {{ i18n.noParams }} + + + + {{ i18n.parameters }} + + + + {{ p.name }} + {{ p.type }} + {{ i18n.required }} + + + {{ p.description }} + + Enum: {{ p.enum.map((e) => `"${e}"`).join(' | ') }} + + + Default: {{ p.default }} + + + + + + + + @@ -253,7 +351,6 @@ function getParams(schema?: ToolSchema): ParamRow[] { left: 0.75rem; color: var(--vp-c-text-3); pointer-events: none; - transition: color 0.15s ease; } .mcp-tools-input { @@ -294,7 +391,6 @@ function getParams(schema?: ToolSchema): ParamRow[] { background: var(--vp-c-default-soft); } - .mcp-tools-empty { padding: 1rem; text-align: center; @@ -314,10 +410,12 @@ function getParams(schema?: ToolSchema): ParamRow[] { border-bottom: 0; } -.mcp-tool-title { +.mcp-tool-trigger { display: inline-flex; align-items: center; gap: 0.5rem; + flex: 1; + min-width: 0; } .mcp-tool-icon { @@ -329,19 +427,45 @@ function getParams(schema?: ToolSchema): ParamRow[] { color: var(--vp-c-brand-1); } +.mcp-tool-meta { + display: flex; + flex-direction: row; + align-items: baseline; + flex: 1; + min-width: 0; +} + +.mcp-tool-title { + font-size: 0.9rem; + font-weight: 500; + color: var(--vp-c-text-1); + line-height: 1.3; +} + .mcp-tool-name { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; - font-size: 1rem; - color: var(--vp-c-text-1); + font-size: 0.72rem; + color: var(--vp-c-text-3); background: transparent; padding: 0; } .mcp-tools-list :deep(.mcp-accordion-trigger) { - padding: 0.5rem 0; - font-size: 1rem; + padding: 0.55rem 0; } +/* Scope label */ +.mcp-scope-label { + margin-left: auto; + padding-right: 0.5rem; + font-size: 0.65rem; + line-height: 1; + color: var(--vp-c-text-3); + white-space: nowrap; +} + + +/* Content */ .mcp-tool-desc { margin: 0 0 0.5rem; color: var(--vp-c-text-2); @@ -370,12 +494,8 @@ function getParams(schema?: ToolSchema): ParamRow[] { .mcp-param { padding: 0.3rem 0; } -.mcp-param:first-child { - padding-top: 0; -} -.mcp-param:last-child { - padding-bottom: 0; -} +.mcp-param:first-child { padding-top: 0; } +.mcp-param:last-child { padding-bottom: 0; } .mcp-param-head { display: flex;
{{ tool.name }}
{{ tool.description }}
- No parameters -
{{ p.name }}
{{ p.description }}
- Enum: {{ p.enum.map((e) => `"${e}"`).join(' | ') }} -
- Default: {{ p.default }} -
{{ getDescription(tool) }}
+ {{ i18n.noParams }} +
+ Enum: {{ p.enum.map((e) => `"${e}"`).join(' | ') }} +
+ Default: {{ p.default }} +