rhinomcp 0.1.3.1__py3-none-any.whl → 0.1.3.2__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 CHANGED
@@ -3,7 +3,8 @@
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, rhinoscriptsyntax_json
6
+ from .static.rhinoscriptsyntax import rhinoscriptsyntax_json
7
+ from .server import RhinoConnection, get_rhino_connection, mcp, logger
7
8
 
8
9
  from .prompts.assert_general_strategy import asset_general_strategy
9
10
 
rhinomcp/server.py CHANGED
@@ -7,17 +7,6 @@ import logging
7
7
  from dataclasses import dataclass
8
8
  from contextlib import asynccontextmanager
9
9
  from typing import AsyncIterator, Dict, Any, List
10
- import os
11
- from pathlib import Path
12
- import base64
13
- from urllib.parse import urlparse
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
-
21
10
 
22
11
  # Configure logging
23
12
  logging.basicConfig(level=logging.INFO,
@@ -1,4 +1,4 @@
1
- [
1
+ rhinoscriptsyntax_json = [
2
2
  {
3
3
  "ModuleName": "application",
4
4
  "functions": [
@@ -1,5 +1,5 @@
1
1
  from mcp.server.fastmcp import Context
2
- from rhinomcp.server import get_rhino_connection, mcp, logger, rhinoscriptsyntax_json
2
+ from rhinomcp import get_rhino_connection, mcp, logger, rhinoscriptsyntax_json
3
3
  from typing import Any, List, Dict
4
4
 
5
5
 
@@ -1,5 +1,5 @@
1
1
  from mcp.server.fastmcp import Context
2
- from rhinomcp.server import get_rhino_connection, mcp, logger, rhinoscriptsyntax_json
2
+ from rhinomcp import get_rhino_connection, mcp, logger, rhinoscriptsyntax_json
3
3
  from typing import Any, List, Dict
4
4
 
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rhinomcp
3
- Version: 0.1.3.1
3
+ Version: 0.1.3.2
4
4
  Summary: Rhino integration through the Model Context Protocol
5
5
  Author-email: Jingcheng Chen <mail@jchen.ch>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
- rhinomcp/__init__.py,sha256=_Fm4lCkvO4cPfOvUXDSvTv8bUEK3yU9S5iam-fKnEmA,1191
2
- rhinomcp/server.py,sha256=wenuSHkjL7lGa1LAdWxhpdoIGPiFud4HpsMzVAYeDns,9677
1
+ rhinomcp/__init__.py,sha256=ZHchPee5EDS_KuvxJCKcTblKQom6X0s7AV2XFHIKP_k,1228
2
+ rhinomcp/server.py,sha256=fbEs4HBLWTudg-e6BpFz294JV8pruqw8yBRgrmlEV2w,9415
3
3
  rhinomcp/prompts/assert_general_strategy.py,sha256=Aovach0WYClUw191iX_Mwyh2KlxdVp0gB2Wt4eiQDvM,1250
4
- rhinomcp/static/rhinoscriptsyntax.json,sha256=7iy8VWoA0nh68msGXgp_uHj-uYccO7kpBDP3kb1MZVw,1480460
4
+ rhinomcp/static/rhinoscriptsyntax.py,sha256=xrIBMxVs9qTXIzDQT3jLILF4TS-7MbNMqJrBY5KlOUk,1480485
5
5
  rhinomcp/tools/create_layer.py,sha256=Pz6xgKsiNZGRcUwc4nQrvSWwRNc9Uv5Vs4g-lKQz82c,1377
6
6
  rhinomcp/tools/create_object.py,sha256=uO5EhuM7SO9eq9senvskdiblZsWmveHHQxce9pMW7-g,3333
7
7
  rhinomcp/tools/create_objects.py,sha256=974VI3C_iLjz9nJ6ya0fwxbsI0u0rlyb_cM98W6T86U,2616
@@ -11,14 +11,14 @@ rhinomcp/tools/execute_rhinoscript_python_code.py,sha256=iHaXptYxGc0YY_oxBn_qwYr
11
11
  rhinomcp/tools/get_document_info.py,sha256=poPyqfO0KeV5Au3jks9Q3o6tTZVDfEuCm9BZWCLfpqY,613
12
12
  rhinomcp/tools/get_object_info.py,sha256=mqsnkVzYHMnv9CPA7DX1dyj5z538WEsIVWu9yI6DChM,967
13
13
  rhinomcp/tools/get_or_set_current_layer.py,sha256=xIvwvrmWXjnxC0WDLEMFxLAUOUjL8LD-8sQ2OYPO-nw,1493
14
- rhinomcp/tools/get_rhinoscript_python_code_guide.py,sha256=yJ80t-Ub78xPHCpKf8QgUwVILDr4k0OGnrtD3810YcA,935
15
- rhinomcp/tools/get_rhinoscript_python_function_names.py,sha256=CBUEaRotw5lIeloDk6jbNLN1hmuD6FvGlBR8Vc9OoYA,1367
14
+ rhinomcp/tools/get_rhinoscript_python_code_guide.py,sha256=phS1tCive-lwlWOrE4UW4Ydl1CDuGfqCYU9x6MuQgKY,928
15
+ rhinomcp/tools/get_rhinoscript_python_function_names.py,sha256=YLDtE8TIFXlMqcUSSpMLshoyB5bxPYiiwcsVY1phsSQ,1360
16
16
  rhinomcp/tools/get_selected_objects_info.py,sha256=73u2Y9l9O8rwboFwBcfGQFYuFBZBp1UkChNJkK2Rbjo,573
17
17
  rhinomcp/tools/modify_object.py,sha256=OVQa75PAmuVx-YslxSC2ITdFbp6cCELVaacI77sJ7Zg,1912
18
18
  rhinomcp/tools/modify_objects.py,sha256=52okeGwV5IQiuBSBH9HcyDCxWbCNF4eA7LoLuhLlgp4,1498
19
19
  rhinomcp/tools/select_objects.py,sha256=J9QjfnD9gdepTCqalBDqOi9nJEX9D3sLPJKImTcJciI,1935
20
- rhinomcp-0.1.3.1.dist-info/METADATA,sha256=auwftYKnf5IsgVLv4vdjuFtlNK1fKQk8fQB6MVjmD9U,920
21
- rhinomcp-0.1.3.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
22
- rhinomcp-0.1.3.1.dist-info/entry_points.txt,sha256=OserOidtKWCl-_h3O1c2e9La6wYmJ9rE5F_T5wRLX9w,50
23
- rhinomcp-0.1.3.1.dist-info/top_level.txt,sha256=sw73qoWC7GQp5upujkME6pRWc8OxBydEeDwQqu-qv4U,9
24
- rhinomcp-0.1.3.1.dist-info/RECORD,,
20
+ rhinomcp-0.1.3.2.dist-info/METADATA,sha256=EGqrMjnPJ3dvYcyMCAibmJw28mMu7Q-TufiExYCZjpQ,920
21
+ rhinomcp-0.1.3.2.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
22
+ rhinomcp-0.1.3.2.dist-info/entry_points.txt,sha256=OserOidtKWCl-_h3O1c2e9La6wYmJ9rE5F_T5wRLX9w,50
23
+ rhinomcp-0.1.3.2.dist-info/top_level.txt,sha256=sw73qoWC7GQp5upujkME6pRWc8OxBydEeDwQqu-qv4U,9
24
+ rhinomcp-0.1.3.2.dist-info/RECORD,,