Setup & Configuration

Endpoint

The Priority MCP Server is available on Priority’s cloud platform via streamable HTTP transport.

The URL includes your tenant name as the last path segment:

https://<host>/mcp/erp/<tenant_name>

Your tenant name is derived from the URL used to access Priority. For example, if you access Priority at https://p.priority-connect.online/webui/bt23u/, then bt23u is your tenant name.

Environment URL Pattern OAuth2 Client ID
Production (Europe & Middle East) https://p.priority-connect.online/mcp/erp/<tenant_name> 7a99d127-66f7-49a8-9d35-44a9ecc194b4
Production (US) https://us.priority-connect.online/mcp/erp/<tenant_name> 73614aa6-3888-4f81-b76d-9fc90f2199c8
Testing (Europe & Middle East) https://t.eu.priority-connect.online/mcp/erp/<tenant_name> 3d7498cd-bc97-44fb-8067-1bb34d109cdd
Testing (US) https://t.us.priority-connect.online/mcp/erp/<tenant_name> 95703909-7aea-410e-a97e-f598b9e17b51

Use your production URL for live data. If you have a testing environment, use the testing URL that matches your tenant’s region. If you do not have a separate testing environment, consider duplicating a company within your production environment to use for testing purposes.

Authentication

The MCP server supports two authentication methods:

Method Header Use Case
Personal Access Token (PAT) Authorization: Basic <encoded_token> Clients that support custom headers
OAuth2 (OIDC) Handled automatically by the client Clients with built-in OAuth2 support (e.g., Claude)

Creating a Personal Access Token

PAT authentication uses a Priority Personal Access Token, not your interactive login password. PATs are managed in the PATOKENS form inside Priority:

  1. Log in to Priority (web or desktop client) for the relevant tenant.
  2. Open the PATOKENS form (Personal Access Tokens) – you can find it using the entity search.
  3. Create a new record:
    • Give it a description to identify its purpose (e.g., MCP integration).
    • Set an expiration date if required by your organization’s policy.
  4. Save the record. Priority generates the token value on save – copy it immediately, as it is only shown once.

Treat the PAT like a password: store it securely and revoke it from the PATOKENS form if it is ever exposed.

Building the Authorization Header

Build the credential string as:

<PAT_TOKEN>:PAT

Where <PAT_TOKEN> is the token value from the previous step, and the password field is the fixed literal string PAT.

Base64-encode that string and use it in the Authorization header.

Example:

If the generated PAT is abc123XYZ:

PowerShell:

[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("abc123XYZ:PAT"))
# Output: YWJjMTIzWFlaOlBBVA==

Bash (macOS/Linux):

echo -n "abc123XYZ:PAT" | base64
# Output: YWJjMTIzWFlaOlBBVA==

The resulting header:

Authorization: Basic YWJjMTIzWFlaOlBBVA==

Client Configuration

Below are configuration examples for common MCP clients. Replace bt23u with your tenant name in all examples.

Tip: Many AI clients can help you set up MCP connections. You can provide your tenant name and PAT to the AI assistant and ask it to generate the configuration for you – it can also perform the Base64 encoding step on your behalf.

Claude Desktop

Claude supports OAuth2 authentication, which handles login through your browser automatically. No PAT or custom headers are needed.

Add via the Claude Code CLI (this syncs to Claude Desktop). This example uses a Europe & Middle East production environment – for other environments, use the matching URL and Client ID from the endpoint table above:

claude mcp add-json priority-mcp '{
  "type": "http",
  "url": "https://p.priority-connect.online/mcp/erp/bt23u",
  "oauth": {
    "clientId": "7a99d127-66f7-49a8-9d35-44a9ecc194b4",
    "callbackPort": 53708,
    "authServerMetadataUrl": "https://p.priority-connect.online/mcp/erp/.well-known/oauth-authorization-server"
  }
}'

On first use, Claude will open your browser to authenticate with Priority.

Users who do not have the Claude Code CLI can add the MCP server through the Claude web client instead.

Claude Code

Claude Code also supports OAuth2 using the same command as Claude Desktop above.

Alternatively, use PAT authentication by adding to your project’s .mcp.json:

{
  "mcpServers": {
    "priority-mcp": {
      "type": "streamableHttp",
      "url": "https://p.priority-connect.online/mcp/erp/bt23u",
      "headers": {
        "Authorization": "Basic YWJjMTIzWFlaOlBBVA=="
      }
    }
  }
}

Replace the Authorization value with your Base64-encoded PAT credentials.

ChatGPT

ChatGPT Desktop supports MCP with custom authorization headers. Use PAT authentication:

Add a new custom MCP server in ChatGPT settings with:

Setting Value
Name Priority MCP
URL https://p.priority-connect.online/mcp/erp/bt23u
Custom HTTP header Authorization: Basic <encoded_token>

Replace <encoded_token> with your Base64-encoded PAT credentials.

Note: ChatGPT Web does not support custom headers. Use the desktop application.

Antigravity

Antigravity Desktop uses PAT authentication. Add the following to your MCP configuration:

{
  "mcpServers": {
    "Priority": {
      "serverUrl": "https://p.priority-connect.online/mcp/erp/bt23u",
      "headers": {
        "Authorization": "Basic YWJjMTIzWFlaOlBBVA=="
      }
    }
  }
}

Replace the Authorization value with your Base64-encoded PAT credentials.

Other MCP Clients

Any MCP client that supports streamable HTTP transport can connect. Configure it with:

Setting Value
Transport Streamable HTTP
URL https://p.priority-connect.online/mcp/erp/<tenant_name>
Authentication Authorization: Basic <encoded_token> header, or OAuth2 if supported
Timeout 60 seconds recommended