rhinomcp 0.1.2.0__tar.gz → 0.1.2.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.
Files changed (24) hide show
  1. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/PKG-INFO +1 -1
  2. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/pyproject.toml +1 -1
  3. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/select_objects.py +6 -3
  4. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp.egg-info/PKG-INFO +1 -1
  5. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/README.md +0 -0
  6. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/setup.cfg +0 -0
  7. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/__init__.py +0 -0
  8. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/prompts/assert_general_strategy.py +0 -0
  9. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/resources/rhinoscriptsyntax_resource.py +0 -0
  10. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/server.py +0 -0
  11. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/create_object.py +0 -0
  12. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/create_objects.py +0 -0
  13. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/delete_object.py +0 -0
  14. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/execute_rhinoscript_python_code.py +0 -0
  15. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/get_document_info.py +0 -0
  16. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/get_object_info.py +0 -0
  17. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/get_selected_objects_info.py +0 -0
  18. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/modify_object.py +0 -0
  19. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp/tools/modify_objects.py +0 -0
  20. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp.egg-info/SOURCES.txt +0 -0
  21. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp.egg-info/dependency_links.txt +0 -0
  22. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp.egg-info/entry_points.txt +0 -0
  23. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp.egg-info/requires.txt +0 -0
  24. {rhinomcp-0.1.2.0 → rhinomcp-0.1.2.2}/src/rhinomcp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rhinomcp
3
- Version: 0.1.2.0
3
+ Version: 0.1.2.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,6 +1,6 @@
1
1
  [project]
2
2
  name = "rhinomcp"
3
- version = "0.1.2.0"
3
+ version = "0.1.2.2"
4
4
  description = "Rhino integration through the Model Context Protocol"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -7,7 +7,7 @@ from typing import Any, List, Dict
7
7
  @mcp.tool()
8
8
  def select_objects(
9
9
  ctx: Context,
10
- filters: Dict[str, Any] = {},
10
+ filters: Dict[str, List[Any]] = {},
11
11
  filters_type: str = "and",
12
12
  ) -> str:
13
13
  """
@@ -17,6 +17,9 @@ def select_objects(
17
17
  - filters: A dictionary containing the filters. The filters parameter is necessary, unless it's empty, in which case all objects will be selected.
18
18
  - filters_type: The type of the filters, it's "and" or "or", default is "and"
19
19
 
20
+ Note:
21
+ The filter value is always a list, even if it's a single value. The reason is that a filter can contain multiple values, for example when we query by a attribute that has EITHER value1 OR value2.
22
+
20
23
  The filters dictionary can contain the following keys:
21
24
  - name: The name of the object
22
25
  - color: The color of the object, for example [255, 0, 0]
@@ -27,8 +30,8 @@ def select_objects(
27
30
 
28
31
  Example:
29
32
  filters = {
30
- "name": "object_name",
31
- "category": "custom_attribute_value"
33
+ "name": ["object_name1", "object_name2"],
34
+ "category": ["custom_attribute_value"]
32
35
  },
33
36
  filters_type = "or"
34
37
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rhinomcp
3
- Version: 0.1.2.0
3
+ Version: 0.1.2.2
4
4
  Summary: Rhino integration through the Model Context Protocol
5
5
  Author-email: Jingcheng Chen <mail@jchen.ch>
6
6
  License: MIT
File without changes
File without changes