@codify-ai/mcp-client 1.0.22 → 1.0.25
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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
4
|
import { readFileSync, existsSync, mkdirSync } from "fs";
|
|
@@ -16,7 +17,8 @@ const designPhilosophy = readFileSync(
|
|
|
16
17
|
resolve(__dirname$1, "design-philosophy.md"),
|
|
17
18
|
"utf-8"
|
|
18
19
|
);
|
|
19
|
-
const
|
|
20
|
+
const urlArg = process.argv.find((arg) => arg.startsWith("--url="));
|
|
21
|
+
const SERVER_URL = urlArg ? urlArg.slice("--url=".length) : process.env.CODIFY_SERVER_URL || "https://mcp.codify-api.com";
|
|
20
22
|
const ACCESS_KEY = process.env.CODIFY_ACCESS_KEY;
|
|
21
23
|
const CODIFY_DOC_DIR = ".codify";
|
|
22
24
|
const CODIFY_OUTPUT_DIR = ".codify-output";
|