@flemist/mcp-project-tools 3.0.8 → 3.0.10
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/build/cli.js +18 -17
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -1
- package/build/startMcpServer-Yp1zN-1S.js +4026 -0
- package/package.json +10 -5
- package/build/startMcpServer-BwbVbpru.js +0 -3506
package/build/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Command as u } from "commander";
|
|
2
|
-
import { S as c, a as p, b as f, A as g, p as m, s as d } from "./startMcpServer-
|
|
2
|
+
import { S as c, a as p, b as f, A as g, p as m, s as d } from "./startMcpServer-Yp1zN-1S.js";
|
|
3
3
|
import * as i from "path";
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
4
|
+
import * as h from "fs";
|
|
5
|
+
import C from "deepmerge";
|
|
6
6
|
import { pathToFileURL as v } from "url";
|
|
7
7
|
const w = {
|
|
8
8
|
port: 8e3,
|
|
@@ -28,7 +28,8 @@ const w = {
|
|
|
28
28
|
list: !0,
|
|
29
29
|
snapshotQueryCreate: !0,
|
|
30
30
|
snapshotCreate: !0,
|
|
31
|
-
snapshotBrowse: !0
|
|
31
|
+
snapshotBrowse: !0,
|
|
32
|
+
snapshotSearchOrReplace: !0
|
|
32
33
|
},
|
|
33
34
|
playwrightManager: {
|
|
34
35
|
browserCreate: !0,
|
|
@@ -49,22 +50,22 @@ const w = {
|
|
|
49
50
|
};
|
|
50
51
|
async function E(e, a) {
|
|
51
52
|
e || (e = "flemist-mcp.config.js");
|
|
52
|
-
let
|
|
53
|
-
if (e &&
|
|
53
|
+
let r = {};
|
|
54
|
+
if (e && h.existsSync(e))
|
|
54
55
|
try {
|
|
55
56
|
const o = i.resolve(e);
|
|
56
57
|
console.log(`Loading configuration from: ${o}`);
|
|
57
|
-
const
|
|
58
|
-
|
|
58
|
+
const t = await import(v(o).href);
|
|
59
|
+
r = t.default || t;
|
|
59
60
|
} catch (o) {
|
|
60
61
|
throw console.error(`Failed to load config from ${e}:`), o;
|
|
61
62
|
}
|
|
62
63
|
else e && console.warn(
|
|
63
64
|
`Config file not found: ${e}. Using default configuration`
|
|
64
65
|
);
|
|
65
|
-
const s =
|
|
66
|
-
arrayMerge(o,
|
|
67
|
-
return
|
|
66
|
+
const s = C(w, r, {
|
|
67
|
+
arrayMerge(o, t) {
|
|
68
|
+
return t;
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
71
|
return s.tools?.fsManager && (s.tools.fsManager.globsExclude = [
|
|
@@ -74,8 +75,8 @@ async function E(e, a) {
|
|
|
74
75
|
exclude: !0
|
|
75
76
|
},
|
|
76
77
|
...s.tools.fsManager.globsExclude || []
|
|
77
|
-
]), s.tools.fsManager?.globsExclude?.forEach((o,
|
|
78
|
-
o.valueType === "file-contains-patterns" && (l[
|
|
78
|
+
]), s.tools.fsManager?.globsExclude?.forEach((o, t, l) => {
|
|
79
|
+
o.valueType === "file-contains-patterns" && (l[t].value = i.resolve(o.value));
|
|
79
80
|
}), s;
|
|
80
81
|
}
|
|
81
82
|
const n = new u();
|
|
@@ -84,10 +85,10 @@ M(n);
|
|
|
84
85
|
function M(e) {
|
|
85
86
|
e.option("-c, --config [path]", "Path to configuration file (optional)").option("-i, --ignore [path]", "Path to .flemist-mcpignore file (optional)").action(async (a) => {
|
|
86
87
|
try {
|
|
87
|
-
const
|
|
88
|
-
await d(
|
|
89
|
-
} catch (
|
|
90
|
-
console.error("Failed to start MCP server:",
|
|
88
|
+
const r = await E(a.config, a.ignore);
|
|
89
|
+
await d(r);
|
|
90
|
+
} catch (r) {
|
|
91
|
+
console.error("Failed to start MCP server:", r), process.exit(1);
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
94
|
}
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED