@insforge/mcp 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,16 +8,17 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
8
8
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
9
|
import { program } from "commander";
|
|
10
10
|
program.option("--api_key <value>", "API Key");
|
|
11
|
+
program.option("--api_base_url <value>", "API Base URL");
|
|
11
12
|
program.parse(process.argv);
|
|
12
13
|
var options = program.opts();
|
|
13
|
-
var { api_key } = options;
|
|
14
|
+
var { api_key, api_base_url } = options;
|
|
14
15
|
var server = new McpServer({
|
|
15
16
|
name: "insforge-mcp",
|
|
16
17
|
version: "1.0.0"
|
|
17
18
|
});
|
|
18
19
|
var toolsConfig = registerInsforgeTools(server, {
|
|
19
20
|
apiKey: api_key,
|
|
20
|
-
apiBaseUrl: process.env.API_BASE_URL
|
|
21
|
+
apiBaseUrl: api_base_url || process.env.API_BASE_URL
|
|
21
22
|
});
|
|
22
23
|
async function main() {
|
|
23
24
|
const transport = new StdioServerTransport();
|