@qingflow-tech/qingflow-app-builder-mcp 1.0.24 → 1.0.25
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/cli/formatters.py +53 -0
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.
|
|
6
|
+
npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.25
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Run:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.
|
|
12
|
+
npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.25 qingflow-app-builder-mcp
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Environment:
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -1217,8 +1217,14 @@ def _format_builder_summary(result: dict[str, Any]) -> str:
|
|
|
1217
1217
|
"app_keys",
|
|
1218
1218
|
):
|
|
1219
1219
|
value = result.get(key)
|
|
1220
|
+
if not isinstance(value, list) and isinstance(data, dict):
|
|
1221
|
+
value = data.get(key)
|
|
1220
1222
|
if isinstance(value, list):
|
|
1221
1223
|
lines.append(f"{key}: {len(value)}")
|
|
1224
|
+
for item in value[:8]:
|
|
1225
|
+
lines.append("- " + _builder_item_summary(item))
|
|
1226
|
+
if len(value) > 8:
|
|
1227
|
+
lines.append(f"... {len(value) - 8} more")
|
|
1222
1228
|
components = result.get("components") if isinstance(result.get("components"), list) else []
|
|
1223
1229
|
if components:
|
|
1224
1230
|
lines.append("Component Refs:")
|
|
@@ -1251,6 +1257,53 @@ def _format_builder_summary(result: dict[str, Any]) -> str:
|
|
|
1251
1257
|
return "\n".join(lines) + "\n"
|
|
1252
1258
|
|
|
1253
1259
|
|
|
1260
|
+
def _builder_item_summary(item: Any) -> str:
|
|
1261
|
+
if not isinstance(item, dict):
|
|
1262
|
+
return str(item)
|
|
1263
|
+
preferred_keys = (
|
|
1264
|
+
"app_key",
|
|
1265
|
+
"appKey",
|
|
1266
|
+
"app_name",
|
|
1267
|
+
"appName",
|
|
1268
|
+
"package_id",
|
|
1269
|
+
"packageId",
|
|
1270
|
+
"package_name",
|
|
1271
|
+
"packageName",
|
|
1272
|
+
"dash_key",
|
|
1273
|
+
"dashKey",
|
|
1274
|
+
"dash_name",
|
|
1275
|
+
"dashName",
|
|
1276
|
+
"view_key",
|
|
1277
|
+
"viewKey",
|
|
1278
|
+
"view_name",
|
|
1279
|
+
"viewName",
|
|
1280
|
+
"chart_id",
|
|
1281
|
+
"chartId",
|
|
1282
|
+
"chart_name",
|
|
1283
|
+
"chartName",
|
|
1284
|
+
"field_id",
|
|
1285
|
+
"queId",
|
|
1286
|
+
"title",
|
|
1287
|
+
"queTitle",
|
|
1288
|
+
"name",
|
|
1289
|
+
"role_id",
|
|
1290
|
+
"roleId",
|
|
1291
|
+
"role_name",
|
|
1292
|
+
"roleName",
|
|
1293
|
+
"uid",
|
|
1294
|
+
"userId",
|
|
1295
|
+
"email",
|
|
1296
|
+
)
|
|
1297
|
+
parts = [
|
|
1298
|
+
f"{key}={item.get(key)}"
|
|
1299
|
+
for key in preferred_keys
|
|
1300
|
+
if item.get(key) not in (None, "", [], {})
|
|
1301
|
+
]
|
|
1302
|
+
if not parts:
|
|
1303
|
+
parts = _dict_scalar_lines(item)[:6]
|
|
1304
|
+
return " / ".join(parts) if parts else json.dumps(item, ensure_ascii=False)
|
|
1305
|
+
|
|
1306
|
+
|
|
1254
1307
|
def _format_file_upload_local(result: dict[str, Any]) -> str:
|
|
1255
1308
|
lines = [
|
|
1256
1309
|
f"Upload Kind: {result.get('upload_kind') or result.get('requested_upload_kind') or '-'}",
|