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

Aperta
#482 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
109
Fork
22
Merge medio
7g 1h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UI5/mcp-server

Tutte le issue di UI5/mcp-server

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.