MCP (Model Context Protocol) server
Ongoing WMS has a Model Context Protocol (MCP) server, which lets AI tools and assistants - such as chat assistants and coding agents - connect to a warehouse and call a set of tools (currently article and inventory lookups) on behalf of an authorized user. This page explains how to set it up and how it works.
Setting up an MCP user
For instructions on how to set up and authorize an MCP user, see Connect AI to Ongoing WMS.
The MCP endpoint
The MCP server exposes a single JSON-RPC 2.0 endpoint over HTTP POST:
POST https://api.ongoingsystems.se/{warehouse}/api/v1/mcp
Protocol details
- Transport: JSON-RPC 2.0 over HTTP POST
- Protocol version: 2025-03-26
- Server name: ongoing-wms-mcp
- Authentication: OAuth 2.0 bearer token
Supported methods
- initialize - starts the session and negotiates capabilities.
- notifications/initialized - sent by the client once initialization is complete.
- tools/list - lists the tools available to the authorized user/scopes.
- tools/call - invokes a tool (for example an article or inventory lookup).
- ping - basic connectivity check.
Discovery
Clients that call the endpoint without credentials receive an HTTP 401 response with a WWW-Authenticate: Bearer resource_metadata="<api base url>/.well-known/oauth-protected-resource" header. Most MCP-compatible clients (ChatGPT, Claude, Cursor, Gemini CLI, Grok, Microsoft 365 Copilot, VS Code/GitHub Copilot, Microsoft Copilot Studio, and others) use this to self-discover the authorization and token endpoints, so they only need to be given the MCP API URL to connect.
Legacy (Basic authentication) MCP users
MCP users can also be created with classic Basic authentication (username/password) instead of OAuth. These behave like any other Basic-auth API user: full access, no scope restrictions, and the AI tool authenticates with an Authorization: Basic ... header instead of going through the human-authorization flow described in Connect AI to Ongoing WMS.