@flemist/mcp-project-tools 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,5 @@
1
+ Unlimited Free Licence
2
+
3
+ Point one: Everyone can do whatever they want with this code, except to limit others from using point one.
4
+ Point two: Whoever and whatever does with this code, it does not entail any obligations for anyone to the author.
5
+ Point three: The author is not responsible for anything.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # MCP Project Tools
2
+
3
+ MCP project tools for AI agents.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install mcp-project-tools
9
+ ```
10
+
11
+ ## Current Tools
12
+
13
+ ### File System Tools
14
+ - `mcp__project-tools__fs-list` - List files and directories with filtering options
15
+
16
+ ### Process Management Tools
17
+ - `mcp__project-tools__process-run` - Execute commands and processes
18
+ - `mcp__project-tools__process-list` - List running processes
19
+ - `mcp__project-tools__process-kill` - Terminate processes
20
+ - `mcp__project-tools__process-status` - Get process status
21
+ - `mcp__project-tools__process-wait` - Wait for process completion
22
+
23
+ ## Usage
24
+
25
+ ### As MCP Server
26
+
27
+ This package provides MCP (Model Context Protocol) tools that can be used by AI agents.
28
+
29
+ ### CLI Usage
30
+
31
+ ```bash
32
+ mcp-project-tools
33
+ ```
34
+
35
+ ## Requirements
36
+
37
+ - Node.js >= 20
38
+ - pnpm >=8
39
+
40
+ ## License
41
+
42
+ Unlimited Free
package/build/cli.js ADDED
@@ -0,0 +1,33 @@
1
+ import { s as startMcpServer, S as SERVER_VERSION, a as SERVER_NAME, A as AUTH_TOKEN } from "./startMcpServer-CA4IQ8YJ.js";
2
+ import * as path from "path";
3
+ startMcpServer({
4
+ port: 8e3,
5
+ host: "local.host",
6
+ authToken: AUTH_TOKEN,
7
+ name: SERVER_NAME,
8
+ version: SERVER_VERSION,
9
+ logDir: "tmp/mcp-project-tools/logs",
10
+ enableJsonResponse: false,
11
+ tools: {
12
+ processManager: {
13
+ run: {
14
+ allowedCommands: ["pnpm", "echo", "vitest"]
15
+ }
16
+ },
17
+ fsManager: {
18
+ list: {
19
+ globsExclude: [
20
+ {
21
+ value: path.resolve(".mcpignore"),
22
+ valueType: "file-contains-patterns",
23
+ exclude: true
24
+ }
25
+ ]
26
+ }
27
+ }
28
+ }
29
+ }).catch((error) => {
30
+ console.error("Failed to start MCP server:", error);
31
+ process.exit(1);
32
+ });
33
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sources":["../src/cli.ts"],"sourcesContent":["import { startMcpServer } from 'src/server/startMcpServer'\nimport { AUTH_TOKEN, SERVER_NAME, SERVER_VERSION } from 'src/config/constants'\nimport * as path from 'path'\n\nstartMcpServer({\n port: 8000,\n host: 'local.host',\n authToken: AUTH_TOKEN,\n name: SERVER_NAME,\n version: SERVER_VERSION,\n logDir: 'tmp/mcp-project-tools/logs',\n enableJsonResponse: false,\n tools: {\n processManager: {\n run: {\n allowedCommands: ['pnpm', 'echo', 'vitest'],\n },\n },\n fsManager: {\n list: {\n globsExclude: [\n {\n value: path.resolve('.mcpignore'),\n valueType: 'file-contains-patterns',\n exclude: true,\n },\n ],\n },\n },\n },\n}).catch(error => {\n console.error('Failed to start MCP server:', error)\n process.exit(1)\n})\n"],"names":[],"mappings":";;AAIA,eAAe;AAAA,EACb,MAAM;AAAA,EACN,MAAM;AAAA,EACN,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,OAAO;AAAA,IACL,gBAAgB;AAAA,MACd,KAAK;AAAA,QACH,iBAAiB,CAAC,QAAQ,QAAQ,QAAQ;AAAA,MAAA;AAAA,IAC5C;AAAA,IAEF,WAAW;AAAA,MACT,MAAM;AAAA,QACJ,cAAc;AAAA,UACZ;AAAA,YACE,OAAO,KAAK,QAAQ,YAAY;AAAA,YAChC,WAAW;AAAA,YACX,SAAS;AAAA,UAAA;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEJ,CAAC,EAAE,MAAM,CAAA,UAAS;AAChB,UAAQ,MAAM,+BAA+B,KAAK;AAClD,UAAQ,KAAK,CAAC;AAChB,CAAC;"}
package/build/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { s } from "./startMcpServer-CA4IQ8YJ.js";
2
+ export {
3
+ s as startMcpServer
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}