Skip to main content
Glama
yaaif

sap-wpma-mcp-server

by yaaif
README.md
# SAP WPMA MCP Service

Public stdio MCP server that executes **WPMA** Transfer Article Data + Transfer GTIN in background Immediate.

It vendors [`sap-gui-mcp-service`](vendor/sap-gui-mcp-service) for SAP GUI COM, sessions, and policy. This repository is standalone — you do not need the YAAIF monorepo.

## Tool

`wpma_execute_price_push`

| Arg | Required | Notes |
| --- | --- | --- |
| `sales_org` | yes | VKORG; alias `vkorg` |
| `dist_channel` | yes | VTWEG; alias `vtweg`; `sales_area` `1001/11` splits when needed |
| `plants` | no | list or comma/newline string; empty / `all` = all stores |
| `articles` | yes | list or comma/newline string; each 8 or 11 characters |

Login args (`connection_name`, `client`, `username`, `password`, `language`) are injected by the MCP credential profile (for example `sap-meq`). Do not put secrets in skills.

## Run (Windows desktop worker)

```powershell
git clone https://github.com/yaaif/sap-wpma-mcp-service.git
cd sap-wpma-mcp-service
copy .env.example .env
uv sync
uv run sap-wpma-mcp-server
```

Catalog registration: `COMMAND` transport, command = `sap-wpma-mcp-server` or `dist\sap-wpma-mcp-stdio.exe`.

## Tests

```powershell
uv sync --extra dev
uv run pytest
```

## Standalone exe

```powershell
.\build-stdio-exe.ps1 -Clean
```