1313import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js" ;
1414import { mcpc } from "../mod.ts" ;
1515
16- export const server = await mcpc (
17- [
18- {
19- name : "basic-file-manager" ,
20- version : "1.0.0" ,
21- } ,
22- {
23- capabilities : {
24- tools : {
25- listChanged : true ,
26- } ,
27- } ,
28- } ,
29- ] ,
30- [
31- {
32- name : "file-organizer" ,
33- description :
34- `I am a smart file organizer that helps users manage their files efficiently.
16+ export const toolDefinitions = [
17+ {
18+ name : "file-organizer" ,
19+ description :
20+ `I am a smart file organizer that helps users manage their files efficiently.
3521
3622Available tools:
3723<tool name="@wonderwhy-er/desktop-commander.list_directory"/>
@@ -50,17 +36,33 @@ I can:
5036
5137I always ask for confirmation before making destructive changes and provide clear explanations of what I'm doing.` ,
5238
53- deps : {
54- mcpServers : {
55- "@wonderwhy-er/desktop-commander" : {
56- command : "npx" ,
57- args : [ "-y" , "@wonderwhy-er/desktop-commander@latest" ] ,
58- transportType : "stdio" ,
59- } ,
39+ deps : {
40+ mcpServers : {
41+ "@wonderwhy-er/desktop-commander" : {
42+ command : "npx" ,
43+ args : [ "-y" , "@wonderwhy-er/desktop-commander@latest" ] ,
44+ transportType : "stdio" ,
45+ } ,
46+ } ,
47+ } ,
48+ } ,
49+ ] ;
50+
51+ export const server = await mcpc (
52+ [
53+ {
54+ name : "basic-file-manager" ,
55+ version : "1.0.0" ,
56+ } ,
57+ {
58+ capabilities : {
59+ tools : {
60+ listChanged : true ,
6061 } ,
6162 } ,
6263 } ,
6364 ] ,
65+ toolDefinitions ,
6466) ;
6567
6668const transport = new StdioServerTransport ( ) ;
0 commit comments