mcp-proxy-adapter 6.3.9__py3-none-any.whl → 6.3.11__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.
@@ -16,16 +16,9 @@ from mcp_proxy_adapter.api.app import create_app
16
16
 
17
17
  def main():
18
18
  """Main CLI entry point."""
19
- print("MCP Proxy Adapter v6.2.21")
20
- print("========================")
21
- print()
22
- print("Usage:")
23
- print(" python -m mcp_proxy_adapter")
24
- print(" # or")
25
- print(" mcp-proxy-adapter")
26
- print()
27
- print("For more information, see:")
28
- print(" https://github.com/maverikod/mcp-proxy-adapter#readme")
19
+ # Import and run the actual main function from main.py
20
+ from mcp_proxy_adapter.main import main as run_server
21
+ run_server()
29
22
 
30
23
 
31
24
  if __name__ == "__main__":
@@ -21,7 +21,7 @@ from mcp_proxy_adapter.commands.builtin_commands import register_builtin_command
21
21
  logger = get_logger("app_factory")
22
22
 
23
23
 
24
- def create_and_run_server(
24
+ async def create_and_run_server(
25
25
  config_path: Optional[str] = None,
26
26
  log_config_path: Optional[str] = None,
27
27
  title: str = "MCP Proxy Adapter Server",
@@ -361,7 +361,14 @@ def create_and_run_server(
361
361
  print(f"🌐 Starting HTTP server with hypercorn...")
362
362
 
363
363
  # Run the server
364
- asyncio.run(hypercorn.asyncio.serve(app, config_hypercorn))
364
+ try:
365
+ # Check if we're already in an event loop
366
+ loop = asyncio.get_running_loop()
367
+ # If we're in a loop, use await instead of asyncio.run
368
+ await hypercorn.asyncio.serve(app, config_hypercorn)
369
+ except RuntimeError:
370
+ # No event loop running, use asyncio.run
371
+ asyncio.run(hypercorn.asyncio.serve(app, config_hypercorn))
365
372
 
366
373
  except KeyboardInterrupt:
367
374
  print("\n🛑 Server stopped by user")
mcp_proxy_adapter/main.py CHANGED
@@ -14,8 +14,10 @@ import asyncio
14
14
  import argparse
15
15
  from pathlib import Path
16
16
 
17
- # Add the project root to the path
18
- sys.path.insert(0, str(Path(__file__).parent.parent))
17
+ # Add the project root to the path only if running from source
18
+ # This allows the installed package to be used when installed via pip
19
+ if not str(Path(__file__).parent.parent) in sys.path:
20
+ sys.path.insert(0, str(Path(__file__).parent.parent))
19
21
 
20
22
  from mcp_proxy_adapter.api.app import create_app
21
23
  from mcp_proxy_adapter.config import Config
@@ -2,4 +2,4 @@
2
2
  Version information for MCP Proxy Adapter.
3
3
  """
4
4
 
5
- __version__ = "6.3.9"
5
+ __version__ = "6.3.11"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-proxy-adapter
3
- Version: 6.3.9
3
+ Version: 6.3.11
4
4
  Summary: Powerful JSON-RPC microservices framework with built-in security, authentication, and proxy registration
5
5
  Home-page: https://github.com/maverikod/mcp-proxy-adapter
6
6
  Author: Vasiliy Zdanovskiy
@@ -1,10 +1,10 @@
1
1
  mcp_proxy_adapter/__init__.py,sha256=iH0EBBsRj_cfZJpAIsgN_8tTdfefhnl6uUKHjLHhWDQ,1037
2
- mcp_proxy_adapter/__main__.py,sha256=lMY8zXOjN1vjBJpGuD4lGBI_n8eLhBBIp56q6R-F_uA,770
2
+ mcp_proxy_adapter/__main__.py,sha256=bh7XUZjW7Mo6cmA8yHrCbOoVfLSthZ_np9bBdiOF1Ko,578
3
3
  mcp_proxy_adapter/config.py,sha256=-7iVS0mUWWKNeao7nqTAFlUD6FcMwRlDkchN7OwYsr0,21662
4
4
  mcp_proxy_adapter/custom_openapi.py,sha256=yLle4CntYK9wpivgn9NflZyJhy-YNrmWjJzt0ai5nP0,14672
5
- mcp_proxy_adapter/main.py,sha256=BnI4TDR-5UA8HOnKxacpjQ8NuAdBEXbrVSFQGj2gFYk,3245
5
+ mcp_proxy_adapter/main.py,sha256=qDkQTXnCvf8u0I3b8PRrguOoVdjd8YRr90ZooOqeOto,3401
6
6
  mcp_proxy_adapter/openapi.py,sha256=2UZOI09ZDRJuBYBjKbMyb2U4uASszoCMD5o_4ktRpvg,13480
7
- mcp_proxy_adapter/version.py,sha256=Jzyaj4dq1m3iGuYgMhWnWW3F3O8VBmjMeNZZEb7aG60,74
7
+ mcp_proxy_adapter/version.py,sha256=ovkQ_8lraVLkXaw9XpLn7O48DiegkkpXjYxmTsjH7p4,75
8
8
  mcp_proxy_adapter/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  mcp_proxy_adapter/api/app.py,sha256=22NIDGo6pGkOZnvBWeKv_-RIRye4YaYkIskVGIsCCMs,28600
10
10
  mcp_proxy_adapter/api/handlers.py,sha256=iyFGoEuUS1wxbV1ELA0zmaxIyQR7j4zw-4MrD-uIO6E,8294
@@ -53,7 +53,7 @@ mcp_proxy_adapter/commands/token_management_command.py,sha256=tCVjhWqAQ3KhcwSsZU
53
53
  mcp_proxy_adapter/commands/transport_management_command.py,sha256=HEnUyL4S014jheyBwO90u9gnzk0qxBlOJdC_0Sxhq9E,4585
54
54
  mcp_proxy_adapter/commands/unload_command.py,sha256=6CUM9B9c-mNxw7uvt2vcvZSnxMySfoMT5UmDhzNXq38,4984
55
55
  mcp_proxy_adapter/core/__init__.py,sha256=3yt0CFZdsIG8Ln4bg-r4ISYzipm3ZUAxTn0twYTs9FI,867
56
- mcp_proxy_adapter/core/app_factory.py,sha256=zVPoBGWFxKT7EKCbUtJrnmg8CskYRSyIO7l78LQGGxc,18768
56
+ mcp_proxy_adapter/core/app_factory.py,sha256=H4mF6evurcaH5ZPK1lLaYMutTWKKsi98Yit3sDdkuzA,19105
57
57
  mcp_proxy_adapter/core/app_runner.py,sha256=1t9p_UkWb1IvZDTD7FOCRMNSpOSgtNeHM3i7PP7x6xc,10605
58
58
  mcp_proxy_adapter/core/auth_validator.py,sha256=q8TNkdolvP-gM6Bvecc6nrVG9al5J31pocdwhguhTBk,19742
59
59
  mcp_proxy_adapter/core/certificate_utils.py,sha256=yeDwi-j42CxK_g-r5_ragGFY_HdSgDfTWHVUjDHF6nI,38480
@@ -135,10 +135,10 @@ mcp_proxy_adapter/examples/scripts/generate_certificates_and_tokens.py,sha256=hU
135
135
  mcp_proxy_adapter/schemas/base_schema.json,sha256=v9G9cGMd4dRhCZsOQ_FMqOi5VFyVbI6Cf3fyIvOT9dc,2881
136
136
  mcp_proxy_adapter/schemas/openapi_schema.json,sha256=C3yLkwmDsvnLW9B5gnKKdBGl4zxkeU-rEmjTrNVsQU0,8405
137
137
  mcp_proxy_adapter/utils/config_generator.py,sha256=UXxuxxAyKTesAS3DOofQ26e20v771inA7EfBV8PZD1c,47543
138
- mcp_proxy_adapter-6.3.9.dist-info/licenses/LICENSE,sha256=6KdtUcTwmTRbJrAmYjVn7e6S-V42ubeDJ-AiVEzZ510,1075
138
+ mcp_proxy_adapter-6.3.11.dist-info/licenses/LICENSE,sha256=6KdtUcTwmTRbJrAmYjVn7e6S-V42ubeDJ-AiVEzZ510,1075
139
139
  mcp_proxy_adapter_issue_package/demonstrate_issue.py,sha256=NDyiWSjQHly4ji1sB4ZqdmOFyZlPQ4Id80dTrRwcmoE,7736
140
- mcp_proxy_adapter-6.3.9.dist-info/METADATA,sha256=yQ3IUtWyp4e__AB6LpaB330QASJMTp1Ls052TVTVAE0,22347
141
- mcp_proxy_adapter-6.3.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
- mcp_proxy_adapter-6.3.9.dist-info/entry_points.txt,sha256=J3eV6ID0lt_VSp4lIdIgBFTqLCThgObNNxRCbyfiMHw,70
143
- mcp_proxy_adapter-6.3.9.dist-info/top_level.txt,sha256=CHk-Mc-AxjO-tRheegA2qLiQnU4vZRnxuTF81So6SAc,50
144
- mcp_proxy_adapter-6.3.9.dist-info/RECORD,,
140
+ mcp_proxy_adapter-6.3.11.dist-info/METADATA,sha256=LU-DEQubtviXhl43eDn0ub5-qRkA3zQKuIYKaSxKpeA,22348
141
+ mcp_proxy_adapter-6.3.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
+ mcp_proxy_adapter-6.3.11.dist-info/entry_points.txt,sha256=J3eV6ID0lt_VSp4lIdIgBFTqLCThgObNNxRCbyfiMHw,70
143
+ mcp_proxy_adapter-6.3.11.dist-info/top_level.txt,sha256=CHk-Mc-AxjO-tRheegA2qLiQnU4vZRnxuTF81So6SAc,50
144
+ mcp_proxy_adapter-6.3.11.dist-info/RECORD,,