@qingflow-tech/qingflow-app-builder-mcp 1.0.22 → 1.0.23

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 CHANGED
@@ -3,13 +3,13 @@
3
3
  Install:
4
4
 
5
5
  ```bash
6
- npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.22
6
+ npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.23
7
7
  ```
8
8
 
9
9
  Run:
10
10
 
11
11
  ```bash
12
- npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.22 qingflow-app-builder-mcp
12
+ npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.23 qingflow-app-builder-mcp
13
13
  ```
14
14
 
15
15
  Environment:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qingflow-tech/qingflow-app-builder-mcp",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Builder MCP for Qingflow app/package/system design and staged solution workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qingflow-mcp"
7
- version = "1.0.22"
7
+ version = "1.0.23"
8
8
  description = "User-authenticated MCP server for Qingflow"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1078,18 +1078,76 @@ def _format_export_direct(result: dict[str, Any]) -> str:
1078
1078
 
1079
1079
  def _format_builder_summary(result: dict[str, Any]) -> str:
1080
1080
  lines = []
1081
- if "status" in result:
1082
- lines.append(f"Status: {result.get('status')}")
1083
- if "app_key" in result:
1084
- lines.append(f"App Key: {result.get('app_key')}")
1085
- if "dash_key" in result:
1086
- lines.append(f"Dash Key: {result.get('dash_key')}")
1087
- if "verified" in result:
1088
- lines.append(f"Verified: {result.get('verified')}")
1081
+ emitted: set[str] = set()
1082
+ for key, label in (
1083
+ ("status", "Status"),
1084
+ ("message", "Message"),
1085
+ ("app_key", "App Key"),
1086
+ ("dash_key", "Dash Key"),
1087
+ ("view_key", "View Key"),
1088
+ ("chart_id", "Chart ID"),
1089
+ ("package_id", "Package ID"),
1090
+ ("verified", "Verified"),
1091
+ ("write_executed", "Write Executed"),
1092
+ ("delete_executed", "Delete Executed"),
1093
+ ("safe_to_retry", "Safe To Retry"),
1094
+ ):
1095
+ if key in result and result.get(key) not in (None, ""):
1096
+ lines.append(f"{label}: {result.get(key)}")
1097
+ emitted.add(key)
1098
+ for key, value in result.items():
1099
+ if key in emitted or key in {"data", "warnings", "verification", "details", "result", "raw"}:
1100
+ continue
1101
+ if isinstance(value, (str, int, float, bool)) or value is None:
1102
+ lines.append(f"{key}: {value}")
1089
1103
  data = result.get("data")
1090
1104
  if isinstance(data, dict):
1091
1105
  scalar_lines = _dict_scalar_lines(data)
1092
- lines.extend(scalar_lines[:8])
1106
+ if scalar_lines:
1107
+ lines.append("Data:")
1108
+ lines.extend(f"- {line}" for line in scalar_lines[:12])
1109
+ for key in (
1110
+ "items",
1111
+ "apps",
1112
+ "fields",
1113
+ "sections",
1114
+ "components",
1115
+ "questions",
1116
+ "views",
1117
+ "charts",
1118
+ "buttons",
1119
+ "associations",
1120
+ "package_ids",
1121
+ "app_keys",
1122
+ ):
1123
+ value = result.get(key)
1124
+ if isinstance(value, list):
1125
+ lines.append(f"{key}: {len(value)}")
1126
+ components = result.get("components") if isinstance(result.get("components"), list) else []
1127
+ if components:
1128
+ lines.append("Component Refs:")
1129
+ for item in components[:8]:
1130
+ if not isinstance(item, dict):
1131
+ continue
1132
+ chart_ref = item.get("chart_ref") if isinstance(item.get("chart_ref"), dict) else {}
1133
+ view_ref = item.get("view_ref") if isinstance(item.get("view_ref"), dict) else {}
1134
+ source_type = item.get("source_type") or item.get("type") or "unknown"
1135
+ title = item.get("title")
1136
+ if chart_ref:
1137
+ lines.append(f"- {source_type}: {title or chart_ref.get('chart_name') or '-'} / chart_id={chart_ref.get('chart_id') or '-'}")
1138
+ elif view_ref:
1139
+ lines.append(
1140
+ f"- {source_type}: {title or view_ref.get('view_name') or '-'} / "
1141
+ f"view_key={view_ref.get('view_key') or '-'} / app_key={view_ref.get('app_key') or '-'}"
1142
+ )
1143
+ else:
1144
+ lines.append(f"- {source_type}: {title or '-'}")
1145
+ if isinstance(result.get("base"), dict):
1146
+ lines.append(f"Base Keys: {', '.join(str(key) for key in list(result['base'].keys())[:12])}")
1147
+ if isinstance(result.get("config"), dict):
1148
+ lines.append(f"Config Keys: {', '.join(str(key) for key in list(result['config'].keys())[:12])}")
1149
+ if isinstance(result.get("visibility"), dict):
1150
+ lines.append(f"Visibility Keys: {', '.join(str(key) for key in list(result['visibility'].keys())[:12])}")
1093
1151
  _append_warnings(lines, result.get("warnings"))
1094
1152
  _append_verification(lines, result.get("verification"))
1095
1153
  if not lines: