castrel-proxy 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.
Files changed (27) hide show
  1. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/PKG-INFO +16 -20
  2. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/README.md +10 -14
  3. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/pyproject.toml +6 -6
  4. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/mcp/manager.py +12 -8
  5. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/.gitignore +0 -0
  6. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/CHANGELOG.md +0 -0
  7. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/LICENSE +0 -0
  8. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/__init__.py +0 -0
  9. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/cli/__init__.py +0 -0
  10. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/cli/commands.py +0 -0
  11. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/core/__init__.py +0 -0
  12. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/core/client_id.py +0 -0
  13. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/core/config.py +0 -0
  14. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/core/daemon.py +0 -0
  15. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/core/executor.py +0 -0
  16. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/data/__init__.py +0 -0
  17. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/data/default_whitelist.txt +0 -0
  18. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/mcp/__init__.py +0 -0
  19. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/network/__init__.py +0 -0
  20. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/network/api_client.py +0 -0
  21. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/network/websocket_client.py +0 -0
  22. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/operations/__init__.py +0 -0
  23. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/operations/document.py +0 -0
  24. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/security/__init__.py +0 -0
  25. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/src/castrel_proxy/security/whitelist.py +0 -0
  26. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/tests/__init__.py +0 -0
  27. {castrel_proxy-0.1.0 → castrel_proxy-0.1.1}/tests/test_core.py +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: castrel-proxy
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A lightweight remote command execution bridge client with MCP integration
5
- Project-URL: Homepage, https://github.com/castrel-ai/castrel-bridge-proxy
6
- Project-URL: Documentation, https://github.com/castrel-ai/castrel-bridge-proxy#readme
7
- Project-URL: Repository, https://github.com/castrel-ai/castrel-bridge-proxy
8
- Project-URL: Issues, https://github.com/castrel-ai/castrel-bridge-proxy/issues
9
- Project-URL: Changelog, https://github.com/castrel-ai/castrel-bridge-proxy/blob/main/CHANGELOG.md
5
+ Project-URL: Homepage, https://github.com/castrel-ai/castrel-proxy
6
+ Project-URL: Documentation, https://github.com/castrel-ai/castrel-proxy#readme
7
+ Project-URL: Repository, https://github.com/castrel-ai/castrel-proxy
8
+ Project-URL: Issues, https://github.com/castrel-ai/castrel-proxy/issues
9
+ Project-URL: Changelog, https://github.com/castrel-ai/castrel-proxy/blob/main/CHANGELOG.md
10
10
  Author: Castrel Team
11
11
  License: MIT License
12
12
 
@@ -58,9 +58,9 @@ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
58
58
  Requires-Dist: pytest>=7.0.0; extra == 'dev'
59
59
  Description-Content-Type: text/markdown
60
60
 
61
- # Castrel Bridge Proxy
61
+ # Castrel Proxy
62
62
 
63
- [![CI](https://github.com/castrel-ai/castrel-bridge-proxy/workflows/CI/badge.svg)](https://github.com/castrel-ai/castrel-bridge-proxy/actions)
63
+ [![CI](https://github.com/castrel-ai/castrel-proxy/workflows/CI/badge.svg)](https://github.com/castrel-ai/castrel-proxy/actions)
64
64
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
65
65
  [![Python Version](https://img.shields.io/pypi/pyversions/castrel-proxy)](https://pypi.org/project/castrel-proxy/)
66
66
 
@@ -89,8 +89,8 @@ pip install castrel-proxy
89
89
  ### From source
90
90
 
91
91
  ```bash
92
- git clone https://github.com/castrel-ai/castrel-bridge-proxy.git
93
- cd castrel-bridge-proxy
92
+ git clone https://github.com/castrel-ai/castrel-proxy.git
93
+ cd castrel-proxy
94
94
  pip install -e .
95
95
  ```
96
96
 
@@ -241,15 +241,11 @@ python
241
241
 
242
242
  ```bash
243
243
  # Clone repository
244
- git clone https://github.com/castrel-ai/castrel-bridge-proxy.git
245
- cd castrel-bridge-proxy
244
+ git clone https://github.com/castrel-ai/castrel-proxy.git
245
+ cd castrel-proxy
246
246
 
247
- # Create virtual environment
248
- python -m venv venv
249
- source venv/bin/activate # On Windows: venv\Scripts\activate
250
-
251
- # Install dependencies
252
- pip install -e ".[dev]"
247
+ # Install dependencies and sync environment
248
+ uv sync
253
249
  ```
254
250
 
255
251
  ### Run Tests
@@ -292,8 +288,8 @@ For security concerns, please see [SECURITY.md](SECURITY.md) or contact security
292
288
 
293
289
  ## 📮 Contact
294
290
 
295
- - Issues: [GitHub Issues](https://github.com/castrel-ai/castrel-bridge-proxy/issues)
296
- - Discussions: [GitHub Discussions](https://github.com/castrel-ai/castrel-bridge-proxy/discussions)
291
+ - Issues: [GitHub Issues](https://github.com/castrel-ai/castrel-proxy/issues)
292
+ - Discussions: [GitHub Discussions](https://github.com/castrel-ai/castrel-proxy/discussions)
297
293
 
298
294
  ## 🙏 Acknowledgments
299
295
 
@@ -1,6 +1,6 @@
1
- # Castrel Bridge Proxy
1
+ # Castrel Proxy
2
2
 
3
- [![CI](https://github.com/castrel-ai/castrel-bridge-proxy/workflows/CI/badge.svg)](https://github.com/castrel-ai/castrel-bridge-proxy/actions)
3
+ [![CI](https://github.com/castrel-ai/castrel-proxy/workflows/CI/badge.svg)](https://github.com/castrel-ai/castrel-proxy/actions)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Python Version](https://img.shields.io/pypi/pyversions/castrel-proxy)](https://pypi.org/project/castrel-proxy/)
6
6
 
@@ -29,8 +29,8 @@ pip install castrel-proxy
29
29
  ### From source
30
30
 
31
31
  ```bash
32
- git clone https://github.com/castrel-ai/castrel-bridge-proxy.git
33
- cd castrel-bridge-proxy
32
+ git clone https://github.com/castrel-ai/castrel-proxy.git
33
+ cd castrel-proxy
34
34
  pip install -e .
35
35
  ```
36
36
 
@@ -181,15 +181,11 @@ python
181
181
 
182
182
  ```bash
183
183
  # Clone repository
184
- git clone https://github.com/castrel-ai/castrel-bridge-proxy.git
185
- cd castrel-bridge-proxy
184
+ git clone https://github.com/castrel-ai/castrel-proxy.git
185
+ cd castrel-proxy
186
186
 
187
- # Create virtual environment
188
- python -m venv venv
189
- source venv/bin/activate # On Windows: venv\Scripts\activate
190
-
191
- # Install dependencies
192
- pip install -e ".[dev]"
187
+ # Install dependencies and sync environment
188
+ uv sync
193
189
  ```
194
190
 
195
191
  ### Run Tests
@@ -232,8 +228,8 @@ For security concerns, please see [SECURITY.md](SECURITY.md) or contact security
232
228
 
233
229
  ## 📮 Contact
234
230
 
235
- - Issues: [GitHub Issues](https://github.com/castrel-ai/castrel-bridge-proxy/issues)
236
- - Discussions: [GitHub Discussions](https://github.com/castrel-ai/castrel-bridge-proxy/discussions)
231
+ - Issues: [GitHub Issues](https://github.com/castrel-ai/castrel-proxy/issues)
232
+ - Discussions: [GitHub Discussions](https://github.com/castrel-ai/castrel-proxy/discussions)
237
233
 
238
234
  ## 🙏 Acknowledgments
239
235
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "castrel-proxy"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "A lightweight remote command execution bridge client with MCP integration"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -42,11 +42,11 @@ dev = [
42
42
  ]
43
43
 
44
44
  [project.urls]
45
- Homepage = "https://github.com/castrel-ai/castrel-bridge-proxy"
46
- Documentation = "https://github.com/castrel-ai/castrel-bridge-proxy#readme"
47
- Repository = "https://github.com/castrel-ai/castrel-bridge-proxy"
48
- Issues = "https://github.com/castrel-ai/castrel-bridge-proxy/issues"
49
- Changelog = "https://github.com/castrel-ai/castrel-bridge-proxy/blob/main/CHANGELOG.md"
45
+ Homepage = "https://github.com/castrel-ai/castrel-proxy"
46
+ Documentation = "https://github.com/castrel-ai/castrel-proxy#readme"
47
+ Repository = "https://github.com/castrel-ai/castrel-proxy"
48
+ Issues = "https://github.com/castrel-ai/castrel-proxy/issues"
49
+ Changelog = "https://github.com/castrel-ai/castrel-proxy/blob/main/CHANGELOG.md"
50
50
 
51
51
  [project.scripts]
52
52
  castrel-proxy = "castrel_proxy.cli.commands:run"
@@ -69,18 +69,22 @@ def convert_config_to_langchain_format(config_data: dict) -> dict:
69
69
  "url": server_config.get("url"),
70
70
  }
71
71
 
72
- elif transport in ["sse", "websocket"]:
73
- error_msg = (
74
- f"Configuration error for server '{name}': Transport type '{transport}' is not yet supported. "
75
- f"Currently supported transports: 'stdio', 'http'"
76
- )
77
- logger.error(error_msg)
78
- raise ValueError(error_msg)
72
+ elif transport == "sse":
73
+ # sse type: use url
74
+ if not server_config.get("url"):
75
+ error_msg = f"Configuration error for server '{name}': Missing 'url' for sse transport"
76
+ logger.error(error_msg)
77
+ raise ValueError(error_msg)
78
+
79
+ langchain_config[name] = {
80
+ "transport": "sse",
81
+ "url": server_config.get("url"),
82
+ }
79
83
 
80
84
  else:
81
85
  error_msg = (
82
86
  f"Configuration error for server '{name}': Unknown transport type '{transport}'. "
83
- f"Supported transports: 'stdio', 'http'"
87
+ f"Supported transports: 'stdio', 'http', 'sse'"
84
88
  )
85
89
  logger.error(error_msg)
86
90
  raise ValueError(error_msg)
File without changes
File without changes