-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdev.js
More file actions
31 lines (27 loc) · 1019 Bytes
/
dev.js
File metadata and controls
31 lines (27 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env -S node --conditions development --import tsx
/*
* Copyright (c) 2025, Salesforce, Inc.
* SPDX-License-Identifier: Apache-2
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
*/
/* global process */
/**
* Development entry point for MCP server using oclif.
*
* This uses oclif's development mode which:
* - Uses TypeScript source directly (via tsx loader in shebang)
* - Supports the 'development' condition for exports
* - Loads .env file if present for local configuration
* - Provides better error messages and stack traces
*
* Run directly: ./bin/dev.js mcp --toolsets all
* Or with node: node --conditions development --import tsx bin/dev.js mcp --toolsets all
*/
// Load .env file if present (Node.js native support)
try {
process.loadEnvFile();
} catch {
// .env file not found or not readable, continue without it
}
import {execute} from '@oclif/core';
await execute({development: true, dir: import.meta.url});