Skip to content

feat(fiori-mcp-server): Add ADP OData/library tools#4867

Draft
nikmace wants to merge 2 commits into
feat/unified-flex-flow-for-adp-mcpfrom
feat/adp-mcp-tools-extended
Draft

feat(fiori-mcp-server): Add ADP OData/library tools#4867
nikmace wants to merge 2 commits into
feat/unified-flex-flow-for-adp-mcpfrom
feat/adp-mcp-tools-extended

Conversation

@nikmace

@nikmace nikmace commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Added 3 new MCP tools for Adaptation Projects:

  • list_libraries_from_system — lists available UI5 libraries from the connected SAP system
  • list_odata_services_from_system — lists available OData services from the SAP system
  • read_odata_metadata_adp — reads OData metadata for an Adaptation Project

@changeset-bot

changeset-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f2fa79

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hyperspace-insights

Copy link
Copy Markdown
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:


feat(fiori-mcp-server): Add ADP OData/Library MCP Tools

New Features

✨ Three new MCP tools have been added to the fiori-mcp-server package to support Adaptation Projects (ADP) with SAP system interactions:

  • list_libraries_from_system — Queries the SAP system's app index to list available UI5 libraries with descriptors, reading connection details from the project's ui5.yaml.
  • list_odata_services_from_system — Retrieves both OData V2 and V4 service catalog entries from the connected SAP system, with optional name filtering.
  • read_odata_metadata_adp — Reads the merged app descriptor for an ADP project, resolves its OData data sources, fetches their metadata, and optionally saves it locally under webapp/.context/ for agent context.

Changes

  • src/tools/functionalities/manifest-changes/manifestContext.ts (new): Core logic module providing readMergedManifest, readAnnotationfromManifest, getAvailableLibraryFromSystem, and getAvailableODataServices. Handles ABAP provider creation via @sap-ux/system-access, ZIP packaging of the webapp folder, and XML pretty-printing via prettify-xml.
  • src/tools/get-libraries.ts (new): Thin wrapper exposing listLibrariesFromSystem tool handler.
  • src/tools/get-odata-services.ts (new): Thin wrapper exposing listODataServices tool handler.
  • src/tools/get-adp-odata-metada.ts (new): Thin wrapper exposing readODataMetadataAdp tool handler.
  • src/tools/index.ts: Exports the three new tool handlers and registers their MCP tool definitions with descriptions, annotations, and input schemas.
  • src/types/input.ts: Added AdpMetadataInputSchema and ODataServiceInputSchema Zod schemas.
  • src/types/index.ts: Exported new AdpMetadataInput and ODataServiceInput types.
  • src/server.ts: Wired new tools into the request handler switch block.
  • src/types/prettify-xml.d.ts (new): TypeScript declaration shim for prettify-xml (no official types).
  • package.json: Added @sap-ux/system-access, adm-zip, @types/adm-zip, and prettify-xml as dependencies.
  • tsconfig.json: Added ../system-access to TypeScript project references.
  • jest.config.mjs: Updated transform ignore patterns and module name mapper; replaced @sap-ux/adp-tooling mock with @sap-devx/yeoman-ui-types stub.
  • test/__mocks__/: Added ESM/CJS stubs for @sap-devx/yeoman-ui-types and @sap-ux/adp-tooling; updated existing adp-tooling mock to include readUi5Config.
  • test/unit/server.test.ts: Updated tool-list assertions to include the three new tools.
  • test/unit/tools/adp-controller-extension/tool.test.ts: Migrated mock setup to jest.unstable_mockModule for ESM compatibility.
  • pnpm-lock.yaml: Locked new dependencies.

  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.26.0

  • Event Trigger: pull_request.opened
  • Output Template: Default Template
  • Summary Prompt: Default Prompt
  • Correlation ID: c29fb57b-5067-4e2c-b779-faabce9cac3b
  • LLM: anthropic--claude-4.6-sonnet
  • File Content Strategy: Full file content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant