File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 11import { ViteMcp as mcp } from 'vite-plugin-mcp'
2- import type { HeadConfig } from 'vitepress'
32import { defineConfig } from 'vitepress'
43import llmstxt from 'vitepress-plugin-llms'
54import pkg from '../../package.json' with { type : 'json' }
65
6+ import type { HeadConfig } from 'vitepress'
7+
78const head : HeadConfig [ ] = [ [ 'link' , { rel : 'icon' , href : '/vue-i18n-logo.png' } ] ]
89
910export 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 ) ]
You can’t perform that action at this time.
0 commit comments