@flemist/mcp-project-tools 4.0.0 → 4.0.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/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Command as s } from "commander";
2
- import { l as a, A as i, S as n, a as c, b as p, p as l, s as f } from "./startMcpServer-DlH29csG.js";
2
+ import { l as a, A as i, S as n, a as c, b as p, p as l, s as f } from "./startMcpServer-CFc7yLZJ.js";
3
3
  import * as m from "path";
4
4
  const v = {
5
5
  title: p,
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s } from "./startMcpServer-DlH29csG.js";
1
+ import { s } from "./startMcpServer-CFc7yLZJ.js";
2
2
  export {
3
3
  s as startMcpServer
4
4
  };
@@ -1089,7 +1089,7 @@ function Kr(r, t) {
1089
1089
  }
1090
1090
  return e;
1091
1091
  }
1092
- const Wr = "4.0.0", Hr = {
1092
+ const Wr = "4.0.1", Hr = {
1093
1093
  version: Wr
1094
1094
  }, Po = "Project Tools", Ao = "project-tools", zo = Hr.version, Uo = "d00f70240703039df14c76176a055bce6b5484d2b552ba2c89820f03b8e5e60d", Ae = 25e3;
1095
1095
  function ze(r) {
@@ -0,0 +1,290 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/NikolayMakhonin/mcp-project/flemist-mcp.config.schema.json",
4
+ "title": "Flemist MCP Project Tools Configuration",
5
+ "description": "Configuration schema for MCP project tools. Can be used as server config (with projects field) or project config (with tools field)",
6
+ "type": "object",
7
+ "definitions": {
8
+ "commandLineRule": {
9
+ "type": "object",
10
+ "description": "Rule for allowing or denying command execution",
11
+ "properties": {
12
+ "rule": {
13
+ "type": "string",
14
+ "enum": ["allow", "deny"],
15
+ "description": "Whether to allow or deny commands matching this pattern"
16
+ },
17
+ "note": {
18
+ "type": "string",
19
+ "description": "Description or purpose of this rule for AI agents"
20
+ },
21
+ "regexp": {
22
+ "type": "string",
23
+ "description": "Case-sensitive regular expression pattern to match against command line"
24
+ }
25
+ },
26
+ "required": ["rule", "note", "regexp"],
27
+ "additionalProperties": false
28
+ },
29
+ "glob": {
30
+ "type": "object",
31
+ "description": "Glob pattern configuration for file filtering",
32
+ "properties": {
33
+ "value": {
34
+ "type": "string",
35
+ "description": "Glob pattern or path to file containing patterns"
36
+ },
37
+ "valueType": {
38
+ "type": "string",
39
+ "enum": ["file-contains-patterns", "pattern"],
40
+ "description": "Whether value is a glob pattern or path to file containing patterns"
41
+ },
42
+ "exclude": {
43
+ "type": "boolean",
44
+ "description": "If true, matching files are excluded (like .gitignore)"
45
+ }
46
+ },
47
+ "required": ["value", "valueType", "exclude"],
48
+ "additionalProperties": false
49
+ },
50
+ "processManagerOptions": {
51
+ "type": "object",
52
+ "description": "Process manager tool configuration",
53
+ "properties": {
54
+ "workingDir": {
55
+ "type": ["string", "null"],
56
+ "description": "Working directory for process execution. Null uses project directory"
57
+ },
58
+ "commandLineRules": {
59
+ "type": "array",
60
+ "items": { "$ref": "#/definitions/commandLineRule" },
61
+ "description": "Rules processed in order for command line validation. Later rules override earlier ones"
62
+ },
63
+ "run": {
64
+ "type": ["boolean", "null"],
65
+ "default": true,
66
+ "description": "Enable process-run tool"
67
+ },
68
+ "status": {
69
+ "type": ["boolean", "null"],
70
+ "default": true,
71
+ "description": "Enable process-status tool"
72
+ },
73
+ "wait": {
74
+ "type": ["boolean", "null"],
75
+ "default": true,
76
+ "description": "Enable process-wait tool"
77
+ },
78
+ "list": {
79
+ "type": ["boolean", "null"],
80
+ "default": true,
81
+ "description": "Enable process-list tool"
82
+ },
83
+ "kill": {
84
+ "type": ["boolean", "null"],
85
+ "default": true,
86
+ "description": "Enable process-kill tool"
87
+ }
88
+ },
89
+ "additionalProperties": false
90
+ },
91
+ "fsManagerOptions": {
92
+ "type": "object",
93
+ "description": "Filesystem manager tool configuration",
94
+ "properties": {
95
+ "workingDir": {
96
+ "type": ["string", "null"],
97
+ "description": "Working directory for filesystem operations. Null uses project directory"
98
+ },
99
+ "globsExclude": {
100
+ "type": ["array", "null"],
101
+ "items": { "$ref": "#/definitions/glob" },
102
+ "description": "Glob patterns for files/directories to exclude from operations"
103
+ },
104
+ "list": {
105
+ "type": ["boolean", "null"],
106
+ "default": true,
107
+ "description": "Enable fs-list tool"
108
+ },
109
+ "snapshotQueryCreate": {
110
+ "type": ["boolean", "null"],
111
+ "default": true,
112
+ "description": "Enable fs-snapshot-query-create tool"
113
+ },
114
+ "snapshotCreate": {
115
+ "type": ["boolean", "null"],
116
+ "default": true,
117
+ "description": "Enable fs-snapshot-create tool"
118
+ },
119
+ "snapshotBrowse": {
120
+ "type": ["boolean", "null"],
121
+ "default": true,
122
+ "description": "Enable fs-snapshot-browse tool"
123
+ },
124
+ "snapshotSearch": {
125
+ "type": ["boolean", "null"],
126
+ "default": true,
127
+ "description": "Enable fs-snapshot-search tool"
128
+ },
129
+ "snapshotReplace": {
130
+ "type": ["boolean", "null"],
131
+ "default": true,
132
+ "description": "Enable fs-snapshot-replace-prepare and fs-snapshot-replace-execute tools"
133
+ }
134
+ },
135
+ "additionalProperties": false
136
+ },
137
+ "playwrightManagerOptions": {
138
+ "type": "object",
139
+ "description": "Playwright browser automation tool configuration",
140
+ "properties": {
141
+ "browserCreate": {
142
+ "type": ["boolean", "null"],
143
+ "default": true,
144
+ "description": "Enable playwright-browser-create tool"
145
+ },
146
+ "browserList": {
147
+ "type": ["boolean", "null"],
148
+ "default": true,
149
+ "description": "Enable playwright-browser-list tool"
150
+ },
151
+ "browserClose": {
152
+ "type": ["boolean", "null"],
153
+ "default": true,
154
+ "description": "Enable playwright-browser-close tool"
155
+ },
156
+ "contextCreate": {
157
+ "type": ["boolean", "null"],
158
+ "default": true,
159
+ "description": "Enable playwright-context-create tool"
160
+ },
161
+ "contextList": {
162
+ "type": ["boolean", "null"],
163
+ "default": true,
164
+ "description": "Enable playwright-context-list tool"
165
+ },
166
+ "contextClose": {
167
+ "type": ["boolean", "null"],
168
+ "default": true,
169
+ "description": "Enable playwright-context-close tool"
170
+ },
171
+ "pageCreate": {
172
+ "type": ["boolean", "null"],
173
+ "default": true,
174
+ "description": "Enable playwright-page-create tool"
175
+ },
176
+ "pageList": {
177
+ "type": ["boolean", "null"],
178
+ "default": true,
179
+ "description": "Enable playwright-page-list tool"
180
+ },
181
+ "pageClose": {
182
+ "type": ["boolean", "null"],
183
+ "default": true,
184
+ "description": "Enable playwright-page-close tool"
185
+ },
186
+ "pageGoto": {
187
+ "type": ["boolean", "null"],
188
+ "default": true,
189
+ "description": "Enable playwright-page-goto tool"
190
+ },
191
+ "domSnapshotQueryCreate": {
192
+ "type": ["boolean", "null"],
193
+ "default": true,
194
+ "description": "Enable playwright-dom-snapshot-query-create tool"
195
+ },
196
+ "domSnapshotCreate": {
197
+ "type": ["boolean", "null"],
198
+ "default": true,
199
+ "description": "Enable playwright-dom-snapshot-create tool"
200
+ },
201
+ "domSnapshotBrowse": {
202
+ "type": ["boolean", "null"],
203
+ "default": true,
204
+ "description": "Enable playwright-dom-snapshot-browse tool"
205
+ }
206
+ },
207
+ "additionalProperties": false
208
+ },
209
+ "tools": {
210
+ "type": "object",
211
+ "description": "Tool manager configurations",
212
+ "properties": {
213
+ "processManager": {
214
+ "oneOf": [
215
+ { "$ref": "#/definitions/processManagerOptions" },
216
+ { "type": "null" }
217
+ ],
218
+ "description": "Process manager configuration. Null disables all process tools"
219
+ },
220
+ "fsManager": {
221
+ "oneOf": [
222
+ { "$ref": "#/definitions/fsManagerOptions" },
223
+ { "type": "null" }
224
+ ],
225
+ "description": "Filesystem manager configuration. Null disables all filesystem tools"
226
+ },
227
+ "playwrightManager": {
228
+ "oneOf": [
229
+ { "$ref": "#/definitions/playwrightManagerOptions" },
230
+ { "type": "null" }
231
+ ],
232
+ "description": "Playwright manager configuration. Null disables all playwright tools"
233
+ }
234
+ },
235
+ "additionalProperties": false
236
+ }
237
+ },
238
+ "properties": {
239
+ "$schema": {
240
+ "type": "string",
241
+ "description": "JSON Schema reference"
242
+ },
243
+ "title": {
244
+ "type": "string",
245
+ "description": "Server title displayed in MCP client"
246
+ },
247
+ "name": {
248
+ "type": "string",
249
+ "description": "Server name identifier"
250
+ },
251
+ "version": {
252
+ "type": "string",
253
+ "description": "Server version"
254
+ },
255
+ "port": {
256
+ "type": "integer",
257
+ "minimum": 0,
258
+ "maximum": 65535,
259
+ "default": 8000,
260
+ "description": "HTTP server port"
261
+ },
262
+ "host": {
263
+ "type": "string",
264
+ "default": "localhost",
265
+ "description": "HTTP server host"
266
+ },
267
+ "authToken": {
268
+ "type": "string",
269
+ "description": "Authentication token for MCP requests"
270
+ },
271
+ "logDir": {
272
+ "type": "string",
273
+ "default": "tmp/mcp-project-tools/logs",
274
+ "description": "Directory for log files, resolved relative to config directory"
275
+ },
276
+ "projects": {
277
+ "type": "object",
278
+ "additionalProperties": {
279
+ "type": "string",
280
+ "description": "Path to project directory"
281
+ },
282
+ "description": "Map of project names to project directory paths (server config only)"
283
+ },
284
+ "tools": {
285
+ "$ref": "#/definitions/tools",
286
+ "description": "Tool configurations (project config only)"
287
+ }
288
+ },
289
+ "additionalProperties": false
290
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flemist/mcp-project-tools",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "MCP project tools",
5
5
  "publishConfig": {
6
6
  "access": "public"