mcp-proxy-adapter 2.1.2__py3-none-any.whl → 2.1.4__py3-none-any.whl

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 (50) hide show
  1. {examples → mcp_proxy_adapter/examples}/openapi_server.py +35 -7
  2. {mcp_proxy_adapter-2.1.2.dist-info → mcp_proxy_adapter-2.1.4.dist-info}/METADATA +98 -2
  3. mcp_proxy_adapter-2.1.4.dist-info/RECORD +28 -0
  4. mcp_proxy_adapter-2.1.4.dist-info/top_level.txt +1 -0
  5. docs/README.md +0 -172
  6. docs/README_ru.md +0 -172
  7. docs/architecture.md +0 -251
  8. docs/architecture_ru.md +0 -343
  9. docs/command_development.md +0 -250
  10. docs/command_development_ru.md +0 -593
  11. docs/deployment.md +0 -251
  12. docs/deployment_ru.md +0 -1298
  13. docs/examples.md +0 -254
  14. docs/examples_ru.md +0 -401
  15. docs/mcp_proxy_adapter.md +0 -251
  16. docs/mcp_proxy_adapter_ru.md +0 -405
  17. docs/quickstart.md +0 -251
  18. docs/quickstart_ru.md +0 -397
  19. docs/testing.md +0 -255
  20. docs/testing_ru.md +0 -469
  21. docs/validation_ru.md +0 -287
  22. examples/mcp_proxy_config.json +0 -175
  23. mcp_proxy_adapter-2.1.2.dist-info/RECORD +0 -61
  24. mcp_proxy_adapter-2.1.2.dist-info/top_level.txt +0 -5
  25. scripts/code_analyzer/code_analyzer.py +0 -328
  26. scripts/code_analyzer/register_commands.py +0 -446
  27. scripts/publish.py +0 -85
  28. tests/conftest.py +0 -12
  29. tests/test_adapter.py +0 -529
  30. tests/test_adapter_coverage.py +0 -274
  31. tests/test_basic_dispatcher.py +0 -169
  32. tests/test_command_registry.py +0 -328
  33. tests/test_examples.py +0 -32
  34. tests/test_mcp_proxy_adapter.py +0 -568
  35. tests/test_mcp_proxy_adapter_basic.py +0 -262
  36. tests/test_part1.py +0 -348
  37. tests/test_part2.py +0 -524
  38. tests/test_schema.py +0 -358
  39. tests/test_simple_adapter.py +0 -251
  40. {examples → mcp_proxy_adapter/examples}/analyze_config.py +0 -0
  41. {examples → mcp_proxy_adapter/examples}/basic_integration.py +0 -0
  42. {examples → mcp_proxy_adapter/examples}/docstring_and_schema_example.py +0 -0
  43. {examples → mcp_proxy_adapter/examples}/extension_example.py +0 -0
  44. {examples → mcp_proxy_adapter/examples}/help_best_practices.py +0 -0
  45. {examples → mcp_proxy_adapter/examples}/help_usage.py +0 -0
  46. {examples → mcp_proxy_adapter/examples}/mcp_proxy_client.py +0 -0
  47. {examples → mcp_proxy_adapter/examples}/project_structure_example.py +0 -0
  48. {examples → mcp_proxy_adapter/examples}/testing_example.py +0 -0
  49. {mcp_proxy_adapter-2.1.2.dist-info → mcp_proxy_adapter-2.1.4.dist-info}/WHEEL +0 -0
  50. {mcp_proxy_adapter-2.1.2.dist-info → mcp_proxy_adapter-2.1.4.dist-info}/licenses/LICENSE +0 -0
docs/deployment.md DELETED
@@ -1,251 +0,0 @@
1
- # Command Registry Deployment Guide
2
-
3
- This guide describes approaches and recommendations for deploying applications using Command Registry in various environments.
4
-
5
- ## Contents
6
-
7
- - [Deployment Preparation](#deployment-preparation)
8
- - [Docker Deployment](#docker-deployment)
9
- - [VPS Deployment](#vps-deployment)
10
- - [Kubernetes Deployment](#kubernetes-deployment)
11
- - [CI/CD for Command Registry](#cicd-for-command-registry)
12
- - [Monitoring and Logging](#monitoring-and-logging)
13
- - [Scaling](#scaling)
14
- - [Security](#security)
15
- - [Hybrid Schema and MCPProxy Integration](#hybrid-schema-and-mcpproxy-integration)
16
-
17
- ## Deployment Preparation
18
-
19
- ### 1. Creating Application Package
20
-
21
- It is recommended to package your application as a Python package for convenient deployment:
22
-
23
- ```
24
- my_app/
25
- ├── pyproject.toml
26
- ├── setup.py
27
- ├── setup.cfg
28
- ├── README.md
29
- ├── src/
30
- │ └── my_app/
31
- │ ├── __init__.py
32
- │ ├── commands/
33
- │ │ ├── __init__.py
34
- │ │ └── ...
35
- │ ├── app.py
36
- │ └── main.py
37
- └── tests/
38
- └── ...
39
- ```
40
-
41
- Example `pyproject.toml`:
42
-
43
- ```toml
44
- [build-system]
45
- requires = ["setuptools>=42", "wheel"]
46
- build-backend = "setuptools.build_meta"
47
-
48
- [project]
49
- name = "my-app"
50
- version = "0.1.0"
51
- description = "Command Registry Application"
52
- authors = [{name = "Your Name", email = "your.email@example.com"}]
53
- requires-python = ">=3.8"
54
- dependencies = [
55
- "command-registry>=0.1.0",
56
- "fastapi>=0.68.0",
57
- "uvicorn>=0.15.0",
58
- ]
59
- ```
60
-
61
- ### 2. Configuration Setup
62
-
63
- Create a configuration system that supports different environments:
64
-
65
- ```python
66
- # src/my_app/config.py
67
- import os
68
- from pydantic import BaseSettings
69
-
70
- class Settings(BaseSettings):
71
- """Application settings."""
72
- APP_NAME: str = "Command Registry App"
73
- DEBUG: bool = False
74
- LOG_LEVEL: str = "INFO"
75
- API_PORT: int = 8000
76
-
77
- # Command Registry settings
78
- STRICT_MODE: bool = True
79
- AUTO_FIX: bool = False
80
-
81
- # Database settings
82
- DB_HOST: str = "localhost"
83
- DB_PORT: int = 5432
84
- DB_USER: str = "postgres"
85
- DB_PASSWORD: str = ""
86
- DB_NAME: str = "app_db"
87
-
88
- class Config:
89
- env_file = ".env"
90
- env_prefix = "APP_"
91
-
92
- # Load settings
93
- settings = Settings()
94
- ```
95
-
96
- ### 3. Creating Entry Point
97
-
98
- ```python
99
- # src/my_app/main.py
100
- import uvicorn
101
- from my_app.app import app
102
- from my_app.config import settings
103
-
104
- def start():
105
- """Starts the application."""
106
- uvicorn.run(
107
- "my_app.app:app",
108
- host="0.0.0.0",
109
- port=settings.API_PORT,
110
- log_level=settings.LOG_LEVEL.lower(),
111
- reload=settings.DEBUG
112
- )
113
-
114
- if __name__ == "__main__":
115
- start()
116
- ```
117
-
118
- ## Docker Deployment
119
-
120
- ### 1. Creating Dockerfile
121
-
122
- ```dockerfile
123
- FROM python:3.10-slim
124
-
125
- WORKDIR /app
126
-
127
- # Copy dependency files
128
- COPY pyproject.toml setup.py setup.cfg ./
129
-
130
- # Install dependencies
131
- RUN pip install --no-cache-dir .
132
-
133
- # Copy application code
134
- COPY src/ ./src/
135
-
136
- # Define environment variables
137
- ENV APP_DEBUG=false \
138
- APP_LOG_LEVEL=INFO \
139
- APP_API_PORT=8000 \
140
- APP_STRICT_MODE=true \
141
- APP_AUTO_FIX=false
142
-
143
- # Expose port
144
- EXPOSE 8000
145
-
146
- # Start application
147
- CMD ["python", "-m", "my_app.main"]
148
- ```
149
-
150
- ### 2. Docker Compose for Local Development
151
-
152
- ```yaml
153
- # docker-compose.yml
154
- version: '3.8'
155
-
156
- services:
157
- app:
158
- build: .
159
- ports:
160
- - "8000:8000"
161
- environment:
162
- - APP_DEBUG=true
163
- - APP_LOG_LEVEL=DEBUG
164
- - APP_DB_HOST=db
165
- depends_on:
166
- - db
167
- volumes:
168
- - ./src:/app/src
169
-
170
- db:
171
- image: postgres:14
172
- environment:
173
- - POSTGRES_USER=postgres
174
- - POSTGRES_PASSWORD=postgres
175
- - POSTGRES_DB=app_db
176
- volumes:
177
- - postgres_data:/var/lib/postgresql/data
178
- ports:
179
- - "5432:5432"
180
-
181
- volumes:
182
- postgres_data:
183
- ```
184
-
185
- ### 3. Build and Run
186
-
187
- ```bash
188
- # Build image
189
- docker build -t my-app .
190
-
191
- # Run container
192
- docker run -p 8000:8000 my-app
193
-
194
- # Or using Docker Compose
195
- docker-compose up
196
- ```
197
-
198
- ## VPS Deployment
199
-
200
- ### 1. Installing Dependencies on Server
201
-
202
- ```bash
203
- # Update packages
204
- sudo apt update
205
- sudo apt upgrade -y
206
-
207
- # Install Python and dependencies
208
- sudo apt install -y python3 python3-pip python3-venv
209
-
210
- # Install Nginx
211
- sudo apt install -y nginx
212
-
213
- # Install Supervisor
214
- sudo apt install -y supervisor
215
- ```
216
-
217
- ### 2. Gunicorn Setup
218
-
219
- ```bash
220
- # Create virtual environment
221
- python3 -m venv venv
222
- source venv/bin/activate
223
-
224
- # Install application and Gunicorn
225
- pip install gunicorn
226
- pip install . # install your application
227
- ```
228
-
229
- ### 3. Supervisor Configuration
230
-
231
- ```ini
232
- # /etc/supervisor/conf.d/my-app.conf
233
- [program:my-app]
234
- command=/home/user/my-app/venv/bin/gunicorn -w 4 -k uvicorn.workers.UvicornWorker my_app.app:app -b 127.0.0.1:8000
235
- directory=/home/user/my-app
236
- user=user
237
- autostart=true
238
- autorestart=true
239
- environment=APP_DEBUG=false,APP_LOG_LEVEL=INFO,APP_STRICT_MODE=true
240
-
241
- [supervisord]
242
- logfile=/var/log/supervisor/supervisord.log
243
- ```
244
-
245
- ### 4. Nginx Configuration
246
-
247
- ```nginx
248
- # /etc/nginx/sites-available/my-app
249
- server {
250
- listen 80;
251
- ```