Skip to content

Commit 25c223e

Browse files
committed
wip dx changes
1 parent aec6bc3 commit 25c223e

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

packages/b2c-cli/src/commands/_test/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

packages/b2c-dx-mcp/bin/dev.js

100644100755
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@
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)
239
try {

packages/b2c-dx-mcp/src/commands/mcp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

packages/b2c-tooling-sdk/src/cli/base-command.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)