Skip to content

Commit 906ba30

Browse files
committed
fix
1 parent 8d7adec commit 906ba30

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/.vitepress/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ async function main() {
3535
console.log('Connected using SSE transport')
3636
}
3737

38+
const version = await client.getServerVersion()
39+
console.log('Server version:', version)
40+
3841
// List tools
3942
const tools = await client.listTools()
4043
console.log('list tools', tools)

docs/.vitepress/config.mts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { ViteMcp as mcp } from 'vite-plugin-mcp'
2-
import type { HeadConfig } from 'vitepress'
32
import { defineConfig } from 'vitepress'
43
import llmstxt from 'vitepress-plugin-llms'
54
import pkg from '../../package.json' with { type: 'json' }
65

6+
import type { HeadConfig } from 'vitepress'
7+
78
const head: HeadConfig[] = [['link', { rel: 'icon', href: '/vue-i18n-logo.png' }]]
89

910
export default defineConfig({
@@ -20,8 +21,12 @@ export default defineConfig({
2021
plugins: [llmstxt(), mcp(
2122
{
2223
mcpServerInfo: {
23-
name: 'Vue I18n Docs',
24+
name: 'Vue I18n MCP Docs',
2425
version: pkg.version
26+
},
27+
mcpServerSetup(mcpServer, viteServer) {
28+
console.log('Setting up MCP server for Vue I18n docs...', viteServer.config.vitepress)
29+
return mcpServer
2530
}
2631
}
2732
)]

0 commit comments

Comments
 (0)