rhinomcp 0.1.2.2__py3-none-any.whl → 0.1.3.1__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.
- rhinomcp/__init__.py +6 -3
- rhinomcp/server.py +6 -0
- rhinomcp/static/rhinoscriptsyntax.json +14642 -0
- rhinomcp/tools/create_layer.py +47 -0
- rhinomcp/tools/delete_layer.py +47 -0
- rhinomcp/tools/execute_rhinoscript_python_code.py +17 -30
- rhinomcp/tools/get_or_set_current_layer.py +47 -0
- rhinomcp/tools/get_rhinoscript_python_code_guide.py +27 -0
- rhinomcp/tools/get_rhinoscript_python_function_names.py +56 -0
- {rhinomcp-0.1.2.2.dist-info → rhinomcp-0.1.3.1.dist-info}/METADATA +1 -1
- rhinomcp-0.1.3.1.dist-info/RECORD +24 -0
- {rhinomcp-0.1.2.2.dist-info → rhinomcp-0.1.3.1.dist-info}/WHEEL +1 -1
- rhinomcp/resources/rhinoscriptsyntax_resource.py +0 -59
- rhinomcp-0.1.2.2.dist-info/RECORD +0 -19
- {rhinomcp-0.1.2.2.dist-info → rhinomcp-0.1.3.1.dist-info}/entry_points.txt +0 -0
- {rhinomcp-0.1.2.2.dist-info → rhinomcp-0.1.3.1.dist-info}/top_level.txt +0 -0
rhinomcp/__init__.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
__version__ = "0.1.0"
|
4
4
|
|
5
5
|
# Expose key classes and functions for easier imports
|
6
|
-
from .server import RhinoConnection, get_rhino_connection, mcp, logger
|
6
|
+
from .server import RhinoConnection, get_rhino_connection, mcp, logger, rhinoscriptsyntax_json
|
7
7
|
|
8
8
|
from .prompts.assert_general_strategy import asset_general_strategy
|
9
9
|
|
@@ -16,6 +16,9 @@ from .tools.get_selected_objects_info import get_selected_objects_info
|
|
16
16
|
from .tools.modify_object import modify_object
|
17
17
|
from .tools.modify_objects import modify_objects
|
18
18
|
from .tools.execute_rhinoscript_python_code import execute_rhinoscript_python_code
|
19
|
+
from .tools.get_rhinoscript_python_function_names import get_rhinoscript_python_function_names
|
20
|
+
from .tools.get_rhinoscript_python_code_guide import get_rhinoscript_python_code_guide
|
19
21
|
from .tools.select_objects import select_objects
|
20
|
-
|
21
|
-
from .
|
22
|
+
from .tools.create_layer import create_layer
|
23
|
+
from .tools.get_or_set_current_layer import get_or_set_current_layer
|
24
|
+
from .tools.delete_layer import delete_layer
|
rhinomcp/server.py
CHANGED
@@ -12,6 +12,12 @@ from pathlib import Path
|
|
12
12
|
import base64
|
13
13
|
from urllib.parse import urlparse
|
14
14
|
|
15
|
+
# Define path to static folder
|
16
|
+
JSONFILE = Path("./src/rhinomcp/static/rhinoscriptsyntax.json")
|
17
|
+
|
18
|
+
with open(JSONFILE, 'r') as f:
|
19
|
+
rhinoscriptsyntax_json = json.loads(f.read())
|
20
|
+
|
15
21
|
|
16
22
|
# Configure logging
|
17
23
|
logging.basicConfig(level=logging.INFO,
|