@qingflow-tech/qingflow-app-builder-mcp 1.0.19 → 1.0.20

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.19
6
+ npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.20
7
7
  ```
8
8
 
9
9
  Run:
10
10
 
11
11
  ```bash
12
- npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.19 qingflow-app-builder-mcp
12
+ npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.20 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.19",
3
+ "version": "1.0.20",
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.19"
7
+ version = "1.0.20"
8
8
  description = "User-authenticated MCP server for Qingflow"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -20,7 +20,7 @@ def register(subparsers: argparse._SubParsersAction[argparse.ArgumentParser]) ->
20
20
  file_upload_local.add_argument("--bucket-type")
21
21
  file_upload_local.add_argument("--path-id", type=int)
22
22
  file_upload_local.add_argument("--file-related-url")
23
- file_upload_local.set_defaults(handler=_handle_file_upload_local, format_hint="generic")
23
+ file_upload_local.set_defaults(handler=_handle_file_upload_local, format_hint="file_upload_local")
24
24
 
25
25
  feedback = builder_subparsers.add_parser("feedback", help="builder 侧反馈提交")
26
26
  feedback_subparsers = feedback.add_subparsers(dest="builder_feedback_command", required=True)
@@ -926,6 +926,47 @@ def _format_builder_summary(result: dict[str, Any]) -> str:
926
926
  return "\n".join(lines) + "\n"
927
927
 
928
928
 
929
+ def _format_file_upload_local(result: dict[str, Any]) -> str:
930
+ lines = [
931
+ f"Upload Kind: {result.get('upload_kind') or result.get('requested_upload_kind') or '-'}",
932
+ f"Effective Upload Kind: {result.get('effective_upload_kind') or result.get('upload_kind') or '-'}",
933
+ ]
934
+ if "upload_fallback_applied" in result:
935
+ lines.append(f"Fallback Applied: {result.get('upload_fallback_applied')}")
936
+ if result.get("upload_fallback_reason"):
937
+ lines.append(f"Fallback Reason: {result.get('upload_fallback_reason')}")
938
+ if result.get("file_name"):
939
+ lines.append(f"File: {result.get('file_name')}")
940
+ if result.get("file_size") is not None:
941
+ lines.append(f"Size: {result.get('file_size')}")
942
+ if result.get("content_type"):
943
+ lines.append(f"Content Type: {result.get('content_type')}")
944
+ if result.get("upload_protocol"):
945
+ lines.append(f"Protocol: {result.get('upload_protocol')}")
946
+ if result.get("download_url"):
947
+ lines.append(f"Download URL: {result.get('download_url')}")
948
+
949
+ attachment_value = result.get("attachment_value") if isinstance(result.get("attachment_value"), dict) else {}
950
+ if attachment_value:
951
+ lines.append("Attachment Value:")
952
+ for key in ("value", "name", "otherInfo"):
953
+ value = attachment_value.get(key)
954
+ if value not in (None, ""):
955
+ lines.append(f"- {key}: {value}")
956
+
957
+ comment_file_info = result.get("comment_file_info") if isinstance(result.get("comment_file_info"), dict) else {}
958
+ if comment_file_info:
959
+ lines.append("Comment File:")
960
+ for key in ("url", "name", "uploadFileSize"):
961
+ value = comment_file_info.get(key)
962
+ if value not in (None, ""):
963
+ lines.append(f"- {key}: {value}")
964
+
965
+ _append_warnings(lines, result.get("warnings"))
966
+ _append_verification(lines, result.get("verification"))
967
+ return "\n".join(lines) + "\n"
968
+
969
+
929
970
  def emit_json_result(result: dict[str, Any], *, stream: TextIO) -> None:
930
971
  json.dump(result, stream, ensure_ascii=False, indent=2)
931
972
  stream.write("\n")
@@ -1135,4 +1176,5 @@ _FORMATTERS = {
1135
1176
  "export_get": _format_export_get,
1136
1177
  "export_direct": _format_export_direct,
1137
1178
  "builder_summary": _format_builder_summary,
1179
+ "file_upload_local": _format_file_upload_local,
1138
1180
  }