Skip to content

Connect an AI assistant (MCP)

The Model Context Protocol (MCP) lets an AI assistant use OpexAIO directly: “log 2 hours on the portal project”, “which tickets are waiting for me?”, “approve the leave requests from my team”. The assistant calls the same tools the in-app assistant uses, as you, with your permissions.

What you need

  • An Enterprise plan on at least one product. Otherwise the server answers 402 {"error":"tier_required","feature":"mcp","required":"enterprise"}.
  • A way to sign in. ChatGPT and Claude.ai sign in with OAuth: you approve them in the browser, no key to copy. Other clients use an API key: create one in the app (sidebar MCP, then Create API key); the page’s Setup guide tab then shows ready-made commands with your key filled in.
Server URL https://app.aio.opexcg.com/api/mcp
Transport Streamable HTTP (stateless; plain JSON answers)
Authentication OAuth 2.1 (Authorization: Bearer …) or header X-API-Key: pk_live_…
Protocol version 2024-11-05

Connect ChatGPT

ChatGPT adds OpexAIO as an app (connector) and signs in with OAuth.

  1. In ChatGPT, open Settings, then Apps & Connectors, then Advanced settings, and turn on Developer mode. On a Business or Enterprise workspace, a ChatGPT admin may have to allow custom apps first.
  2. Back in Apps & Connectors, choose Create.
  3. Fill in:
    • Name: OpexAIO
    • MCP server URL: https://app.aio.opexcg.com/api/mcp
    • Authentication: OAuth
  4. Confirm that you trust the app and choose Create. ChatGPT registers itself with OpexAIO and opens a sign-in window.
  5. Sign in to OpexAIO if asked. On the consent screen, pick the workspace ChatGPT may use (only workspaces with an Enterprise plan can be picked) and choose Allow.

In a chat, choose +, then Developer mode, and turn on OpexAIO. ChatGPT asks before it runs a tool that changes data.

Connect Claude.ai

Claude.ai (web, desktop and mobile) adds OpexAIO as a custom connector and signs in with OAuth.

  1. In Claude, open Settings, then Connectors, and choose Add custom connector. On a Team or Enterprise plan, an owner first adds it under Organization settings, Connectors; members then choose Connect on it.
  2. Fill in:
    • Name: OpexAIO
    • Remote MCP server URL: https://app.aio.opexcg.com/api/mcp
    • Leave Advanced settings (client ID and secret) empty: Claude registers itself.
  3. Choose Add, then Connect. Sign in to OpexAIO if asked, pick the workspace on the consent screen and choose Allow.

In a chat, open the tools menu and turn on OpexAIO.

See and disconnect connected apps

Each approval appears in the app under sidebar MCP, tab Connected apps, with its workspace and when it was last used. Disconnect ends its access at once; the app has to ask you again to come back. A connection signs in for 1 hour at a time and renews itself for up to 30 days of inactivity.

Claude Code

Terminal window
claude mcp add --scope user --transport http opex-aio https://app.aio.opexcg.com/api/mcp \
--header "X-API-Key: pk_live_your_key_here"

Run claude mcp list to check the connection, then ask Claude about your workspace.

Claude Desktop

Claude Desktop starts local servers from its configuration file, so it reaches OpexAIO through the mcp-remote bridge (needs Node.js). Open Settings, Developer, Edit Config and add:

{
"mcpServers": {
"opex-aio": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://app.aio.opexcg.com/api/mcp",
"--header",
"X-API-Key:${OPEX_API_KEY}",
"--transport",
"http-only"
],
"env": { "OPEX_API_KEY": "pk_live_your_key_here" }
}
}
}

Restart Claude Desktop. The OpexAIO tools appear under the tools icon of the chat box.

Cursor

Add the server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
"mcpServers": {
"opex-aio": {
"url": "https://app.aio.opexcg.com/api/mcp",
"headers": { "X-API-Key": "pk_live_your_key_here" }
}
}
}

Then enable opex-aio under Cursor Settings, MCP.

Other clients

Any MCP client that speaks Streamable HTTP works: clients that support the MCP authorization spec find the OAuth endpoints themselves from the server’s 401 answer (see OAuth), and clients that can send a custom header use an API key. Clients that only start local servers can use the mcp-remote bridge shown for Claude Desktop.

What the assistant can do

tools/list returns the tools of the products your workspace can use: tasks, sprints, pages and whiteboards in Project; contacts and deals in CRM; time entries and approvals in Timesheets; tickets and the knowledge base in Helpdesk; expenses in Expenses; leave in Leave; and the shared approval inbox. The tool reference lists every tool with its arguments.

  • Read tools are marked with readOnlyHint; assistants may run them without asking.
  • Write tools change data. Most assistants ask you before running a tool that is not marked read-only.
  • Permissions are checked on every call, exactly as in the app. A denied call returns an error whose message starts with forbidden: missing and names the permission code.

Try it without a client

The server is plain JSON-RPC over HTTP, so curl works:

Terminal window
curl -s -X POST "$OPEX/api/mcp" -H "X-API-Key: $OPEX_API_KEY" -H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_leave_types","arguments":{}}}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\"items\":[{\"id\":\"28a321f4-3500-4176-9373-1f439a3dad45\",\"name\":\"Annual\",\"paid\":true},{\"id\":\"80eb311d-d1e0-46ce-a315-13b41348c867\",\"name\":\"Sick\",\"paid\":true},{\"id\":\"0cdbf172-3b3a-41a5-acd8-4fd54fa42b65\",\"name\":\"Unpaid\",\"paid\":false}]}"
}
]
}
}

Tool results arrive as JSON text inside result.content. The other methods are initialize, tools/list and ping.