rhinomcp 0.1.2.1__py3-none-any.whl → 0.1.2.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.
@@ -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.1
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
@@ -11,9 +11,9 @@ rhinomcp/tools/get_object_info.py,sha256=mqsnkVzYHMnv9CPA7DX1dyj5z538WEsIVWu9yI6
11
11
  rhinomcp/tools/get_selected_objects_info.py,sha256=73u2Y9l9O8rwboFwBcfGQFYuFBZBp1UkChNJkK2Rbjo,573
12
12
  rhinomcp/tools/modify_object.py,sha256=OVQa75PAmuVx-YslxSC2ITdFbp6cCELVaacI77sJ7Zg,1912
13
13
  rhinomcp/tools/modify_objects.py,sha256=52okeGwV5IQiuBSBH9HcyDCxWbCNF4eA7LoLuhLlgp4,1498
14
- rhinomcp/tools/select_objects.py,sha256=7qciRHFYN5orpOMDiqETCW8bOJEG-K302vQgYjsAv60,1697
15
- rhinomcp-0.1.2.1.dist-info/METADATA,sha256=0cEqEEGNzaYl1LFWda6xGaVioi3JCSMh8WQK3IQ8Tmo,920
16
- rhinomcp-0.1.2.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
17
- rhinomcp-0.1.2.1.dist-info/entry_points.txt,sha256=OserOidtKWCl-_h3O1c2e9La6wYmJ9rE5F_T5wRLX9w,50
18
- rhinomcp-0.1.2.1.dist-info/top_level.txt,sha256=sw73qoWC7GQp5upujkME6pRWc8OxBydEeDwQqu-qv4U,9
19
- rhinomcp-0.1.2.1.dist-info/RECORD,,
14
+ rhinomcp/tools/select_objects.py,sha256=J9QjfnD9gdepTCqalBDqOi9nJEX9D3sLPJKImTcJciI,1935
15
+ rhinomcp-0.1.2.2.dist-info/METADATA,sha256=CX4Bjmt-IuwR8ZH9WMJeVfgmbFNMR6UAsLA8KiYrrAA,920
16
+ rhinomcp-0.1.2.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
17
+ rhinomcp-0.1.2.2.dist-info/entry_points.txt,sha256=OserOidtKWCl-_h3O1c2e9La6wYmJ9rE5F_T5wRLX9w,50
18
+ rhinomcp-0.1.2.2.dist-info/top_level.txt,sha256=sw73qoWC7GQp5upujkME6pRWc8OxBydEeDwQqu-qv4U,9
19
+ rhinomcp-0.1.2.2.dist-info/RECORD,,