File tree Expand file tree Collapse file tree 3 files changed +442
-4
lines changed
Expand file tree Collapse file tree 3 files changed +442
-4
lines changed Original file line number Diff line number Diff line change 1010 "setup" : " npm install && pip install -r tools/requirements.txt" ,
1111 "configure" : " python tools/server-manager.py" ,
1212 "test-connection" : " python tools/test-connection.py" ,
13- "test" : " npm run test:profiles && npm run test:aliases && npm run test:hooks && npm run test:tools" ,
13+ "test" : " npm run test:profiles && npm run test:aliases && npm run test:hooks && npm run test:tools && npm run test:http " ,
1414 "test:profiles" : " node tests/test-profiles.js" ,
1515 "test:aliases" : " node tests/test-command-aliases.js" ,
1616 "test:hooks" : " node tests/test-hooks.js" ,
1717 "test:tools" : " node tests/test-tool-registry.js" ,
18+ "test:http" : " node tests/test-http-server.js" ,
1819 "test:all" : " npm test && ./scripts/validate.sh" ,
1920 "validate" : " ./scripts/validate.sh" ,
2021 "lint" : " eslint src/*.js" ,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ async function getConnection(serverName) {
6363 }
6464
6565 // Get server config
66- const config = configLoader . getServerConfig ( normalizedName ) ;
66+ const config = configLoader . getServer ( normalizedName ) ;
6767 if ( ! config ) {
6868 throw new Error ( `Server not found: ${ serverName } ` ) ;
6969 }
@@ -247,7 +247,7 @@ class McpSshServer {
247247 }
248248
249249 async listServers ( ) {
250- const servers = configLoader . listServers ( ) ;
250+ const servers = configLoader . getAllServers ( ) ;
251251 return {
252252 content : [ {
253253 type : 'text' ,
@@ -472,7 +472,7 @@ async function main() {
472472 await transport . start ( ) ;
473473
474474 console . error ( '' ) ;
475- console . error ( 'Available servers:' , configLoader . listServers ( ) . map ( s => s . name ) . join ( ', ' ) || '(none configured)' ) ;
475+ console . error ( 'Available servers:' , configLoader . getAllServers ( ) . map ( s => s . name ) . join ( ', ' ) || '(none configured)' ) ;
476476 console . error ( '' ) ;
477477 console . error ( 'Connect your Flutter app to: ws://' + host + ':' + port + '/mcp' ) ;
478478 console . error ( '' ) ;
You can’t perform that action at this time.
0 commit comments