embed-client 3.1.0.0__tar.gz → 3.1.0.2__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.
- embed_client-3.1.0.2/LICENSE +21 -0
- embed_client-3.1.0.2/MANIFEST.in +15 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/PKG-INFO +29 -2
- embed_client-3.1.0.2/configs/basic_auth.json +52 -0
- embed_client-3.1.0.2/configs/http.json +38 -0
- embed_client-3.1.0.2/configs/http_8001_test.json +6 -0
- embed_client-3.1.0.2/configs/http_correct.json +12 -0
- embed_client-3.1.0.2/configs/http_simple.json +52 -0
- embed_client-3.1.0.2/configs/http_test.json +12 -0
- embed_client-3.1.0.2/configs/http_token.json +52 -0
- embed_client-3.1.0.2/configs/http_token_correct.json +15 -0
- embed_client-3.1.0.2/configs/http_token_roles.json +56 -0
- embed_client-3.1.0.2/configs/https.json +38 -0
- embed_client-3.1.0.2/configs/https_8001_test.json +12 -0
- embed_client-3.1.0.2/configs/https_api_test.json +16 -0
- embed_client-3.1.0.2/configs/https_simple.json +52 -0
- embed_client-3.1.0.2/configs/https_test.json +15 -0
- embed_client-3.1.0.2/configs/https_token.json +52 -0
- embed_client-3.1.0.2/configs/https_token_roles.json +56 -0
- embed_client-3.1.0.2/configs/jwt.json +52 -0
- embed_client-3.1.0.2/configs/mtls.json +38 -0
- embed_client-3.1.0.2/configs/mtls_8001_test.json +22 -0
- embed_client-3.1.0.2/configs/mtls_correct.json +23 -0
- embed_client-3.1.0.2/configs/mtls_roles.json +44 -0
- embed_client-3.1.0.2/configs/mtls_test.json +22 -0
- embed_client-3.1.0.2/configs/mtls_token_roles.json +56 -0
- embed_client-3.1.0.2/configs/roles.json +23 -0
- embed_client-3.1.0.2/configs/test_server_http.json +16 -0
- embed_client-3.1.0.2/configs/test_server_https.json +16 -0
- embed_client-3.1.0.2/configs/test_server_mtls.json +51 -0
- embed_client-3.1.0.2/docs/api_format.md +401 -0
- embed_client-3.1.0.2/docs/coverage_report.md +119 -0
- embed_client-3.1.0.2/docs/error_500_analysis.md +213 -0
- embed_client-3.1.0.2/docs/error_handling_complete.md +134 -0
- embed_client-3.1.0.2/docs/error_handling_issue.md +96 -0
- embed_client-3.1.0.2/embed_client/__init__.py +21 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/auth.py +17 -13
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/example_async_usage.py +6 -6
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/example_async_usage_ru.py +195 -103
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/ssl_manager.py +27 -18
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client.egg-info/PKG-INFO +29 -2
- embed_client-3.1.0.2/embed_client.egg-info/SOURCES.txt +72 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client.egg-info/requires.txt +8 -1
- embed_client-3.1.0.2/examples/README.md +286 -0
- embed_client-3.1.0.2/examples/configs/http_simple.json +12 -0
- embed_client-3.1.0.2/examples/configs/https_token.json +17 -0
- embed_client-3.1.0.2/examples/configs/mtls_roles.json +29 -0
- embed_client-3.1.0.2/examples/security_examples.py +472 -0
- embed_client-3.1.0.2/examples/security_examples_ru.py +472 -0
- embed_client-3.1.0.2/pyproject.toml +61 -0
- embed_client-3.1.0.2/tests/test_async_client_real.py +305 -0
- embed_client-3.1.0.2/tests/test_server.py +332 -0
- embed_client-3.1.0.0/embed_client/__init__.py +0 -1
- embed_client-3.1.0.0/embed_client.egg-info/SOURCES.txt +0 -31
- embed_client-3.1.0.0/pyproject.toml +0 -31
- embed_client-3.1.0.0/tests/test_async_client_real.py +0 -149
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/README.md +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/async_client.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/auth_examples.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/client_factory.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/client_factory_examples.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/config.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/config_examples.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client/ssl_examples.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client.egg-info/dependency_links.txt +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/embed_client.egg-info/top_level.txt +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/setup.cfg +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_async_client.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_async_client_stress.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_async_client_stress_new.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_async_client_stress_updated.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_auth.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_client_factory.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_config.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_example_async_usage.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_example_async_usage_ru.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_ssl_manager.py +0 -0
- {embed_client-3.1.0.0 → embed_client-3.1.0.2}/tests/test_with_auth.py +0 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 Vasiliy Zdanovskiy
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
include README.md
|
2
|
+
include LICENSE
|
3
|
+
include pyproject.toml
|
4
|
+
recursive-include examples *.py *.md *.json
|
5
|
+
recursive-include docs *.md
|
6
|
+
recursive-include configs *.json
|
7
|
+
recursive-exclude * __pycache__
|
8
|
+
recursive-exclude * *.py[co]
|
9
|
+
recursive-exclude * .pytest_cache
|
10
|
+
recursive-exclude * .git*
|
11
|
+
recursive-exclude * .venv
|
12
|
+
recursive-exclude * tests
|
13
|
+
recursive-exclude * mtls_certificates
|
14
|
+
recursive-exclude * logs
|
15
|
+
recursive-exclude * test_environment
|
@@ -1,17 +1,44 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: embed-client
|
3
|
-
Version: 3.1.0.
|
3
|
+
Version: 3.1.0.2
|
4
4
|
Summary: Async client for Embedding Service API with comprehensive authentication, SSL/TLS, and mTLS support
|
5
5
|
Author-email: Vasiliy Zdanovskiy <vasilyvz@gmail.com>
|
6
|
+
License-Expression: MIT
|
7
|
+
Project-URL: Homepage, https://github.com/vasilyvz/embed-client
|
8
|
+
Project-URL: Repository, https://github.com/vasilyvz/embed-client
|
9
|
+
Project-URL: Documentation, https://github.com/vasilyvz/embed-client#readme
|
10
|
+
Project-URL: Bug Tracker, https://github.com/vasilyvz/embed-client/issues
|
11
|
+
Keywords: embedding,async,client,api,authentication,ssl,tls,mtls
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
13
|
+
Classifier: Intended Audience :: Developers
|
14
|
+
Classifier: Operating System :: OS Independent
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
16
|
+
Classifier: Programming Language :: Python :: 3.8
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
22
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
23
|
+
Classifier: Topic :: Security
|
24
|
+
Classifier: Topic :: System :: Networking
|
6
25
|
Requires-Python: >=3.8
|
7
26
|
Description-Content-Type: text/markdown
|
8
|
-
|
27
|
+
License-File: LICENSE
|
28
|
+
Requires-Dist: aiohttp>=3.8.0
|
9
29
|
Requires-Dist: PyJWT>=2.0.0
|
10
30
|
Requires-Dist: cryptography>=3.0.0
|
11
31
|
Requires-Dist: pydantic>=2.0.0
|
12
32
|
Provides-Extra: test
|
13
33
|
Requires-Dist: pytest; extra == "test"
|
14
34
|
Requires-Dist: pytest-asyncio; extra == "test"
|
35
|
+
Provides-Extra: dev
|
36
|
+
Requires-Dist: pytest; extra == "dev"
|
37
|
+
Requires-Dist: pytest-asyncio; extra == "dev"
|
38
|
+
Requires-Dist: black; extra == "dev"
|
39
|
+
Requires-Dist: flake8; extra == "dev"
|
40
|
+
Requires-Dist: mypy; extra == "dev"
|
41
|
+
Dynamic: license-file
|
15
42
|
|
16
43
|
# embed-client
|
17
44
|
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "localhost",
|
4
|
+
"port": 8001,
|
5
|
+
"base_url": "http://localhost:8001"
|
6
|
+
},
|
7
|
+
"timeout": 30,
|
8
|
+
"retry_attempts": 3,
|
9
|
+
"retry_delay": 1,
|
10
|
+
"auth": {
|
11
|
+
"method": "basic",
|
12
|
+
"api_key": {
|
13
|
+
"key": null,
|
14
|
+
"header": "X-API-Key"
|
15
|
+
},
|
16
|
+
"jwt": {
|
17
|
+
"username": null,
|
18
|
+
"password": null,
|
19
|
+
"secret": null,
|
20
|
+
"expiry_hours": 24
|
21
|
+
},
|
22
|
+
"certificate": {
|
23
|
+
"enabled": false,
|
24
|
+
"cert_file": null,
|
25
|
+
"key_file": null,
|
26
|
+
"ca_cert_file": null
|
27
|
+
},
|
28
|
+
"basic": {
|
29
|
+
"username": "user",
|
30
|
+
"password": "password"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"ssl": {
|
34
|
+
"enabled": false,
|
35
|
+
"verify": true,
|
36
|
+
"check_hostname": true,
|
37
|
+
"cert_file": null,
|
38
|
+
"key_file": null,
|
39
|
+
"ca_cert_file": null,
|
40
|
+
"client_cert_required": false
|
41
|
+
},
|
42
|
+
"security": {
|
43
|
+
"enabled": false,
|
44
|
+
"roles_enabled": false,
|
45
|
+
"roles_file": null
|
46
|
+
},
|
47
|
+
"logging": {
|
48
|
+
"enabled": false,
|
49
|
+
"level": "INFO",
|
50
|
+
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"uuid": "42597aa6-679e-4e63-8de4-31206ad5b1e6",
|
3
|
+
"server": {
|
4
|
+
"host": "0.0.0.0",
|
5
|
+
"port": 20000,
|
6
|
+
"protocol": "http",
|
7
|
+
"debug": false,
|
8
|
+
"log_level": "INFO"
|
9
|
+
},
|
10
|
+
"logging": {
|
11
|
+
"level": "INFO",
|
12
|
+
"file": null,
|
13
|
+
"log_dir": "./logs",
|
14
|
+
"log_file": "mcp_proxy_adapter.log",
|
15
|
+
"max_size": 10,
|
16
|
+
"backup_count": 5,
|
17
|
+
"console_output": true,
|
18
|
+
"json_format": false
|
19
|
+
},
|
20
|
+
"security": {
|
21
|
+
"enabled": false,
|
22
|
+
"tokens": {},
|
23
|
+
"roles": {},
|
24
|
+
"roles_file": null
|
25
|
+
},
|
26
|
+
"debug": {
|
27
|
+
"enabled": false,
|
28
|
+
"log_level": "DEBUG",
|
29
|
+
"trace_requests": false,
|
30
|
+
"trace_responses": false
|
31
|
+
},
|
32
|
+
"transport": {
|
33
|
+
"type": "http",
|
34
|
+
"port": null,
|
35
|
+
"verify_client": false,
|
36
|
+
"chk_hostname": false
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "localhost",
|
4
|
+
"port": 8001,
|
5
|
+
"base_url": "http://localhost:8001"
|
6
|
+
},
|
7
|
+
"timeout": 30,
|
8
|
+
"retry_attempts": 3,
|
9
|
+
"retry_delay": 1,
|
10
|
+
"auth": {
|
11
|
+
"method": "none",
|
12
|
+
"api_key": {
|
13
|
+
"key": null,
|
14
|
+
"header": "X-API-Key"
|
15
|
+
},
|
16
|
+
"jwt": {
|
17
|
+
"username": null,
|
18
|
+
"password": null,
|
19
|
+
"secret": null,
|
20
|
+
"expiry_hours": 24
|
21
|
+
},
|
22
|
+
"certificate": {
|
23
|
+
"enabled": false,
|
24
|
+
"cert_file": null,
|
25
|
+
"key_file": null,
|
26
|
+
"ca_cert_file": null
|
27
|
+
},
|
28
|
+
"basic": {
|
29
|
+
"username": null,
|
30
|
+
"password": null
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"ssl": {
|
34
|
+
"enabled": false,
|
35
|
+
"verify": true,
|
36
|
+
"check_hostname": true,
|
37
|
+
"cert_file": null,
|
38
|
+
"key_file": null,
|
39
|
+
"ca_cert_file": null,
|
40
|
+
"client_cert_required": false
|
41
|
+
},
|
42
|
+
"security": {
|
43
|
+
"enabled": false,
|
44
|
+
"roles_enabled": false,
|
45
|
+
"roles_file": null
|
46
|
+
},
|
47
|
+
"logging": {
|
48
|
+
"enabled": false,
|
49
|
+
"level": "INFO",
|
50
|
+
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "localhost",
|
4
|
+
"port": 8001,
|
5
|
+
"base_url": "http://localhost:8001"
|
6
|
+
},
|
7
|
+
"timeout": 30,
|
8
|
+
"retry_attempts": 3,
|
9
|
+
"retry_delay": 1,
|
10
|
+
"auth": {
|
11
|
+
"method": "api_key",
|
12
|
+
"api_key": {
|
13
|
+
"key": "test-token-123",
|
14
|
+
"header": "X-API-Key"
|
15
|
+
},
|
16
|
+
"jwt": {
|
17
|
+
"username": null,
|
18
|
+
"password": null,
|
19
|
+
"secret": null,
|
20
|
+
"expiry_hours": 24
|
21
|
+
},
|
22
|
+
"certificate": {
|
23
|
+
"enabled": false,
|
24
|
+
"cert_file": null,
|
25
|
+
"key_file": null,
|
26
|
+
"ca_cert_file": null
|
27
|
+
},
|
28
|
+
"basic": {
|
29
|
+
"username": null,
|
30
|
+
"password": null
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"ssl": {
|
34
|
+
"enabled": false,
|
35
|
+
"verify": true,
|
36
|
+
"check_hostname": true,
|
37
|
+
"cert_file": null,
|
38
|
+
"key_file": null,
|
39
|
+
"ca_cert_file": null,
|
40
|
+
"client_cert_required": false
|
41
|
+
},
|
42
|
+
"security": {
|
43
|
+
"enabled": false,
|
44
|
+
"roles_enabled": false,
|
45
|
+
"roles_file": null
|
46
|
+
},
|
47
|
+
"logging": {
|
48
|
+
"enabled": false,
|
49
|
+
"level": "INFO",
|
50
|
+
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
{
|
2
|
+
"uuid": "2e61a488-6377-42ec-9cb4-6db66f89adb4",
|
3
|
+
"server": {
|
4
|
+
"host": "0.0.0.0",
|
5
|
+
"port": 20002,
|
6
|
+
"protocol": "http",
|
7
|
+
"debug": false,
|
8
|
+
"log_level": "INFO"
|
9
|
+
},
|
10
|
+
"logging": {
|
11
|
+
"level": "INFO",
|
12
|
+
"file": null,
|
13
|
+
"log_dir": "./logs",
|
14
|
+
"log_file": "mcp_proxy_adapter.log",
|
15
|
+
"max_size": 10,
|
16
|
+
"backup_count": 5,
|
17
|
+
"console_output": true,
|
18
|
+
"json_format": false
|
19
|
+
},
|
20
|
+
"security": {
|
21
|
+
"enabled": true,
|
22
|
+
"tokens": {
|
23
|
+
"admin": "admin-secret-key",
|
24
|
+
"user": "user-secret-key",
|
25
|
+
"readonly": "readonly-secret-key"
|
26
|
+
},
|
27
|
+
"roles": {
|
28
|
+
"admin": [
|
29
|
+
"read",
|
30
|
+
"write",
|
31
|
+
"delete",
|
32
|
+
"admin"
|
33
|
+
],
|
34
|
+
"user": [
|
35
|
+
"read",
|
36
|
+
"write"
|
37
|
+
],
|
38
|
+
"readonly": [
|
39
|
+
"read"
|
40
|
+
]
|
41
|
+
},
|
42
|
+
"roles_file": "configs/roles.json"
|
43
|
+
},
|
44
|
+
"debug": {
|
45
|
+
"enabled": false,
|
46
|
+
"log_level": "DEBUG",
|
47
|
+
"trace_requests": false,
|
48
|
+
"trace_responses": false
|
49
|
+
},
|
50
|
+
"transport": {
|
51
|
+
"type": "http",
|
52
|
+
"port": null,
|
53
|
+
"verify_client": false,
|
54
|
+
"chk_hostname": false
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"uuid": "d8b0b018-68a2-4bdf-b1c8-9a6123d1d12a",
|
3
|
+
"server": {
|
4
|
+
"host": "0.0.0.0",
|
5
|
+
"port": 20003,
|
6
|
+
"protocol": "https",
|
7
|
+
"debug": false,
|
8
|
+
"log_level": "INFO"
|
9
|
+
},
|
10
|
+
"logging": {
|
11
|
+
"level": "INFO",
|
12
|
+
"file": null,
|
13
|
+
"log_dir": "./logs",
|
14
|
+
"log_file": "mcp_proxy_adapter.log",
|
15
|
+
"max_size": 10,
|
16
|
+
"backup_count": 5,
|
17
|
+
"console_output": true,
|
18
|
+
"json_format": false
|
19
|
+
},
|
20
|
+
"security": {
|
21
|
+
"enabled": false,
|
22
|
+
"tokens": {},
|
23
|
+
"roles": {},
|
24
|
+
"roles_file": null
|
25
|
+
},
|
26
|
+
"debug": {
|
27
|
+
"enabled": false,
|
28
|
+
"log_level": "DEBUG",
|
29
|
+
"trace_requests": false,
|
30
|
+
"trace_responses": false
|
31
|
+
},
|
32
|
+
"transport": {
|
33
|
+
"type": "http",
|
34
|
+
"port": null,
|
35
|
+
"verify_client": false,
|
36
|
+
"chk_hostname": true
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "https://localhost",
|
4
|
+
"port": 8001
|
5
|
+
},
|
6
|
+
"auth": {
|
7
|
+
"method": "api_key",
|
8
|
+
"api_key": "test-token-123"
|
9
|
+
},
|
10
|
+
"ssl": {
|
11
|
+
"enabled": true,
|
12
|
+
"verify_mode": "CERT_NONE",
|
13
|
+
"check_hostname": false,
|
14
|
+
"check_expiry": false
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "localhost",
|
4
|
+
"port": 8443,
|
5
|
+
"base_url": "https://localhost:8443"
|
6
|
+
},
|
7
|
+
"timeout": 30,
|
8
|
+
"retry_attempts": 3,
|
9
|
+
"retry_delay": 1,
|
10
|
+
"auth": {
|
11
|
+
"method": "none",
|
12
|
+
"api_key": {
|
13
|
+
"key": null,
|
14
|
+
"header": "X-API-Key"
|
15
|
+
},
|
16
|
+
"jwt": {
|
17
|
+
"username": null,
|
18
|
+
"password": null,
|
19
|
+
"secret": null,
|
20
|
+
"expiry_hours": 24
|
21
|
+
},
|
22
|
+
"certificate": {
|
23
|
+
"enabled": false,
|
24
|
+
"cert_file": null,
|
25
|
+
"key_file": null,
|
26
|
+
"ca_cert_file": null
|
27
|
+
},
|
28
|
+
"basic": {
|
29
|
+
"username": null,
|
30
|
+
"password": null
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"ssl": {
|
34
|
+
"enabled": true,
|
35
|
+
"verify": true,
|
36
|
+
"check_hostname": true,
|
37
|
+
"cert_file": null,
|
38
|
+
"key_file": null,
|
39
|
+
"ca_cert_file": null,
|
40
|
+
"client_cert_required": false
|
41
|
+
},
|
42
|
+
"security": {
|
43
|
+
"enabled": false,
|
44
|
+
"roles_enabled": false,
|
45
|
+
"roles_file": null
|
46
|
+
},
|
47
|
+
"logging": {
|
48
|
+
"enabled": false,
|
49
|
+
"level": "INFO",
|
50
|
+
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "localhost",
|
4
|
+
"port": 8443,
|
5
|
+
"base_url": "https://localhost:8443"
|
6
|
+
},
|
7
|
+
"timeout": 30,
|
8
|
+
"retry_attempts": 3,
|
9
|
+
"retry_delay": 1,
|
10
|
+
"auth": {
|
11
|
+
"method": "api_key",
|
12
|
+
"api_key": {
|
13
|
+
"key": "test-token-123",
|
14
|
+
"header": "X-API-Key"
|
15
|
+
},
|
16
|
+
"jwt": {
|
17
|
+
"username": null,
|
18
|
+
"password": null,
|
19
|
+
"secret": null,
|
20
|
+
"expiry_hours": 24
|
21
|
+
},
|
22
|
+
"certificate": {
|
23
|
+
"enabled": false,
|
24
|
+
"cert_file": null,
|
25
|
+
"key_file": null,
|
26
|
+
"ca_cert_file": null
|
27
|
+
},
|
28
|
+
"basic": {
|
29
|
+
"username": null,
|
30
|
+
"password": null
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"ssl": {
|
34
|
+
"enabled": true,
|
35
|
+
"verify": true,
|
36
|
+
"check_hostname": true,
|
37
|
+
"cert_file": null,
|
38
|
+
"key_file": null,
|
39
|
+
"ca_cert_file": null,
|
40
|
+
"client_cert_required": false
|
41
|
+
},
|
42
|
+
"security": {
|
43
|
+
"enabled": false,
|
44
|
+
"roles_enabled": false,
|
45
|
+
"roles_file": null
|
46
|
+
},
|
47
|
+
"logging": {
|
48
|
+
"enabled": false,
|
49
|
+
"level": "INFO",
|
50
|
+
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
{
|
2
|
+
"uuid": "a45bafb4-59b6-404c-8631-52d8c164ba97",
|
3
|
+
"server": {
|
4
|
+
"host": "0.0.0.0",
|
5
|
+
"port": 20005,
|
6
|
+
"protocol": "https",
|
7
|
+
"debug": false,
|
8
|
+
"log_level": "INFO"
|
9
|
+
},
|
10
|
+
"logging": {
|
11
|
+
"level": "INFO",
|
12
|
+
"file": null,
|
13
|
+
"log_dir": "./logs",
|
14
|
+
"log_file": "mcp_proxy_adapter.log",
|
15
|
+
"max_size": 10,
|
16
|
+
"backup_count": 5,
|
17
|
+
"console_output": true,
|
18
|
+
"json_format": false
|
19
|
+
},
|
20
|
+
"security": {
|
21
|
+
"enabled": true,
|
22
|
+
"tokens": {
|
23
|
+
"admin": "admin-secret-key",
|
24
|
+
"user": "user-secret-key",
|
25
|
+
"readonly": "readonly-secret-key"
|
26
|
+
},
|
27
|
+
"roles": {
|
28
|
+
"admin": [
|
29
|
+
"read",
|
30
|
+
"write",
|
31
|
+
"delete",
|
32
|
+
"admin"
|
33
|
+
],
|
34
|
+
"user": [
|
35
|
+
"read",
|
36
|
+
"write"
|
37
|
+
],
|
38
|
+
"readonly": [
|
39
|
+
"read"
|
40
|
+
]
|
41
|
+
},
|
42
|
+
"roles_file": "configs/roles.json"
|
43
|
+
},
|
44
|
+
"debug": {
|
45
|
+
"enabled": false,
|
46
|
+
"log_level": "DEBUG",
|
47
|
+
"trace_requests": false,
|
48
|
+
"trace_responses": false
|
49
|
+
},
|
50
|
+
"transport": {
|
51
|
+
"type": "http",
|
52
|
+
"port": null,
|
53
|
+
"verify_client": false,
|
54
|
+
"chk_hostname": true
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"server": {
|
3
|
+
"host": "localhost",
|
4
|
+
"port": 8001,
|
5
|
+
"base_url": "http://localhost:8001"
|
6
|
+
},
|
7
|
+
"timeout": 30,
|
8
|
+
"retry_attempts": 3,
|
9
|
+
"retry_delay": 1,
|
10
|
+
"auth": {
|
11
|
+
"method": "jwt",
|
12
|
+
"api_key": {
|
13
|
+
"key": null,
|
14
|
+
"header": "X-API-Key"
|
15
|
+
},
|
16
|
+
"jwt": {
|
17
|
+
"username": "user",
|
18
|
+
"password": "password",
|
19
|
+
"secret": "jwt-secret",
|
20
|
+
"expiry_hours": 24
|
21
|
+
},
|
22
|
+
"certificate": {
|
23
|
+
"enabled": false,
|
24
|
+
"cert_file": null,
|
25
|
+
"key_file": null,
|
26
|
+
"ca_cert_file": null
|
27
|
+
},
|
28
|
+
"basic": {
|
29
|
+
"username": null,
|
30
|
+
"password": null
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"ssl": {
|
34
|
+
"enabled": false,
|
35
|
+
"verify": true,
|
36
|
+
"check_hostname": true,
|
37
|
+
"cert_file": null,
|
38
|
+
"key_file": null,
|
39
|
+
"ca_cert_file": null,
|
40
|
+
"client_cert_required": false
|
41
|
+
},
|
42
|
+
"security": {
|
43
|
+
"enabled": false,
|
44
|
+
"roles_enabled": false,
|
45
|
+
"roles_file": null
|
46
|
+
},
|
47
|
+
"logging": {
|
48
|
+
"enabled": false,
|
49
|
+
"level": "INFO",
|
50
|
+
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
51
|
+
}
|
52
|
+
}
|