Connecting an AI tool to Ongoing WMS
Table of contents
Introduction
It is possible to connect AI tools such as Claude with Ongoing WMS. The connection gives the AI tool the ability to ask Ongoing WMS for information.
On a technical level, the protocol used by the AI tool to communicate with Ongoing WMS is the Model Context Protocol (MCP). MCP is an open-source standard for connecting AI applications to external systems. It functions as a standardized "gateway" between the AI tool and the external system.
Currently, Ongoing WMS allows AI tools to ask for article data on a per goods owner basis. For instance, the AI tool can query for the stock balances of an article at a particular goods owner.
Preparing the MCP connection in Ongoing WMS
Ongoing WMS uses OAuth to set up and authorize MCP connections. Creating an MCP user and connecting it to an AI tool is done in a few steps:
- As administrator, go to Administration ⇒ API for goods owners and click Add new user for AI tool integrations.
- Choose one of the predefined AI tools from the list to automatically get the correct callback URL, or choose Other if your AI tool isn't listed.
- If you chose Other, write the callback URL for your AI tool.
- Choose the scopes, i.e. which resources the AI tool should be allowed to access.
- Connect an Ongoing WMS human user to the new MCP user. This is the user that authorizes, and that the AI tool will act on behalf of.
- Write the email address connected to the AI user, i.e. the email of the person who will be using the AI tool.
- Click "Create".
- You are given an MCP URL and a client ID.
Copy the MCP URL and client ID and paste them into your AI tool. The AI tool should then redirect you to Ongoing WMS' login page. Log in, read the consent page, and accept the requested permissions. The AI tool is now connected.
Adding the connection in the AI tool
Exactly how the connection is added varies between the different AI tools. Here is the documentation for adding an MCP connection for some popular AI tools:
If your AI tool is not listed above, check its documentation to see if it supports OAuth-based MCP connections. Most MCP-compatible clients can discover the authorization and token endpoints automatically from the MCP URL, so you typically only need to give them the MCP URL and client ID that you got from Ongoing WMS.
General pointers
Ongoing WMS' MCP connection uses OAuth. Once you've entered the MCP URL and client ID into your AI tool, it should redirect you to Ongoing WMS' login page where you log in and accept the requested permissions, as described above. There is usually no secret you need to store yourself, since the AI tool manages the OAuth tokens on your behalf.