@josephyan/qingflow-app-user-mcp 0.2.0-beta.96 → 0.2.0-beta.97
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.
- package/README.md +2 -2
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/src/qingflow_mcp/__init__.py +1 -1
- package/src/qingflow_mcp/tools/record_tools.py +16 -14
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @josephyan/qingflow-app-user-mcp@0.2.0-beta.
|
|
6
|
+
npm install @josephyan/qingflow-app-user-mcp@0.2.0-beta.97
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Run:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx -y -p @josephyan/qingflow-app-user-mcp@0.2.0-beta.
|
|
12
|
+
npx -y -p @josephyan/qingflow-app-user-mcp@0.2.0-beta.97 qingflow-app-user-mcp
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Environment:
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -2789,8 +2789,6 @@ class RecordTools(ToolBase):
|
|
|
2789
2789
|
) -> list[AccessibleViewRoute]:
|
|
2790
2790
|
candidates: list[AccessibleViewRoute] = []
|
|
2791
2791
|
for view_id, list_type, name in SYSTEM_VIEW_DEFINITIONS:
|
|
2792
|
-
if not self._probe_list_type_access(context, app_key=app_key, list_type=list_type):
|
|
2793
|
-
continue
|
|
2794
2792
|
candidates.append(
|
|
2795
2793
|
AccessibleViewRoute(
|
|
2796
2794
|
view_id=view_id,
|
|
@@ -2807,11 +2805,22 @@ class RecordTools(ToolBase):
|
|
|
2807
2805
|
view_key = _normalize_optional_text(item.get("viewKey"))
|
|
2808
2806
|
if not view_key:
|
|
2809
2807
|
continue
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2808
|
+
view_name = _normalize_optional_text(item.get("viewName")) or view_key
|
|
2809
|
+
view_type = _normalize_optional_text(item.get("viewType") or item.get("viewgraphType"))
|
|
2810
|
+
filter_config: JSONObject | None = None
|
|
2811
|
+
if isinstance(item.get("viewgraphLimit"), list):
|
|
2812
|
+
filter_config = item
|
|
2813
|
+
else:
|
|
2814
|
+
raw_view_config = item.get("viewConfig")
|
|
2815
|
+
if isinstance(raw_view_config, dict):
|
|
2816
|
+
filter_config = raw_view_config
|
|
2817
|
+
view_selection = ViewSelection(
|
|
2818
|
+
view_key=view_key,
|
|
2819
|
+
view_name=view_name,
|
|
2820
|
+
conditions=_compile_view_conditions(filter_config or {}),
|
|
2821
|
+
view_type=view_type,
|
|
2822
|
+
filter_config_loaded=isinstance(filter_config, dict),
|
|
2823
|
+
)
|
|
2815
2824
|
candidates.append(
|
|
2816
2825
|
AccessibleViewRoute(
|
|
2817
2826
|
view_id=f"custom:{view_key}",
|
|
@@ -7178,13 +7187,6 @@ class RecordTools(ToolBase):
|
|
|
7178
7187
|
raise_tool_error(QingflowApiError.config_error("view_id is required; call app_get first to inspect accessible_views"))
|
|
7179
7188
|
|
|
7180
7189
|
system_all_list_type = SYSTEM_VIEW_ID_TO_LIST_TYPE["system:all"]
|
|
7181
|
-
if not self._probe_list_type_access(context, app_key=app_key, list_type=system_all_list_type):
|
|
7182
|
-
raise_tool_error(
|
|
7183
|
-
QingflowApiError.config_error(
|
|
7184
|
-
"view_id is required because system:all is not accessible; call app_get first to inspect accessible_views"
|
|
7185
|
-
)
|
|
7186
|
-
)
|
|
7187
|
-
|
|
7188
7190
|
return (
|
|
7189
7191
|
AccessibleViewRoute(
|
|
7190
7192
|
view_id="system:all",
|