mcp-proxy-adapter 2.1.0__tar.gz → 2.1.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.
- {mcp_proxy_adapter-2.1.0/src/mcp_proxy_adapter.egg-info → mcp_proxy_adapter-2.1.2}/PKG-INFO +2 -2
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/docstring_and_schema_example.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/extension_example.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/help_best_practices.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/help_usage.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/openapi_server.py +2 -2
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/project_structure_example.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/testing_example.py +1 -1
- mcp_proxy_adapter-2.1.2/mcp_proxy_adapter/__init__.py +17 -0
- mcp_proxy_adapter-2.1.2/mcp_proxy_adapter/adapter.py +697 -0
- mcp_proxy_adapter-2.1.2/mcp_proxy_adapter/models.py +47 -0
- mcp_proxy_adapter-2.1.2/mcp_proxy_adapter/registry.py +439 -0
- mcp_proxy_adapter-2.1.2/mcp_proxy_adapter/schema.py +257 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter.egg-info}/PKG-INFO +2 -2
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2}/mcp_proxy_adapter.egg-info/SOURCES.txt +21 -28
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2}/mcp_proxy_adapter.egg-info/requires.txt +1 -1
- mcp_proxy_adapter-2.1.2/mcp_proxy_adapter.egg-info/top_level.txt +7 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/pyproject.toml +4 -4
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/requirements.txt +1 -1
- mcp_proxy_adapter-2.1.2/scripts/code_analyzer/code_analyzer.py +328 -0
- mcp_proxy_adapter-2.1.2/scripts/code_analyzer/register_commands.py +446 -0
- mcp_proxy_adapter-2.1.2/scripts/publish.py +85 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/setup.py +2 -2
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_adapter.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_adapter_coverage.py +1 -1
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_basic_dispatcher.py +1 -4
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_command_registry.py +3 -3
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_mcp_proxy_adapter.py +3 -3
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_mcp_proxy_adapter_basic.py +3 -3
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_part1.py +5 -5
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_part2.py +4 -4
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_schema.py +1 -1
- mcp_proxy_adapter-2.1.0/src/adapters/__init__.py +0 -16
- mcp_proxy_adapter-2.1.0/src/cli/__init__.py +0 -12
- mcp_proxy_adapter-2.1.0/src/cli/__main__.py +0 -79
- mcp_proxy_adapter-2.1.0/src/cli/command_runner.py +0 -233
- mcp_proxy_adapter-2.1.0/src/generators/__init__.py +0 -14
- mcp_proxy_adapter-2.1.0/src/generators/endpoint_generator.py +0 -172
- mcp_proxy_adapter-2.1.0/src/generators/openapi_generator.py +0 -254
- mcp_proxy_adapter-2.1.0/src/generators/rest_api_generator.py +0 -207
- mcp_proxy_adapter-2.1.0/src/mcp_proxy_adapter.egg-info/top_level.txt +0 -9
- mcp_proxy_adapter-2.1.0/src/openapi_schema/__init__.py +0 -38
- mcp_proxy_adapter-2.1.0/src/openapi_schema/command_registry.py +0 -312
- mcp_proxy_adapter-2.1.0/src/openapi_schema/rest_schema.py +0 -510
- mcp_proxy_adapter-2.1.0/src/openapi_schema/rpc_generator.py +0 -307
- mcp_proxy_adapter-2.1.0/src/openapi_schema/rpc_schema.py +0 -416
- mcp_proxy_adapter-2.1.0/src/validators/__init__.py +0 -14
- mcp_proxy_adapter-2.1.0/src/validators/base_validator.py +0 -23
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/LICENSE +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/MANIFEST.in +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/README.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/code_index.yaml +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/README.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/README_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/architecture.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/architecture_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/command_development.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/command_development_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/deployment.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/deployment_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/examples.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/examples_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/mcp_proxy_adapter.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/mcp_proxy_adapter_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/quickstart.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/quickstart_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/testing.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/testing_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/docs/validation_ru.md +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/analyze_config.py +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/basic_integration.py +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/mcp_proxy_client.py +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/mcp_proxy_config.json +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/analyzers/__init__.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/analyzers/docstring_analyzer.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/analyzers/type_analyzer.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/dispatchers/__init__.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/dispatchers/base_dispatcher.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/dispatchers/json_rpc_dispatcher.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/validators/docstring_validator.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2/mcp_proxy_adapter}/validators/metadata_validator.py +0 -0
- {mcp_proxy_adapter-2.1.0/src → mcp_proxy_adapter-2.1.2}/mcp_proxy_adapter.egg-info/dependency_links.txt +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/setup.cfg +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/conftest.py +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_examples.py +0 -0
- {mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/tests/test_simple_adapter.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mcp-proxy-adapter
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.2
|
4
4
|
Summary: Adapter for exposing Command Registry commands as tools for AI models via MCP Proxy.
|
5
5
|
Home-page: https://github.com/vasilyvz/mcp-proxy-adapter
|
6
6
|
Author: Vasiliy VZ
|
@@ -21,7 +21,7 @@ Requires-Python: >=3.9, <4
|
|
21
21
|
Description-Content-Type: text/markdown
|
22
22
|
License-File: LICENSE
|
23
23
|
Requires-Dist: fastapi<1.0.0,>=0.95.0
|
24
|
-
Requires-Dist: pydantic
|
24
|
+
Requires-Dist: pydantic>=2.0.0
|
25
25
|
Requires-Dist: uvicorn<1.0.0,>=0.22.0
|
26
26
|
Requires-Dist: docstring-parser<1.0.0,>=0.15
|
27
27
|
Requires-Dist: typing-extensions<5.0.0,>=4.5.0
|
{mcp_proxy_adapter-2.1.0 → mcp_proxy_adapter-2.1.2}/examples/docstring_and_schema_example.py
RENAMED
@@ -11,7 +11,7 @@ Run:
|
|
11
11
|
import os
|
12
12
|
import sys
|
13
13
|
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
|
14
|
-
from
|
14
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
15
15
|
|
16
16
|
class MyRegistry:
|
17
17
|
def __init__(self):
|
@@ -11,7 +11,7 @@ Run:
|
|
11
11
|
import os
|
12
12
|
import sys
|
13
13
|
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
|
14
|
-
from
|
14
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
15
15
|
|
16
16
|
class MyRegistry:
|
17
17
|
def __init__(self):
|
@@ -14,7 +14,7 @@ import os
|
|
14
14
|
import sys
|
15
15
|
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
|
16
16
|
from typing import Any, Dict
|
17
|
-
from
|
17
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
18
18
|
from tests.test_mcp_proxy_adapter import MockRegistry
|
19
19
|
|
20
20
|
# --- Setup registry and adapter ---
|
@@ -16,7 +16,7 @@ sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
|
|
16
16
|
from typing import Any, Dict
|
17
17
|
|
18
18
|
# Assume MCPProxyAdapter and MockRegistry are available from src and tests
|
19
|
-
from
|
19
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
20
20
|
from tests.test_mcp_proxy_adapter import MockRegistry
|
21
21
|
|
22
22
|
# --- Setup registry and adapter ---
|
@@ -19,10 +19,10 @@ from pydantic import BaseModel, Field
|
|
19
19
|
import uvicorn
|
20
20
|
|
21
21
|
# Import MCP Proxy Adapter
|
22
|
-
from
|
22
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
23
23
|
|
24
24
|
# Import models for JSON-RPC
|
25
|
-
from
|
25
|
+
from mcp_proxy_adapter.models import JsonRpcRequest, JsonRpcResponse
|
26
26
|
|
27
27
|
# Import MockRegistry from tests for example
|
28
28
|
# (in a real project, CommandRegistry would be used)
|
@@ -12,7 +12,7 @@ import os
|
|
12
12
|
import sys
|
13
13
|
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
|
14
14
|
from fastapi import FastAPI
|
15
|
-
from
|
15
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
16
16
|
|
17
17
|
# --- Command registry and commands ---
|
18
18
|
class MyRegistry:
|
@@ -11,7 +11,7 @@ Run:
|
|
11
11
|
import os
|
12
12
|
import sys
|
13
13
|
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
|
14
|
-
from
|
14
|
+
from mcp_proxy_adapter.adapter import MCPProxyAdapter
|
15
15
|
|
16
16
|
class MyRegistry:
|
17
17
|
def __init__(self):
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"""
|
2
|
+
MCP Proxy Adapter
|
3
|
+
=================
|
4
|
+
|
5
|
+
Adapter for integrating Command Registry with MCP Proxy to use commands as tools
|
6
|
+
for AI models.
|
7
|
+
"""
|
8
|
+
|
9
|
+
# Package version
|
10
|
+
__version__ = '1.0.0'
|
11
|
+
|
12
|
+
# Public API
|
13
|
+
from .adapter import MCPProxyAdapter, configure_logger
|
14
|
+
from .models import MCPProxyConfig, MCPProxyTool, CommandInfo, CommandParameter
|
15
|
+
|
16
|
+
__all__ = ['MCPProxyAdapter', 'configure_logger', 'MCPProxyConfig', 'MCPProxyTool',
|
17
|
+
'CommandInfo', 'CommandParameter']
|