UI5 MCP Server only considers ui5.yaml and ui5-local.yaml

Đang mở
#482 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, devtools

Hướng nghiên cứu

Start with src/tools/get_project_info/getProjectInfo.ts, especially the configuration lookup near the linked line, and check how UI5 CLI finds project configuration files. Reproduce the issue with a project containing ui5-deploy.yaml and no ui5.yaml or ui5-local.yaml. Done when the server resolves the effective framework version and loads its API reference for that setup.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What is the issue and how can we reproduce it?

The UI5 MCP Server currently reads only ui5.yaml and ui5-local.yaml when determining project information, including the UI5 framework version. As a result, projects that use alternative UI5 configuration files are not handled correctly.

This behavior became visible after the changes introduced in PR #66. The current implementation appears to assume that every project provides a ui5.yaml and optionally a ui5-local.yaml containing a usable framework version.

Affected Component

https://github.com/UI5/mcp-server/blob/9ace318de7d8f519a0e2cd13a4202f22483ea0ae/src/tools/get_project_info/getProjectInfo.ts#L75

Problem Description

The implementation explicitly checks only:

  • ui5.yaml
  • ui5-local.yaml

instead of performing the standard UI5 CLI configuration lookup (e.g. using the common UI5 YAML filename pattern/lookup mechanism).

This leads to incorrect behavior in scenarios where:

  • a project uses additional or custom UI5 YAML files,
  • the effective framework version is maintained in another configuration file,
    ui5.yaml contains a snapshot version while a different configuration contains the consumable runtime version.

Expected Behavior

The MCP Server should resolve UI5 configuration files using the same lookup mechanism as UI5 CLI, rather than hardcoding ui5.yaml and ui5-local.yaml.

The framework version should be determined from the effective project configuration that would actually be used by UI5 CLI.

Steps to reproduce

  1. Create a project where no ui5.yaml and ui5-local.yaml is present
  2. Create ui5-deploy.yaml which specifies a valid OpenUI5 framework release version.
  3. Start the UI5 MCP Server.
  4. Request framework information or API references.

Observed Result: The MCP Server fails to load the API reference for the version specified in the ui5-deploy.yaml.
Expected Result: The MCP Server should resolve the effective SAPUI5 / OpenUI5 version using the standard UI5 CLI configuration lookup and load the corresponding API reference documentation.

Which UI5 MCP server version is your project targeting?

v0.3.3

Confirmation
  • I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • I am not disclosing any internal or sensitive information.
Ngôn ngữ chính
TypeScript
Star
109
Fork
22
Merge trung bình
7 ngày 1 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của UI5/mcp-server

Tất cả issue của UI5/mcp-server

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.