pathgate 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {pathgate-0.1.0 → pathgate-0.1.1}/PKG-INFO +10 -10
- {pathgate-0.1.0 → pathgate-0.1.1}/README.md +9 -9
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/server.py +1 -1
- {pathgate-0.1.0 → pathgate-0.1.1}/pyproject.toml +2 -2
- {pathgate-0.1.0 → pathgate-0.1.1}/tests/test_server.py +1 -1
- {pathgate-0.1.0 → pathgate-0.1.1}/.gitignore +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/LICENSE +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/__init__.py +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/__main__.py +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/config.py +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/prompts.py +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/resources.py +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/tool_schemas.py +0 -0
- {pathgate-0.1.0 → pathgate-0.1.1}/pathgate/tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pathgate
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Filesystem MCP server with allow-listed directories
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -8,7 +8,7 @@ Requires-Python: >=3.10
|
|
|
8
8
|
Requires-Dist: mcp>=1.25
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Pathgate
|
|
12
12
|
|
|
13
13
|
`pathgate` is a Python Model Context Protocol (MCP) server that exposes a controlled filesystem interface to MCP clients such as Claude Desktop, Cursor, VS Code, and inspector tools. The server only permits access to directories that are explicitly allow-listed at startup.
|
|
14
14
|
|
|
@@ -32,32 +32,32 @@ Access is restricted by allow-listed paths. At startup, the server resolves the
|
|
|
32
32
|
## Installation
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
git clone https://github.com/geekgod382/
|
|
36
|
-
cd
|
|
35
|
+
git clone https://github.com/geekgod382/pathgate.git
|
|
36
|
+
cd pathgate
|
|
37
37
|
python -m pip install -e .
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
This installs the `
|
|
40
|
+
This installs the `pathgate` console command from `pyproject.toml`.
|
|
41
41
|
|
|
42
42
|
## Usage
|
|
43
43
|
|
|
44
44
|
### Start with allowed directories
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
|
|
47
|
+
pathgate "C:\Users\<username>\Documents" "C:\Users\<username>\Projects"
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Read-only mode
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
|
|
53
|
+
pathgate --read-only "C:\Users\<username>\Documents"
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### Environment variable alternative
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
$env:FS_MCP_ALLOWED_PATHS = "C:\Users\<username>\Documents;C:\Users\<username>\Projects"
|
|
60
|
-
|
|
60
|
+
pathgate
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
On macOS/Linux, use `:` instead of `;` for the path separator.
|
|
@@ -85,7 +85,7 @@ Example Claude Desktop configuration:
|
|
|
85
85
|
{
|
|
86
86
|
"mcpServers": {
|
|
87
87
|
"filesystem": {
|
|
88
|
-
"command": "
|
|
88
|
+
"command": "pathgate",
|
|
89
89
|
"args": ["C:\\Users\\<username>\\Documents"]
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -115,7 +115,7 @@ Create a file at C:\Users\<username>\Documents\todo.txt with the content "Ship r
|
|
|
115
115
|
## Project layout
|
|
116
116
|
|
|
117
117
|
```text
|
|
118
|
-
|
|
118
|
+
pathgate/
|
|
119
119
|
├── pathgate/
|
|
120
120
|
│ ├── __init__.py
|
|
121
121
|
│ ├── __main__.py
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Pathgate
|
|
2
2
|
|
|
3
3
|
`pathgate` is a Python Model Context Protocol (MCP) server that exposes a controlled filesystem interface to MCP clients such as Claude Desktop, Cursor, VS Code, and inspector tools. The server only permits access to directories that are explicitly allow-listed at startup.
|
|
4
4
|
|
|
@@ -22,32 +22,32 @@ Access is restricted by allow-listed paths. At startup, the server resolves the
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
git clone https://github.com/geekgod382/
|
|
26
|
-
cd
|
|
25
|
+
git clone https://github.com/geekgod382/pathgate.git
|
|
26
|
+
cd pathgate
|
|
27
27
|
python -m pip install -e .
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
This installs the `
|
|
30
|
+
This installs the `pathgate` console command from `pyproject.toml`.
|
|
31
31
|
|
|
32
32
|
## Usage
|
|
33
33
|
|
|
34
34
|
### Start with allowed directories
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
|
|
37
|
+
pathgate "C:\Users\<username>\Documents" "C:\Users\<username>\Projects"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Read-only mode
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
|
|
43
|
+
pathgate --read-only "C:\Users\<username>\Documents"
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### Environment variable alternative
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
49
|
$env:FS_MCP_ALLOWED_PATHS = "C:\Users\<username>\Documents;C:\Users\<username>\Projects"
|
|
50
|
-
|
|
50
|
+
pathgate
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
On macOS/Linux, use `:` instead of `;` for the path separator.
|
|
@@ -75,7 +75,7 @@ Example Claude Desktop configuration:
|
|
|
75
75
|
{
|
|
76
76
|
"mcpServers": {
|
|
77
77
|
"filesystem": {
|
|
78
|
-
"command": "
|
|
78
|
+
"command": "pathgate",
|
|
79
79
|
"args": ["C:\\Users\\<username>\\Documents"]
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -105,7 +105,7 @@ Create a file at C:\Users\<username>\Documents\todo.txt with the content "Ship r
|
|
|
105
105
|
## Project layout
|
|
106
106
|
|
|
107
107
|
```text
|
|
108
|
-
|
|
108
|
+
pathgate/
|
|
109
109
|
├── pathgate/
|
|
110
110
|
│ ├── __init__.py
|
|
111
111
|
│ ├── __main__.py
|
|
@@ -14,7 +14,7 @@ server.list_prompts()(prompts.list_prompts)
|
|
|
14
14
|
server.get_prompt()(prompts.get_prompt)
|
|
15
15
|
|
|
16
16
|
def parse_args(argv=None):
|
|
17
|
-
p = argparse.ArgumentParser(prog="
|
|
17
|
+
p = argparse.ArgumentParser(prog="pathgate")
|
|
18
18
|
p.add_argument("paths", nargs="*", help="Directories the server may access")
|
|
19
19
|
p.add_argument("--read-only", action="store_true", help="Disable write/delete/move/copy tools")
|
|
20
20
|
args = p.parse_args(argv)
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pathgate"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "Filesystem MCP server with allow-listed directories"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -12,4 +12,4 @@ license = { text = "MIT" }
|
|
|
12
12
|
dependencies = ["mcp>=1.25"]
|
|
13
13
|
|
|
14
14
|
[project.scripts]
|
|
15
|
-
|
|
15
|
+
pathgate = "pathgate.server:main"
|
|
@@ -13,7 +13,7 @@ async def test_server():
|
|
|
13
13
|
# Server parameters
|
|
14
14
|
server_params = StdioServerParameters(
|
|
15
15
|
command="python",
|
|
16
|
-
args=["C:\\Users\\manan\\
|
|
16
|
+
args=["C:\\Users\\manan\\pathgate\\server.py"],
|
|
17
17
|
)
|
|
18
18
|
|
|
19
19
|
print("🚀 Starting Pure MCP Filesystem Server test...\n")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|