File tree Expand file tree Collapse file tree
b2c-cli/src/commands/_test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ export default class Test extends BaseCommand<typeof Test> {
99 static description = 'Test logging output' ;
1010 static hidden = true ;
1111
12+
13+
1214 async run ( ) : Promise < void > {
1315 // Test this.log() which now uses pino
16+ this . baseCommandTest ( ) ;
1417 this . log ( 'Using this.log() - goes through pino' ) ;
1518 this . warn ( 'Using this.warn() - goes through pino' ) ;
1619
Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2
55 * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
66 */
7- /* global process */
8-
9- /**
10- * Development entry point for MCP server using oclif.
11- *
12- * This uses oclif's development mode which:
13- * - Uses TypeScript source directly (via tsx loader in shebang)
14- * - Supports the 'development' condition for exports
15- * - Loads .env file if present for local configuration
16- * - Provides better error messages and stack traces
17- *
18- * Run directly: ./bin/dev.js mcp --toolsets all
19- * Or with node: node --conditions development --import tsx bin/dev.js mcp --toolsets all
20- */
217
228// Load .env file if present (Node.js native support)
239try {
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ export default class McpServerCommand extends BaseCommand<
163163 * These can be exposed to Services if needed for features like telemetry or caching.
164164 */
165165 async run ( ) : Promise < void > {
166+ this . baseCommandTest ( ) ;
166167 // Flags are already parsed by BaseCommand.init()
167168 // Parse toolsets and tools from comma-separated strings
168169 // Note: toolsets are uppercased, tools are lowercased by their parse functions
Original file line number Diff line number Diff line change @@ -181,6 +181,10 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {
181181 this . error ( err . message , { exit : err . exitCode ?? 1 } ) ;
182182 }
183183
184+ public baseCommandTest ( ) : void {
185+ this . logger . info ( 'BaseCommand initialized' ) ;
186+ }
187+
184188 /**
185189 * Parse extra params from --extra-query and --extra-body flags.
186190 * Returns undefined if no extra params are specified.
You can’t perform that action at this time.
0 commit comments